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
Anonymous
Not applicable

Percentile Calculation by passing range of values from measure

Below is the table with year and corresponding volume on Global level

 

Year

Total Volume

2016

182

2017

173

2018

0

 

Another table with volume based on region and Column - Value in this table is calculated as NACA Volume/Total Volume * 100 (I am calculating this in a measure)

 

Year

NACA Volume

Value

2016

14

7.7

2017

10

5.8

 

Now I need to calculate the result as below, percentile should be 10th percentile

 

Region

Percentile

NACA

5.99

 

Formula for Percentile should be PERCENTILE.INC(Value,0.1) i.e, PERCENTILE.INC(7.7:5.8,0.1) = 5.99

 

I could not pass the range of values which is calculated in a measure into percentile function in DAX.

Please help me to calculate this

4 REPLIES 4
Anonymous
Not applicable

Hi dinesh,

In order to achieve your goal you should to use calculated columns instead Value measure.
See these images and tell us if work for you.

 

Calculated ColumnCalculated Column

Percentile measurePercentile measure

Anonymous
Not applicable

Ok dinesh,

Try this...

Create a new table:

1-NewTable.png

 

Create their relationship (Both directions):

2-NewRelationship.png

 

Check slicers:

3-Slicer.png

 

 

Anonymous
Not applicable

Hi Miltinho,

 

Thank you for your response. I cannot use calculated column because, I have shown only the aggregated data in example. In Actual data I have records as below. So I need percentile for Regionwise i.e NACA, and I need to slice by year and percentile should chanage accordingly.

 

Product IDYearRegionVolume
4572016NACA6
3682016NACA3
8572016NACA5
3782016US68
1232016US100
3452017NACA6
7892017NACA4
2562017US163
Anonymous
Not applicable

Also we need to calculate Value as NACA Volume/Total Volume * 100 on top of that we need to calculate Percentile

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.