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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.