Forum Discussion
Difference between RANKX in Matrix and Card visuals
- 3 years ago
Hi, TMoney
I'm sorry for replying so late, I've just seen your message.
Please checked the attached pbix file. You may need to modify the measure formula like:
New Rank Basic = VAR tab = ADDCOLUMNS ( ALLEXCEPT('aims teams','aims teams'[Index]), "SUM.$Sales", [SUM.$Sales], "_Rank basic", [Rank basic] ) RETURN MINX(tab, [_Rank basic] )Best Regards,
Community Support Team _ Eason
Thanks for the response. Your [New Rank Basic] measure makes sense (albeit I'm still confused as to why it's a necessary layer on top of RANKX). In any event, it's still not working in my "real" file (I had redacted some info for purposes of posting the sample, but nothing that would seemingly impact results):
I was awaiting a further response to my question (sample file was attached which is still showing the error). On top of trying to solve this particular challenge, I'm really interested in the underlying cause of why RANKX is behaving in this extremely unpredictable and strange way.
- v-easonf-msft3 years agoCommunity Support
Hi, TMoney
I'm sorry for replying so late, I've just seen your message.
Please checked the attached pbix file. You may need to modify the measure formula like:
New Rank Basic = VAR tab = ADDCOLUMNS ( ALLEXCEPT('aims teams','aims teams'[Index]), "SUM.$Sales", [SUM.$Sales], "_Rank basic", [Rank basic] ) RETURN MINX(tab, [_Rank basic] )Best Regards,
Community Support Team _ Eason- Anonymous3 years agoNot applicable
Hi! I'm having the same problem as the original poster but, when I try this measure in a visual, it keeps loading forever. Do you might know what can be causing this?