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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Using Calculated column in DAX Measure

Hello,

 

Im currently calculating a ranking where i need to get the top 20% base on the highest final score but they should be tagged as "Met". My "Met column" is a calculated column and im getting an error when im using Met Column in my dax calculation. I want to calculate who are the top 20% agent that was tagged as "Met"

 

Pct80 QA Score=
var temptable = SUMMARIZE(ALLSELECTED('Main Table'),'Main Table'[EID.email],"Rank", [Rank])
var tempdecile= 0.8
    return  PERCENTILEX.INC(temptable,[Rank],tempdecile)

Revised code. (Trying to get to top 20% that was tag "Met")

Pct80 QA Score1 =
var temptable = SUMMARIZE(ALLSELECTED('Main Table'),'Main Table'[EID.email],"Rank", [Rank])
var Met = SUMX('Main Table','Main Table'[met not met 1/0])
var tempdecile= Met*0.2
    return  PERCENTILEX.INC(temptable,[Rank],tempdecile)
 
xRTP_0-1678092653036.png

 

 
0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.