SSRS: Value not to be grouped - reporting-services

I have a chart that currently has a count of cases, and then grouped by users, now I am trying to implement a second value which is a round up of all users and gives a global average.
this global average for obvious reasons cant be grouped based on the users in order to give the correct representation.
I am not using VS to output these reports but I using SQL report Builder 2008 R2.
Is there anyway that I can overcome this global avg being grouped by users, can I use a filer to stop this maybe?

The global average would be the number of cases divided by the number of distinct users. You can aggregate over the entire dataset by including the dataset name:
=Sum(Fields!Cases.Value, "MyDataset") / CountDistinct(Fields!User.Value, "MyDataset")

Related

SSRS Group Total with multiple datasets lookups

I have a report with multiple datasets. I am trying to get the total of each expression for each manager. The expressions are lookups. I cannot merge the datasets into one and I cannot reduce the number of columns due to business requirements.
=Lookup(Fields!EmpId.Value, Fields!EmpId.Value, Fields!TOA.Value,"dsToa")
I have tried =Sum(Fields!Goal.Value, "dsToa") which gives the whole total but not the total per manager. When I try =Sum(Fields!Goal.Value, "ManagerName") I get an error "Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope".
Any help is greatly appreciated!

Getting SSRS to aggregate as rows instead of columns

I've constructed a cube using SSAS, and I'm using that cube to fuel an SSRS report. Using Excel, I can generate reports as pivot tables from the SSAS source, and I'm trying to replicate some of that functionality as a report in SSRS instead.
Here's how I have the thing set up in Excel:
As you can see from the pictures, I have several stats that are being displayed per row rather than per column. The results that are displayed per row are aggregated statistics (sum, count, etc...).
How do I accomplish this same thing using SSRS? In Excel, it was simply a question of saying "Move to Row Labels".
You can create a Matrix, set the column group to be by fiscal calendar .
Within the row group you will need to add additional detail rows and place each value on the row.
This should give you the desired results more of less.

How to fetch data in a Single SSRS report using Multiple Dataset

I was trying to create SSRS report with a country map and a table. Country Map for showing total Number of Cases state wise and a table to show the total number of Cases in the whole country on the Top Middle side of the Report. Both (Map and Table) Using Different Datasets.
When I run the report to preview the data, It gives me an error:
The Endvalue expression for the map uses an aggregate expression without a scope. A Scope is required for all the aggregates used outside of a Data region
However, I have also tried to use the first dataset to calculate the Sum of all cases in the country.
But it shows the data in the table state wise not the Complete Sum.
=Sum(Fields!Total_Cases.Value)
I have read some issue similar to this topic but unable to implement them.
For displaying total cases in the table I have also mention the dataset name but not getting result.
=(Fields!Total_Cases.Value, "Dataset2")
Please suggest the correct way..

Two Dataset without joining them in SSRS

I have two Datasets in my SSRS report and both dataset coming from different database. and there impossible to join them
Example not real Data .....
so what im tring to do is (Dataset1) total number of Visiter divided by (Dataset2) Total number of Cars * 1000 (sectors) row group by every month and Year.
for example (not real) if we have 24 Visitors and 2063 Cars *1000 so we get AVG of 1000 Sectors 11.63
Is there any funcation in SSRS where i solve this problem IN Excel you know i easy but I need to create report in SSRS please any help would safe me. Thanks
enter image description here
The lookup function in SSRS allows you to get fields from a different dataset based on matching criteria.
See here for more information: https://msdn.microsoft.com/en-GB/library/ee210531.aspx

Need the exact # of rows in SSRS report

I have a report that I work with in Visual Studio 2013.
The Dataset Query for the report returns about 1,000 rows of data [I run it in SSMS].
The only Row Group is the report is "Details".
Because of a 3-level grouping in the Details Group, the number of rows actually showing on the report is 400.
How can I get the actual count of Rows in the report to display?
I have tried suggestions from other threads on the forum - but I always end up with the number of rows that the Dataset returns - not the number of rows that are actually on the report.
Is there a way to get a count of the rows on the report rather than the count of rows that the underlying Dataset returns?
Thanks!!
Add row count to your sql and have the ssrs pick up your max row_number value.
I run SQL developer for most of my testing before I drop it into SSRS. It' not Visual Studio but how I would do it may help you.
Select row_count() over (order by [unique value in row]) ROW_NBR, existing row information from tables where ...
Then in SSRS enter this in your cell
=MAX(ROW_NBR, "DataSet1")
OR!!!!
just use this
=Count([value in existing code], "DataSet1")
Widening the scope of the count to your entire dataset will give you a count of all values in the dataset
Use CountRows.
Returns a count of rows within the specified scope.
=CountRows("DataSet1")