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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HugoJesus
Helper IV
Helper IV

RANK BASED EXPRESSION TABLE

Hi everyone, 

 

I need help with this, I've searched in all forums but, noone have a solution to my case.

 

For better understanding, I've attached the example of my PBIX, in a very very simple way, but mine is more complex.

 
 
First, without any filters, my table RANK works perfectaly:
HugoJesus_0-1661267667515.png

When I filter the Hotel = 2 the RANK duplicate and the RANK of the summarized is stuck to the first data.

HugoJesus_1-1661267751075.png

 

Anyone have an idea to remove Duplicated values in the VAR RANK Column, or the summarized changing with the filter.

 

Be attention, I've a lot of filters in the original PBIX, I can't limit to one filter at all.

 

Thanks in advance, 

Hugo Jesus

 
1 ACCEPTED SOLUTION
HugoJesus
Helper IV
Helper IV
5 REPLIES 5
HugoJesus
Helper IV
Helper IV

v-jianboli-msft
Community Support
Community Support

Hi @HugoJesus ,

 

If you apply the filer on the page level, the data will be filtered on this report page. In this condition, after you applied the filter Hotel = 2 , the sum value will be like this:

vjianbolimsft_1-1661492256691.png

If you do not want the result be changed by the filter, consider using calculated column like RANK_TAB, instead of using measure.

 

Best Regards,

Jianbo Li

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

HugoJesus
Helper IV
Helper IV

Hey @JarroVGIT ,

I saw one of your comments in a Topic, saying " looooove ranking questions".

 

How can you help me out of this?

 

Best Regards, 

Hugo Jesus

ToddChitt
Super User
Super User

Try something like this:

My Rank = CALCULATE ( RANK (sorry, I don't remember the syntax of RANK function), ALL ( 'Main Table' ) )

That will ensure that the [My Rank] measure is NOT affected by slices of the 'Main Table'.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





@ToddChitt Thanks a lot for your answer.
But, I've alreadry tried before and doesn't work. Sorry
I've change the body of my topic, to clarify my doubts, and please click in the link and download the PBIX Example to understand what I'm dealing off.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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