Forum Discussion

MrVillareal's avatar
MrVillareal
Regular Visitor
7 years ago
Solved

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