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

Compare column values with measure

Hi guys,

This is how the data looks like. 

 

Capture.PNG

 

I have created a meaure which is nothing but the 75th percentile value by using the DAX shown below: 

 

Capture1.PNG

Now I want to return only the staff id's which are above the 75th percentile value.

I have tried writing the DAX shown below but I am not able to compare it directly with the measure instead I have to hardcode the 75th percentile value. 
Capture3.PNG

 

Could someone help me figure out how to achieve this without hardcode writing the 75th percentile value.
Thank you

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , use like

sumx(values(Table[staff_id]),

if(sum(Table[Quantity sold]) >[Top 25th Percentile value] , sum(Table[Quantity sold]) )

Anonymous
Not applicable

This is what I get when I use the DAX suggested by you.

Capture4.PNG

Whereas this is what I am expecting but without hardcoding the value for 75th percentile. Capture5.PNG

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.

Top Solution Authors