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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
yhael1121
Frequent Visitor

ranking

Hi Team,

 

Im working on a report now that would show ranking based on the Goal Attainment per Manager. I dont quite understand how to use the RANKX. I've tried alot of examples but it doesnt work. my conculsion is that the Column that im trying to Rank is a measure. And all my measure is in a different table.

 

Below is the formula i tried.

RANK = RANKX(Ampule,calculate(([NRS GA]*.25)+([72Hr GA]*.25)+([Resolved GA]*.20)+([CPC GA]*.20)+([Transfer GA]*.10)),,ASC)

Ampule = Table for all my measures

Calculations  = formula to get the Goal Attainment im trying to Rank.

 

Please let me know if you need additional information from me.

1 REPLY 1
iamprajot
Responsive Resident
Responsive Resident

It needs a lot of corrections,
first, put calculate(([NRS GA]*.25)+([72Hr GA]*.25)+([Resolved GA]*.20)+([CPC GA]*.20)+([Transfer GA]*.10)) into another Measure for e.g. "MyCalc" and that cannot be done the way it is now.
the way you did it works in calculated column but not in Measure so put these column names inside SUM.
then in ranking should contain actual table name and not the group where you created the Measures, so final measure would be RANKX(TableName,MyCalc,,ASC)

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.