'ORDER BY' total for location on an SSRS graph in VisualStudio2010 - visual-studio-2010

In visual-Studio 2010, I am trying to create an SSRS graph to display sales in order of totalsold.
The graph came out with the right information, but not the right order.
This is the code I inserted into "DataSets"
SELECT SUM(TotalSold) Total, st.Name Territory
FROM SalesOrder so
LEFT OUTER JOIN SalesTerritory st
ON so.TerritoryID=st.TerritoryID
GROUP BY [Name]
ORDER BY Total desc
The end result should look like the first graph (A-01). The current
graph looks like the second graph (B-01)
Do I need to change the code?

go to series group properties and change the sorting by total "Z to A" see screen shot for your reference ...

Open 'Category Group Properties' window, then change the sorting order by total to "Z to A" as depicted in the screenshot. Select 'OK' and go to 'Preview' to ascertain that it worked.

Related

Power BI visual axis - sort axis so that (blank) not in the middle

Anyone know how to rearrange this in Power BI without the blank appearing in the middle? I know I can transform the blanks into something like '0 - No category assigned' but in Tableau you can create a custom sort. Is this possible in Power BI?
You can sort the columns in the chart
either by category or by value
in ascending or descending order
using the ellipsis menu on the upper right corner.
Your visual is currently sorted "by value in ascending order". Change that to sort "by category in ascending order" and the Blank category will appear on the first position, or use "descending order" to show it on the last position.
You can sort the Category column by another "sorting" column, but naturally this can't include Blank categories, because they result from filtering another table that has "unknown" categories.

How to sort the order of x-axis for bar chart in PowerBI?

Hi everyone,
I have a bar chart as shown in the screenshot above. The order for first 2 bars are correct, but the order for subsequence bars in the chart are wrong. The 3rd bar should be the category of 2% - 3% and the 4th bar should be 3% - 5% etc... The correct sequence should follow the 1st column of my table below:
I tried the sorting option in the chart but no matter what I choose, it doesn't achieve my goal. May I know is there any way that I can use to achieve the order that I want? Any help will be greatly appreciated!
Try a custom sort:
*Completed based on data provided
Click on 'Enter Data' under 'Home' in the table view
Create 2 columns: 1 that has the same name as the column you want to sort. 2 Order column with the custom order for these values.
Enter each bar name in the [Class] column and the position you want it in, in the Order column. 1 means you want it to be first.
Select the new table and select the column that you want to custom sort. When you select it, the column tools toolbar will automatically appear.
Select 'Sort by Column' under 'Column tools' and select 'Order' this will order the Class column by the numbers you have entered.
Unselected the used field that has not been custom sorted and tick the new field with the same name under TABLE 'SortOrder'.
After

Need to show "GRAND TOTAL" as a row header in OBIEE

I have a UNION report which contains 2 criteria. First Criteria contains all the individual values i.e. Student ID, Maths Mark, Science Marks. The 2nd criteria contains the TOTAL of Maths and Science Marks of all the students. In the 2nd criteria I need to show GRAND TOTAL as a ROW HEADER. How can be achieved?
You will need to create a pivot table:
Create a pivot table view, then Edit the pivot table view and move the attributes to the desired sections (Rows, Columns, and Measures). Drag and drop them until it looks like what you need.
In the pivot table view editor pane, next to the TOTAL column, change the Default Aggregation to Sum.
Next to the Student ID column (I presume it should be under the Rows section of the pivot table), click on the Sigma icon (Σ) icon.
Change the aggregation to display "Before" (I assume by Row header, you mean that you need the GRAND TOTAL to display to the left of the Student's marks.
Please let me know if this helps.

Visual Studio 2013 Report RDLC with related datasets

I currently have two tables in a database "customer" and "pricelist" where a customer can have multiple pricelist items linked to their ID.
I'm trying to build a report in VS2013 where it lists all customers [alphabetically], then all of their pricelist items [alphabetically], then page break between each customer.
I've tried setting it up to use a dataset of each table, which doesn't let me group them together, and I've also tried joining the two tables into one view which was the closest I had gotten. The problem was that for each item, it printed the customer name and a page break, because of the inner join i was doing where each record has the customer name on it.
Please help me figure this out! I just want to be able to display the data as such;
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ITEM 2.....PRICE
.........ETC
PAGE BREAK
CUSTOMER NAME
.........ITEM 1.....PRICE
.........ETC.
To group data in a report:
Click the Design tab.
If you do not see the Row Groups pane , right-click the design surface and click view and then click Grouping.
From the Report Data pane, drag the Date field to the Row Groups pane. Place it above the row called (Details). Note that the row handle now has a bracket in it, to show a group. The table now also has two Date columns -- one on either side of a vertical dotted line.
From the Report Data pane, drag the Order field to the Row Groups pane. Place it below Date and above (Details).
Note that the row handle now has two brackets in it, to show two groups. The table now has two Order columns, too.
Delete the original Date and Order columns to the right of the double line. This removes this individual record values so that only the group value is displayed. Select the column handles for the two columns, right-click and click Delete Columns.
Switch to the Preview tab to preview the report. It should look similar to the following illustration:
The answer was retrieved from this MSDN page

How To add Group Footer in VS2010 RDLC Report

How do I add a "group footer" summary row to a group I've created in VS2010 RLDC.
At the bottom of the designer there are Row Groups and Column groups Click the arrow next to Row Groups and click "Add Total". This adds a footer row...
BUT BE aware...
If you do this on the outermost group, it adds a "Report Footer" showing the totals for ALL the groups, not per group. If you do it on an inner group it adds a "Group Footer" which gives you sub totals for each of the sub groups.
You can also right click on the details row (the one with 3 horizontal lines it the far left box) and go Insert Rows->Below... If you have an inner group and an outer group this adds a "Group Footer" (I have not tested it without the outer group yet).
Here is a quick and dirty diagram (sorry about the quality) showing all the parts once you get them set up so it'll make more sense)

Resources