Forum Discussion
Rankx
Hi,
I have a little problem with my RANKX.
Two tables are involved: Costumor and Order
I have a measure to calculate the total amount of the orders for each costumor:
8 Replies
- AnonymousNot applicable
Hi Wiene24 ,
Try this mesaure:
Omzetplaats =
RANKX(
ALL('dba Relatie'[DebiteurNummer]),
[OMZET],
,ASC
)
Thanks,
Tejaswi
- v-lili6-msftCommunity Support
HI, Wiene24
Just try this formula:
Omzetplaats 2 = RANKX(ALL('dba Relatie'),[OMZET] )or
Omzetplaats 3 = RANKX(ALLSELECTED('dba Relatie'),[OMZET] )Result:
For your formula, if you just drag [DebiteurNummer] into visual, it will work too.
Best Regards,
Lin
- Wiene24Helper II
It's getting closer, but not working completely yet!
I'm using this formula now:
Omzetplaats = RANKX(ALL('dba Relatie');[Omzet];;DESC)I want the rank to change if I change my slicers, that's why I didn't use ALLSELECTED.But no idea why it leaves gaps now and why some are ranked as equals.Kind regards,Tim Wijnen- v-lili6-msftCommunity Support
hi, Wiene24
If you want the rank to change if you change my slicers, please use ALLSELECTED instead of ALL.
don't use
Omzetplaats = RANKX(ALL('dba Relatie');[Omzet];;DESC)If you still have problem, please share a simple sample pbix file.
Best Regards,
Lin