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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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'.

@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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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