Forum Discussion
Conditional formatting by row
Hi, you need to create a color measure for each measure. Review the attached screenshot and power bi file.
RowMax =
MAX( [Measure A], MAX( [Measure B], [Measure C] ) )
Case 2 when sales is less than other measures, color turns blue.
ColorMeasureA =
IF( [Measure A] = [RowMax], "#FF0000", "#0000FF" )
ColorMeasureB =
IF( [Measure B] = [RowMax], "#FF0000", "#0000FF" )
Then apply conditional formatting, field value to each measure.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi fahadqadir3 ,
I'm trying to use the "RowMax" measure but it doesn't work in my case. I can only add 3 variables, but I have 5 variables (see below):
I get the variables from the third one afterwards underlied in the measure, so there should be an error/limitation:
Also, I would like to know what do you do with the "RowMax" and the colors measures. I don't see they are added in the filters nor the table.
Thanks!
- J_S_A1 year agoHelper I
hI fahadqadir3
I have created this measure to obtain the Max Deviation in each row:MaxDeviation =VAR ValuesTable = {[Average_Created_FuncSpec],[Average_FuncSpec_Handover],[Average_Handover_Delivery],[Average_UAT_Deploy],[Average_Deploy_Completed]}VAR MaxValue = MAXX(ValuesTable, [Value])RETURN MaxValue
Then, i have created this measure for the color:Color_Created_FuncSpec =IF( [Average_Created_FuncSpec] = [MaxDeviation], "#FF0000", "#0000FF" )
But nothing changes.
Could you please help me?- J_S_A1 year agoHelper I
Hi fahadqadir3 , andrewsommer
Could anyone help me with the solution?
Thanks