Forum Discussion
lawada
4 years agoHelper III
trying to use conditional formatting
hello everyone! i have created a cohort in power bi in a matrix visual and im trying to change the values backgroundcolor using the conditional formating however im unable to get my intended outp...
- 4 years ago
lawada
I created a sample file with my data and tried to answer your question. To apply CF across columns by row, you need to create a measure that ranks the values across columns and excludes the unnecessary column: Please check the measure below. File attached belowCF Rank = IF( MAX(financials[Month Number])<>1, CALCULATE( RANKX( ALLSELECTED( financials[Month Number] ), [Total Units] ), KEEPFILTERS( financials[Month Number] <> 1 ) ) )
When you apply conditional formatting, choose Don't Format under default Formatting
Fowmy
4 years agoSuper User
lawada
I created a sample file with my data and tried to answer your question. To apply CF across columns by row, you need to create a measure that ranks the values across columns and excludes the unnecessary column: Please check the measure below. File attached below
CF Rank =
IF(
MAX(financials[Month Number])<>1,
CALCULATE(
RANKX(
ALLSELECTED( financials[Month Number] ),
[Total Units]
),
KEEPFILTERS( financials[Month Number] <> 1 )
)
)
When you apply conditional formatting, choose Don't Format under default Formatting
lawada
4 years agoHelper III
working perceftly. thank you !