Solved

how to calculate Quintiles in ssrs

Posted on 2016-10-05
3
63 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating 2 instances of SSRS to a single 2012 instance 3 52
SSRS Problems 9 114
Report Builder 3.0 3 57
Section based report in SSRS 14 28
Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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