cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

Rankx ranking different value equally

Hi All,

 

I am trying to rank the most expensive assets by their location. I am using Rankx and I ahve used a various combination and the closest I got is this one (see table below) as you can see the column Ra Cost LV5 is ranking as 1 the first 2 numbers which are actually different. 

Actual total cost is simply column from the table and Ra Cost LV5 is

Ra Cost LV5 = RANKX(ALLSELECTED('Report 1'),CALCULATE(SUM('Report 1'[Actual Total Cost])),,DESC,Dense)

 

Anyone knows what I am doing wrong?

 

power.png

 

 

 

@mahoneypat

 

 

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or add your reply as Answered to close this thread.
It will help other community members easily find the solution when they get the similar issue.

Best Regards,
Community Support Team _ Eason

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can try the following code.

Ra Cost LV5 = RANKX(ALLSELECTED('Report 1'[LVL5_Description]),CALCULATE(SUM('Report 1'[Actual Total Cost])),,DESC,Dense)

 If  not correct, please provide a more detailed table model for testing.

 

Best Regards,
Community Support Team _ Eason

 

 

Fowmy
Super User
Super User

@Anonymous 

Your measure is fine, I am not sure how other filters applied in the report are affecting this ranking, try

 

Ra Cost LV5 = RANKX(ALL('Report 1'),CALCULATE(SUM('Report 1'[Actual Total Cost])),,DESC,Dense)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thanks for your help Fowmy

 

Unfortunately this is an option I have tried already but is not working.

 

It is probably starting from 14 because not is not considering the slicers anymore but still I ahve 2 deifferent value with the same ranking.

 

Untitled.png

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors