Forum Discussion
Question on RANKX formula and selected value
- 1 year ago
Anonymous is correct. These 2 have "Dont Summarize", and it is parsing out the states further.
If you remove them, or change them to sum or a different aggregation, Rank would work again using:RANKX(
ALL(migrationt[Name]),
CALCULATE(SUM(migration[netflow_tot]))
)
Try this..
*edited to add Calculate in orange
RANKX(
ALL(migrationt[Name]),
CALCULATE(SUM(migration[netflow_tot]))
)
- kobkabnaja1 year agoHelper II
Hi Tutu_in_YYC ,
Thanks for your prompt response. I did try that formula. But it did solve the problem. When I selected only one state, it still showed rank 1.
I would appreciate any further suggestions you may have.
Best,
K.
- Tutu_in_YYC1 year agoSuper User
interesting... we tried on my end, and it works... see below:
after selection- kobkabnaja1 year agoHelper II
Thanks for your comfirmation. I tried both [YEAR], and [STATE] (or NAME) in the ALL('migration'[Name]). Both give me inccorect values, either 1 or 50. And when I took the CALCULATE out, all the values beccame 1 (I did not show it in the attached).
I am wondering if there is something that I have to do with the year filter.
Thank you,
K.