I have a SSRS report in the attached format [https://drive.google.com/file/d/0B4UzXmbWLTJZalZKOEdJWHE2NVE/view?usp=sharing].
There is a row group based on the CostCenter so that each individual row of CostCenter is displayed. The problem is I want to calculate the percentage of the individual hours and cost based on their respective total values(last column). But I am not able to do so as I am not able to access the total value (last column) in the Percentage column as Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope.
Please help as to how can I calculate the percentage of the individual fields.
Related
I'm tracking active and deactive counts for 3 months(child group) based on acquisition month(parent group)
My Matrix design
Preview
I want to calculate 2nd month deact rate (see picture for formula used)
I know about variables but how can i use child variables in parent group ?
or is there any other way to achieve that 2nd month deact value ?
best way is to calculate the required values by self joining (in my case ) reporting table and also have dedicated column for total for groups and use those columns in SSRS.
I'm using SSRS to create a report which shows a lot of transactions according to a trade date. I've made a group on the month and year called 'grpMonthYear'. Inside that group I've made a subgroup on 'TradeDate'.
The groups and all work perfectly. I'm also generating monthly subtotals in the footer of the group 'grpMonthYear'.
But now I want the cumulative subtotals.
Example, if Jan'13 totaled up to $5,000.00 and transactions in Feb'13 totaled up to $7,000.00 So the monthly subtotal in Feb'13 should show me $12,000.00
I tried using
RunningValue(Fieldname,SUM,'grpMonthYear')
But it doesn't work.
Am I missing out something?
You need to set the scope in the RunningValue function to one outside the current group, for example the table's DataSet itself.
So something like:
RunningValue(Fieldname,SUM,"DataSet")
Here's a simple example based on the following data:
I've created a simple report grouped by grpMonthYear:
The Month Total is just the sum in the current group scope.
The Cumulative Total expression is the following:
=RunningValue(Fields!tradePrice.Value, SUM , "Trades")
Where Trades is the DataSet name. This now gives the required results:
So hopefully this helps - just keep the ordering of all the elements of the table in mind as well as the specific parent scope to use if there are nested groups.
Currently developing a report that groups items by value range. Using fictional data to describe the situation:
I'm trying to get this desired output, but I cannot use aggregate functions (Sum, Avg) when grouping items. Is there any way to group the ranges on the parent (order) level while retaining the child (order line) data? Any help would be appreciated.
Currently when I try to sum up the data, the sum of the order line is used (which is equal to the value and of no use to me).
I would do this at the dataset level. Either by using a separate dataset with Order Totals and the SSRS 2008R2 lookup function or by adding an Order Total column to the current dataset.
In these you could either get the group value ("1 to 10", "11 to 20"...) or the actual order total and create the grouping in the Group By formula in the SSRS group.
I am calculating percentages in Analysis Services 2008 using MDX by dividing the sum by the count
= IIF ([Measures].[STAT VALUE Count]=0,NULL,([Measures].[STAT VALUE]/100)/[Measures].[STAT VALUE Count])
My grain is at the hourly level and is a percentage value itself
When browsing the cube and applying a Time dimension hierachy of year - quarter - month - day the values that display are the first member. Not the average percentage of the underlying values
How can i change my mdx statement so that the value i see when browsing is the average of the underlying values.
At year i want to see the average percentage of the underlying values, as i drill down to quarter i expect to see the average percentage for that quarter, then at the month etc etc.
I admit to being a relative beginner when it comes to MDX
In the cube designer, check that the AggregateFunction of [Measures].[STAT VALUE] is set to Sum, and the AggregateFunction of [Measures].[STAT VALUE Count] is set to Count. Sounds like one of them is set to FirstNonEmpty.
I have a matrix with several columns and rows. Example the rows are made up of names for a company and along the top are total sales, total calls, etc. So each row will have a number under each column, and at the bottom of each column is a total for each column. Currently i have the report set up that if you click on any of the numbers it pulls up a detailed report for those particular items. But if you select the total number it brings up the results for the first row's column. Is there a way to make it return all the items details when you click the total number for that column instead of what ever the detail would be for the first row of that column? Does this make sense?
You can use the inscope function to check whether you are in the value or total row. If you are not in scope then pass the correct parameter to the details report.