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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Kanivan
Frequent Visitor

RANKX gives another value with filter

I have data containing, among other things, dates when a sale has taken place, the counterparty and the value. I have 2 (dropdown) sliders on my page, one to select the counterparty of which i want to see the ranking based on total value of the sales and one to select the year for which I want to see the ranking. i also have some page level filters to block out some products which which i dont want in the total sales. I have the following measure to derive the ranking:

ranking = rankx(ALL(SCD_data[Ctp]),CALCULATE(sum(SCD_data[MW_EUR])))
 
When i just select the year and dont select any counterparty in the dropdown slider i get the correct ranking. But if i select a counterparty in the dropdown the incorrect ranking is presented. What am I doing wrong?
3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Kanivan,

 

Could you share some sample data and clarify more details about the expected result?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Zubair_Muhammad
Community Champion
Community Champion

@Kanivan

 

Try ALLSELECTED instead of ALL in the formula


Regards
Zubair

Please try my custom visuals

Allselected also doesnt give the right ranking

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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