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

View all the Fabric Data Days sessions on demand. View schedule

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

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors