Forum Discussion
Help with RANK function with and dynamic formatting
- 2 years ago
Hi Fusilier
Create this as a new measure, make sure to put your own table and column names in
Rank Questions =
RankX( --Performs an expression for each row
AllSelected('Combined Table'[Question]) --Remove internal filters keeps external
,Calculate(Count(Combined Table'[Answer])) --Calculate applies a fitler,DESC --Sort most to least
,Skip--If 2 questions rank 1st, third question gets 3nd not 2nd
)Apply this measure in Cell elements click the Fx symbol and change the Format Style to Field value
Colour rank =
If( [Rank Questions] <= 3, "Green", "Red")
Hi Fusilier
Create this as a new measure, make sure to put your own table and column names in
Rank Questions =
RankX( --Performs an expression for each row
AllSelected('Combined Table'[Question]) --Remove internal filters keeps external
,Calculate(Count(Combined Table'[Answer])) --Calculate applies a fitler
,DESC --Sort most to least
,Skip--If 2 questions rank 1st, third question gets 3nd not 2nd
)
Apply this measure in Cell elements click the Fx symbol and change the Format Style to Field value
Colour rank =
If( [Rank Questions] <= 3, "Green", "Red")
- Fusilier2 years ago
Helper III
Thank you. Works great!