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
Hi, TMoney
Add a new measure like:
New Rank basic =
VAR tab =
ADDCOLUMNS (
'aims teams',
"SUM.$Sales", [SUM.$Sales],
"_Rank basic", [Rank basic]
)
RETURN
MINX ( tab, [_Rank basic] )
Best Regards,
Community Support Team _ Eason
- TMoney3 years agoFrequent Visitor
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):
- TMoney3 years agoFrequent Visitor
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