Link to home
Start Free TrialLog in
Avatar of Bharat Guru
Bharat Guru

asked on

how to calculate Quintiles in ssrs

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
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

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

Avatar of Bharat Guru
Bharat Guru

ASKER

I'm looking for in SSRS expression
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial