SSRS SUM of Header rows - reporting-services

I know there are a number of similar questions on here which I've looked at but I can't quite find one the same as my particular issue.
I have the following report built in SSRS (looking at a Dynamics 365 instance, so I believe SSRS version is 2016 but if not then it should be modern), and the yellow fields at the bottom are supposed to be a sum of the blue header rows throughout the rest of the report, but as you can see they are incorrect. I am using exactly the same syntax as I am for the other fields in white on the row that do sum correctly, so I don't understand why it's only these 3 I'm having issues with.
I have the following 2 groups set up:
The expression for my Budget Days sum is simply:
=FormatNumber((SUM(Fields!task_msdyn_effortValue.Value)/8),2)
The other fields are the same concept, a simple sum of the values. Based on another question here, I tried adding in the name of the ProjectTask group to the expression as I believe it's summing up all the rows in the report but this gives an error about scope so perhaps my group is set up incorrectly?
Any help much appreciated.

Related

Group Rows in SSRS Tablix

Im not super familiar with SSRS yet. I have a tablix that has a list of responses, count of responses, and percentage of responses.
the right most expression calculates the percentage of how many times an answer appears. It doesnt include No Reponse. I want to merge The right most column into one row so No response is included

SSRS Timeline Report from two different datasets

2008 SSRS
Hi, I am trying to make a timeline chart using two different datasets in my report. My first PERMIT NO works and counts perfectly. However, when I use my second PERMIT NO from the second dataset, it will sum them for each day. It should be showing 2 on 7/16, 1 on 7/17, and 0 for the rest of the month. But as you can see, for some reason it puts 3 for each day and I'm not sure why. Here is my expression being used:
Count(Fields!PERMIT_NO.Value, "DataSet2")
How would I go about fixing this? I tried sum, countdistinct, etc. but nothing worked properly.
Chart
Chart Properties
Unfortunately, your count is getting the count of all PERMIT_NOs in DataSet2. The COUNT doesn't filter by your date.
You'll need to use a LOOKUPSET to get the data and then a VBA function like SUMLookup to SUM them.
Here's an answer that's similar to yours. Since you want a COUNT, use the number 1 to SUM instead of your PERMIT_NO field.
Need help in calculation using two Datasets using Expression SSRS

Report builder 3.0 Using Reportitems!TexboxXX.Value sometimes creates multiple boxes. Why?

I have 6 Datasets each one is the same query but has a different WHERE clause based on employee type. They generate 6 tables. At the top of the report there is a summary table which uses reportitems!textboxXX.value to grab the totals for 2 particular fields from all the tables. I'm also using a StartDate and EndDate parameter. Each reportitems! expression in the table comes from a different dataset in the report if that is relevant.
When I run the report using dates from yesterday back to the 9th of May I get the desired output.
But when I go to the 8th I get multiple rows all the same.
and as I go even further back I get even more rows of the same information. To my knowledge nothing interesting or different happened on the 8th of May and the tables further down the report look exactly the same. Any idea what might be causing this? The design view looks like this if that helps. There's no grouping or filters on the table.
Still not certain about the mechanics behind this but I found a 'solution' so I figured I'd post it. I just made a new dataset for my summary tables where the query was simply SELECT 1. Now I get a single row every time.

Create an expression based off grouped rows ssrs

I want to create a single rectangle on a report that displays red if there are more then 2 distinct projects being worked on within that week (see image below):
http://imgur.com/dPHW1TT
I'd need to write some kind of expression like IIF(CountDistinct(Fields!Project_Name.Value)> 1, "Red","White") but the issue is that I need the projects to be aggregated per user.
As you can see in the above report I have it grouped on User >> Project, and thats what I'd need to captcher in this single expression.
Is there any way to specify a group in an expression?
I've actually managed to do what I wanted via filtering on the tables group, and then hiding all the cells bar one in the table.
http://imgur.com/G8IKMbS
Although if anyone knows a way to group within an expression I would still be interested in knowing.
Thanks

SSRS Report - Subgroup Totals

I have an SSRS report that is currently pulling a single dataset. This dataset contains records of inventory we have. Each record is a separate asset.
I want my report to group by a certain field, and then subgroup by certain criteria that are determined with a couple different fields. Basically there is one parent group, and three adjacent subgroups. My grouping functionality is working correctly, however I am finding it difficult to add totals to each of the adjacent subgroups. When I add a total, it is totaling the specific field within the scope of the entire dataset, instead of limiting the total to just that subgroup.
How can I add totals per field within subgroup?
EDIT: Added sample data and explanation:
You can ignore the function code field, that is what I am using to group on the parent group.
asset number,description,first year,acquisition cost,function code
190,random asset,2008,5000,100
193,random asset45,2008,56000,100
197,random asset26,2014,3000,100
191,random asset27,2014,7000,100
192,random asset36,2013,15000,100
I can't seem to attach screenshots, so here goes..
In the report you can see three subgroups; Assets, AssetAdditions, AssetDeletions. In the tablix, you can see where these groups are positioned. You can also see a row directly beneath the group that is supposed to total the subgroup at the end. However, for some reason the scope is only taking into account the entire dataset. I have tried to modify the expression in the Sum function [Sum(acq_cost), "Assets"], adding in the scope parameter but then it does not allow me to even run the report. It yells at me saying that "Assets" is an invalid scope.
The easiest way I have done this in 2012 VS is to have it return as part of the data set and have it sum up the value.
For instance if you have a quantity for inventory, and you have a subset where you only want the total quantity for that set, you add another column to your dataset called TotalSetQuantity and the subtotal field will have the expression =SUM(Fields!TotalSetQuantity.Value) rather than =SUM(Fields!Quantity.Value).
You can try iif statements within your report like =sum(iif(Fields!ColA.Value=1,Fields!Quantity.Value,0) but I had some troubles getting that to work.
Hope that helps, I ran into this issue this past week and the first option worked like a charm for me.