Solved

how to calculate Quintiles in ssrs

Posted on 2016-10-05
3
53 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction: This article is aimed at report developers who are used to developing reports using relational databases and have gotten a first-time assignment to develop reports on OLAP cubes. It demonstrates how to build a report using SQL Ser…
A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 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