Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

RANKX not working as expected

Hi All,

 

I have a simple query my RANKX is not working as expected can someone please explain me whats wrong? when i try to use ALL() function with only table name giving wrong result as below

My Measures

total sum = sum('FoodMart-Transaction-(1997-1998)'[quantity])
RANKX = Rankx(all('Calendar-Lookup'),[total sum])

 

however, when i try to give ALL() function with table[column name] its working fine how ?? shouldnt that yeild correct result irrespective of table name or column name??

RANKX = Rankx(all('Calendar-Lookup'[YEAR]),[total sum])

Regards,

Husna

 

 

2 Replies