SSRS rolling up average values - reporting-services

Say I have a dataset called TimeManagement and an aggregated value in an SSRS report as shown in lighter blue in the image below that I want to roll up within SSRS to create a sum total.
Row Groups
Aggregate (Lighter Blue)
=Sum(Fields!HoursMonth.Value, "Period1") / Sum(Fields!VisitsMonth.Value, "Period1")
Total (Darker Blue at the bottom
=Sum(Fields!HoursMonth.Value, "TimeManagement") / Sum(Fields!VisitsMonth.Value, "TimeManagement")
In this case I am creating an new average on the underlying data but what I really need is a sum of all the values shown in lighter blue. How do I go about achieving this?

You could change the scope of your second SUM() function to reference those values or a different group. Here's a good article from MSDN: http://msdn.microsoft.com/en-us/library/dd255256(v=sql.105).aspx

Get the sum totals from your stored procedure and use it as a column

Related

Calculate total by summing max numbers

I have a Matrix report that has two row groups and two column groups. There is column which has the calculation Max(Fields!AdjustedManning.Value) on the Row Group level as a subtotal. I want to add a total at the bottom which is outside of the row group to sum the subtotal numbers up. What expression can I use to do this? Effectively I'm looking to sum the max numbers
In the image the yellow box for design is where I need to put the expression and a preview of what I would expect it to calculate.
Design and Preview
You didn't show the rowgroup names so I'm guessing you have a rowgroup grouped by [WoLine] called Woline. Assuming this is correct then you should be able to use something like...
=SUM(MAX(Fields!AdjustedManning.Value, "WoLine"))
"WoLine" is the name of the rowgroup, you must include the quotes and it is case sensitive so adjust to suit your actual report.
What this does is get the MAX value within the "WoLine" rowgroup scope and then sum the results.

SSRS - Pie Chart - Multiple CollectedThreshold Properties

Hopefully this is simple. I know how to choose a value in the property section for a collected threshold to group all values under a certain percentage; however, I want to know if it's possible to set 2 values. If so, how do I go about doing that?
For instance, group all values with a value of 1-3% into a pie slice and group all values with a value of 3%-10% into another pie slice with the rest of the values each getting their own pie slice.
As a caveat, while the answer below isn't hard to set up it is a bit ugly and not great for maintainability or efficiency. I'd consider working on the query end to break out the categories.
You can set up the chart as a subreport and pass it the total as a hidden parameter (as you can't directly use aggregate functions in calculated fields or grouping expressions). Then use a category grouping expression similar to the following, changing field names as appropriate:
=IIF(Fields!Value.Value/Parameters!Total.Value<0.03,"Other (<3%)",IIF(Fields!Value.Value/Parameters!Total.Value<0.10,"Other (<10%)",Fields!Name.Value))
If your dataset doesn't rely on any parameters, you could also skip the subreport and just set up an extra dataset that grabs the sum total and have an internal parameter default to that value.

How can I sum "Expr" in bottom of the table in SSRS?

I'm doing such a thing;
=Sum(Fields!TOTAL.Value) - Sum(Fields!IND.Value)
In cells, so this is end up with expresion "<<'Expr'>>", that means I'm finding net worth price - discount for each saled products, after that I want to sum all of those product's sales on bottom, like
=Sum(Sum(Fields!TOTAL.Value) - Sum(Fields!IND.Value) )
Any chance for that? I also tried like;
=Sum(ReportItems!TOTALBOX.Value)
But not work either.
Edit;
I'm doing something like that but on final, I want to sum those values which "<>" created.
Thx.
Since your data is in a Column Group (by [DEFINITION_] - the 3 columns with the line above them) you can create a total column using the same formula. The Total will SUM all the different DEFINITION groups for each [NAME] group.
You can add a column Outside the group and create your total column with the same formula
=Sum(Fields!TOTAL.Value) - Sum(Fields!IND.Value)
If you created everything correctly (and you're lucky), SSRS might be able to create the Total for you by right clicking on the cell and Add Total.

How can I add an aggregate percentage to an SSRS report based on two specific columns in a matrix?

I am somewhat new to SSRS and I have built a matrix report that looks fairly simple:
Supplier [AccDate]
[SupplierName] Sum(PurchasingCredit)
Total <<Expr>>
The actual report shows month-by-month sales data for a year in addition to Current YTD and Previous YTD columns (joined via UNION clause in base query) in addition to a column showing Year-over-Year % as difference between the Current YTD and Previous YTD columns (also joined via union).
I was able to apply a dynamic format to the Year-over-Year column using the following expression in the Format property to show the YOY column as a percentage and the others as dollar amounts:
=IIF(Fields!AccDate.Value <> "YOY", "'$' #,0.00;'$' -#,0.00", "#,0.00 %;-#,0.00 %")
The last thing I need to do is to show the column totals, which are working for each column with the exception of the year-over-year percentages using the following:
=IIF(Fields!AccDate.Value <> "YOY", SUM(Fields!PurchasingCredit.Value), 0)
In the year-over-year (YOY) column, a sum of percentages doesn't make sense: I need it to recalculate this value based on the sums of the "CYTD" and "PYTD" columns, but I can't seem to figure it out. Any help would be greatly appreciated. I am guessing it is probably an application of scope, but the MS articles that attempt to explain this are very confusing.

How to hide grand total from chart (ssrs over olap)

I have a report in ssrs 2008, its data source is based on ssas.
I created a pie chart which shows total cost per shape. Dataset of the pie consists of only 4 fields.
Say i have 2 shapes, each of them has total cost. But in addition to that i also get a third slice in the pie which shows total of the other two.
How do i get rid of it?
Ok i figured it out luckily.
The problem was that my dataset returned the total, so i just filtered it in dataset filter expression.
I'm pretty sure there is a way not to return total inside dataset in the first place, if anyone knows, i will be glad to learn
In your dataset you want to change the expression to [Dimension].[Hierarchy].[Attribute].members or [Dimension].[Hierarchy].children. If you do [Dimension].[Hierarchy].members you will get the All member included.
Example: [Date].[Month].members will return each month plus the all member. [Date].[Month].[Month].members will return the members without the All member.