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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MrVillareal
Regular Visitor

RANKX in Table Matrix

Hi please your help with RANKX function. I created this measure:

Rank Segment Sales =
IF(NOT(ISBLANK([Sum of Net Sales])),
   RANKX(
       ALL('Profit Centers'[Segment Name]),
       [Sum of Net Sales]
   )
)
Now I created 2 matrix tables,
   A. 1st Table with Segment name, Rank Segment Sales, and Sum of Net Sales
   B.  2nd Table with Rank Segment Sales and Sum of Net Sales
But when I clicked the 1st Table for the Rank 1 Segment Name, the 2nd Table is filtered but shows Rank 2 for the same Segment Name.
 
Any idea what is the problem?
Thanks in advance.
 
Regards,
Marvin

 

1 ACCEPTED SOLUTION
MrVillareal
Regular Visitor

I found the solution:

https://www.sqlbi.com/blog/marco/2014/07/16/use-of-rankx-with-decimal-numbers-in-dax/

 

My workaround is to use ROUND function in my measure [Sum of Net Sales].

View solution in original post

1 REPLY 1
MrVillareal
Regular Visitor

I found the solution:

https://www.sqlbi.com/blog/marco/2014/07/16/use-of-rankx-with-decimal-numbers-in-dax/

 

My workaround is to use ROUND function in my measure [Sum of Net Sales].

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.