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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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]) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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