Forum Discussion
sandman3300
4 years agoNew Member
Rankx issue
Dear experts,
I am trying to figure out what is wrong with my dax measure. I don't understand why I am getting 1 for all ranks.
12 Replies
- johnt75
Super User
You are removing the filter from the Exposure column but there is also a filter on the Observation column. Try
Ranking measure = RANKX ( ALL ( 'Safety stats' ), CALCULATE ( SUM ( 'Safety stats'[Observations] ) ) )- sandman3300New Member
- johnt75
Super User
Hmm, that works for me, and notice how the Others row is now getting a value. Use Performance Analyzer to get the code generated for the table and paste it into DAX Studio. That will tell you if any other filters are being applied which might affect the results, and if you execute the query you can compare the results from DAX Studio with Power BI, which should of course be the same