Solved

how to calculate Quintiles in ssrs

Posted on 2016-10-05
3
49 Views
Last Modified: 2016-10-10
How to calculate Quintiles value in SSRS. I want to calculate the Quintiles base on average field.

My table is as below
Select ID, Department, Average
0
Comment
Question by:Bharat Guru
  • 2
3 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 41830294
Don't know about SSRS, but it is possible in the T-SQL data set that feeds it by using the SQL Server NTILE() function.   (SQL 2012 and higher)
SELECT ID, Department, Average, 
    NTILE(5) OVER(ORDER BY Average DESC) AS Quintile
FROM YourTable

Open in new window

1
 

Author Comment

by:Bharat Guru
ID: 41830449
I'm looking for in SSRS expression
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 41830467
afaik there is not an SSRS expression that handles percentiles.   Just out of curiosity, why is your requirement to do this in an SSRS expression?  Data manipulation is best done in the database layer (database) and not the presentation layer (reporting), and if the data source has embedded T-SQL you can just add the NTILE function.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this short article I will be talking about two functions in the SQL Server Reporting Services (SSRS) function stack.  Those functions are IIF() and Switch().  And I'll be showing you how easy it is to add an Else part to the Switch function. T…
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question