Forum Discussion
JamesGordon
Helper II
4 years agoConditional Format Matrix on Average of row total
Hi all, I am trying to add some conditional formatting to a matrix table but struggling to get the correct result. I am trying to make the value in the table turn either Green or Red. Green i...
- 4 years ago
JamesGordon Have you checked that calculation in context of the individual cells? Seems like you would need something like:
myAverage = divide( CALCULATE(sum(Sheet[Total Sell]),ALLEXCEPT(Sheeet[Make])),CALCULATE(COUNTROWS(DISTINCT(Sheet[Rep])),ALLEXCEPT(Sheet[Make])))
Greg_Deckler
Community Champion
4 years agoJamesGordon Have you checked that calculation in context of the individual cells? Seems like you would need something like:
myAverage = divide( CALCULATE(sum(Sheet[Total Sell]),ALLEXCEPT(Sheeet[Make])),CALCULATE(COUNTROWS(DISTINCT(Sheet[Rep])),ALLEXCEPT(Sheet[Make])))JamesGordon
Helper II
4 years agoThank you, thats appears to give me the average of the row total so getting nearer. But how can i now make that figure colour coordinate the individial cells?
- AlexisOlson4 years ago
Super User
Try coloring based on a measure like
SUM ( Sheet[Total Sell] ) - [myAverage]