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]))
)
Hi Anonymous, thannks for chiming in. I have tried that and it still does not work out. It ranked all the states regardless of the year. Please see the attached for your reference.
I plan to share the .pbix file, but I could not find the place to attache the file here.
Do you think it is because I cannot rank all the state by year properly? Ideally, if I can rank all the states by year first, I can pull the correct rank using the state and year. Is that the case?
Thank you,
K.
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]))
)
- kobkabnaja1 year agoHelper II
Wow, I definitely would not have caught this issue without the help from you guys. Thank you so much!
I fixed the columns by changing them to summarize, but the ranks are now 1 and 2 in stead of 1 and 50. lol. Did I do something wrong here? Would you mind editing the file and share it back with me. I truly appreciate your help!Thank you,
K.- Tutu_in_YYC1 year agoSuper User
Let me know if it doesnt satisfy the requirements:
https://drive.google.com/file/d/1F88VbqmPSrWcm5J_KG-RacJojI_RNRtl/view?usp=sharing- kobkabnaja1 year agoHelper II
It worked! Could you please share with me how you adjusted it? I tried to follow your formula in the file I sent you, but it still did not work 😞
Is it because my power BI set something up differently?Best,
K.