SSRS Rollup Fields for Rows - reporting-services

I am working on a report where I have employee time information along with dates for the time. Currently I have the tablix grouped by Employee and Date so that I only get time for that employee and date, however I get a row for each date:
What I am trying to do is drop the Date column and have the time for each Date rollup into it's specific date column (i.e. 7/16/2020 data would rollup into only the 7/16/2020 column header) and only have a single row for each employee. Desired output:
How can I accomplish this?

You Can create a matrix report with Row group and column group. Check below screen shot to get desired output.

Use a Matrix control instead of a table, add a row group by Employee (as you have already) ad then add a column group by date. This will give you the desired results.

Related

i want headers to appear in every after of each month in my SSRS report

i want row headers to appear in every after of each month in my SSRS report like in the picture below
reference
Create a calculated field that returns the month of the date. The can be done either in the dataset SQL or as a calculated field in the dataset.
Add a parent row group that is grouped on this new calculated field.
Right-click on the textbox where the date field currently is. Select "Insert Row" then "Outside Group - Below".
Delete the extra first column that was added when you created the row group.
The design should look something like this:
Notice that the Date field is inside the child row group. This means you will get rows for each date. The parent row group is grouped on the month calculated field. So it will repeat once per month.

SSRS - Place grouped data on the same row

I'm facing this SSRS issue that I can't seem to get working properly.
I got employees that work on particular projects on specific dates. I want the dates as columns and the projects per date on 1 row.
What I have now:
What I want to have:
Can anyone help me to get there?
Thanks!
Check the row group properties. You only need s single row group and that should only group by employee. My guess is that you group is grouping on more than just employee or you have more than one group.
Your row group should not be grouping by date, only the column group should group by date.

SSRS Column chart, total as last column

I've got the following column chart:
Product names as Category groups with values for budget and revenue on each column. Now I want to create a final column (Total) which is the sum of each column. ie. one column with the total value of the budget and one with the total value of the revenue.
Can this be done directly in the graph without having to do the calculations in the dataset? It's very easy to add a total to a table but seems to be hard to add it to a chart.
No, you cannot just add a total column like you can add a total to a table and you are correct that the best approach is to modify your dataset to query.
Either perform a UNION to append a total row or utilize GROUPING SETS (if you want to get fancy) and you should get what you need.
Example UNION:
SELECT product, bedget, revenue
FROM myTable
UNION ALL
SELECT 'total', SUM(budget) as budget, SUM(revenue) as revenue
FROM myTable

Group by column & row in one part of expression, group by column only in another part of expression

I am trying to find a way to use the Group By functionality to create a table where the numerator of a fraction is grouped both by column and row, and the denominator is grouped only by column.
Here's my existing expression:
=Round(Sum(Fields!Days_In_Step.Value)/CountDistinct(Fields!ID.Value),1, MidpointRounding.AwayFromZero)
When grouped by rows (groupName) and columns (month/year) the numerator (Sum(Fields!Days_In_Step.Value)) gives me good data, but the denominator (CountDistinct(Fields!ID.Value)) is also grouped by row (groupName) and I don't want that.
I have a SQL solution but am trying to do this entire within SSRS expressions, if possible.
edit
Sample Data:
It would look like this. The background is that these groupings are counts of days and the "all" are counts of tickets, so we are trying to see who is sitting on their tickets longer.
Here is a mock-up including a sample data set using a pivot table:
Edit 2
Here is a full sample data set:
https://docs.google.com/spreadsheets/d/1rYPMcrLNB-FZN64Fn2-y3FtnM2iQo2VMH7YTdfiVnKM/edit?usp=sharing
I need to group on month as well as year, and I do not want to see "Exclude" in the group rows, however they cannot be filtered out of the tablix without being removed from the overall population, which is required for the denominator.
Your problem is caused by the scoping of aggregate functions. When you use aggregate function they run under the scope where it is placed in the tablix by default. In your case Sum() and CountDistinct() functions are running in both row groups (Owner Group) and column group (Month Group).
Fortunately, you can specify the scope that you want your aggregate function computes the aggregation, simply add the group name in the function:
CountDistinct(Fields!ID.Value,"MonthGroup")
The whole expression is like this:
=Round(Sum(Fields!Days_In_Step.Value)/
CountDistinct(Fields!ID.Value, "MonthGroup"),1, MidpointRounding.AwayFromZero)
Replace "MonthGroup" by the actual name of your group in columns
group.
This is result using the sample data you provided:
I've used this expression to show you how it is produced:
=Sum(Fields!Days.Value) & "/"
& CountDistinct(Fields!Ticket.Value,"MonthGroup") & "=" &
Sum(Fields!Days.Value)/CountDistinct(Fields!Ticket.Value,"MonthGroup")
Note my column group is named MonthGroup.
UPDATE: Scoping multiple groups in CountDistinct function.
Firstly I am not filtering the dataset, I prefer hide the Exclude rows using the below expression in the Hidden property of the Row Visibility window:
=IIF(Fields!Group.Value="Exclude" OR Fields!Group.Value="-1",true,false)
To count distinct id grouping by Month and Year but not by Group you can create a child group below Month group as you can see below:
My group is called Group2 and I used this expression in the Group on textbox.
=Fields!End_Month.Value & "-" & Fields!End_Year.Value
It will create a group per every Month-Year combination. When you create the group it will be added as a column group so you will have to delete the row so you will be prompted if you want to delete the group and row or delete the row only. Delete only the row leaving the group.
Now the expression you have to use is
=Round(Sum(Fields!Days.Value)/CountDistinct(Fields!ID.Value, "Group2"),1,MidpointRounding.AwayFromZero)
Replace Group2 by the name of the created group in your case.
This is the whole recreation of your scenario:
Let me know if this helps.

Count calculated Column in SSRS

I have SSRS report where in I am using table with 7 columns (Date, Job ID, Job Name, Status, Output Count, Expected Count, Flag). Out of 7 columns , 4 are directly coming from dataset. Rest three (Job Name, Expected Count, Flag) are calculated columns. I am getting their values from either SSRS custom code or expression. I want to count those rows where Output Count and Expected Count are not matching. Also I have Flag column where I am using Background Color property to check if values are matching or not. So even if I can get count of rows having Red background at Flag column will also server my purpose. Please help me in achieving the same.
You can create some new fields for your dataset to handle calculated values. Then, in your report, you can add some groups and add count or sum values on the table.