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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors