Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

How to evaluate running total on change of a group in SSRS

$
0
0
If I had this data  --------------------------------------
SchoolID   SchoolStudents  Employees
1              50                     Nabil
1              50                     Ali
1              50                     Michel 
2              85                     Youssf 
2              85                     lila 
and I'd like to have total of employees with sum of students at the end Grouping by SchoolID 
like this 
--------------------------------------
SchoolID   SchoolStudents  Employees
1              50                     Nabil
                                        Ali
                                        Michel 
--------------------------------------
Total         50                    3
--------------------------------------
2              85                     Youssf 
                                         lila 
--------------------------------------
Total         135                   5
--------------------------------------
I used a simple Sum  function and the running total one 
but I've always had result counting each record like this 
-------------------------------------------
Total         320                 5
-------------------------------------------
in Crystal Report I have a Running Total with Evaluate option which I chose to evaluated on 

the change of the group of School

Thanks for your Reply In Advance.



Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>