Crystal Reports & SQL Reporting Services Training Consultants
Account Log in:
Username:
Password:
Don't let fear stop you
 
Institute of IT Trainers - Freelance Trainer of the Year 2006 & 2009
Liverpool Business Connect Member
  Maximum Impact Solutions Limited - Reporting Solutions, Creating Answers
Reporting Solutions - Creating Answers, Crystal Reports, Dashboarding (Xcelsius) & SQL Reporting Services

The Maximum Impact Solutions Blog Feed ME!!!!

14
December

How Do I Calculate Averages in SQL Server Reporting Services?

During a recent SQL Server Reporting Services report writing project i noticed the the in-built SSRS Avg function returned the incorrect value when calculating the average time differences for a sub group.


Solution:

To work around this I had to create the following custom formula:
=SUM(MAX(Fields!Field_Name.Value, "Group2_Name"),  "Group1_Name")/COUNTDISTINCT(Fields!Field_Name.Value, "Group1_Name")

If you have any questions, leave us a comment below, or need any assistance, please do not hesitate to Contact Us

MAKE A COMMENT

Name *

Email Address *

Comment *