Forum Discussion
Ranking a table visulaisation that updates when slicer changes
- 2 years ago
Not sure why it is not working! All we are trying to do is get the value(s) of slicer and remove blanks and then rank!
Try one at a time and see
Ranking = RANKX( ALLSELECTED('Student Scores'[Module]), [Score %],,DESC,Dense) Ranking = RANKX( ALLSELECTED('Student Scores'[Student Name]), [Score %],,DESC,Dense) Ranking = RANKX( FILTER( ALLSELECTED('Student Scores'[Module]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense) Ranking = RANKX( FILTER( ALLSELECTED( 'Student Scores'[Student Name]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense)Ranking = RANKX( FILTER( ALLSELECTED('Student Scores'[Module], 'Student Scores'[Student Name]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense)If not, pls share the data by removing sensitive info!
Can you try this?
Student Ranking = RANKX(FILTER(ALLSELECTED('Student Scores'),'Student Scores'[Score %] <> BLANK()),'Student Scores'[Score %],,DESC,Dense)
Hi
Thanks for replying. I have just tried it and filtered but the Student Ranking still starts from 171 rather than 1...
- sevenhills2 years agoSuper User
Ranking = RANKX( FILTER( ALLSELECTED('Student Scores'[Module], 'Student Scores'[Student Name]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense)How about this?
- KTK2 years agoFrequent Visitor
Hi,
Thanks for looking at this. That just gives 1's in the column. I'm thinking I need to go back to the source file and add rankings in there.
- sevenhills2 years agoSuper User
Not sure why it is not working! All we are trying to do is get the value(s) of slicer and remove blanks and then rank!
Try one at a time and see
Ranking = RANKX( ALLSELECTED('Student Scores'[Module]), [Score %],,DESC,Dense) Ranking = RANKX( ALLSELECTED('Student Scores'[Student Name]), [Score %],,DESC,Dense) Ranking = RANKX( FILTER( ALLSELECTED('Student Scores'[Module]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense) Ranking = RANKX( FILTER( ALLSELECTED( 'Student Scores'[Student Name]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense)Ranking = RANKX( FILTER( ALLSELECTED('Student Scores'[Module], 'Student Scores'[Student Name]) , 'Student Scores'[Score %] <> BLANK()) , [Score %],,DESC,Dense)If not, pls share the data by removing sensitive info!