Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ianboothman84
Helper II
Helper II

Quintile a Measure

Good Evening 

 

Thank you for your time. 

I currenty have a table built in power BI and i have ranked 3 areas of sales performance. At the end of the table i have created a total score then ranked the total (If that nakes sense)

 

Now i am struggling to create a quintile measure, please help 🙂

 

The Rank and Rank Desc are all measures

ianboothman84_0-1617052914538.png

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @ianboothman84 ,

You could use the following measure:

Measure = 
VAR _table =
    SUMMARIZE ( ALL (table1), Table1[His_UserfullName], "_Rank",  MAX(table1[rank desc]))

VAR Percentile25 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.25 )
VAR Percentile50 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.5 )
VAR Percentile75 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.75 )
RETURN
     IF (
        MAX(table1[rank desc])< Percentile25,
        "Q1",
        IF ( MAX(table1[rank desc])< Percentile50, "Q2", IF ( MAX(table1[rank desc])< Percentile75, "Q3", "Q4" ) )
    )

 

Then you will get the below:

v-luwang-msft_0-1617261281565.png

 

 

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @ianboothman84 ,

You could use the following measure:

Measure = 
VAR _table =
    SUMMARIZE ( ALL (table1), Table1[His_UserfullName], "_Rank",  MAX(table1[rank desc]))

VAR Percentile25 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.25 )
VAR Percentile50 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.5 )
VAR Percentile75 =
    PERCENTILEX.EXC ( _table, [_Rank], 0.75 )
RETURN
     IF (
        MAX(table1[rank desc])< Percentile25,
        "Q1",
        IF ( MAX(table1[rank desc])< Percentile50, "Q2", IF ( MAX(table1[rank desc])< Percentile75, "Q3", "Q4" ) )
    )

 

Then you will get the below:

v-luwang-msft_0-1617261281565.png

 

 

 

 

Wish it is helpful for you!

 

Best Regards

Lucien

@v-luwang-msft thnak you, works great 🙂

amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.