Forum Discussion
Conditional formatting a percentage based on other column
- 2 years ago
I think if you could provide a sample of your data set would be helpful.
Especially since I can't see how you could have two columns with the same name in Power BI.
Later edit: Try to create two separate measures, 1 for Real% January and one for Real% February. Maybe it will work.
My bad, I used the wrong symbol and just edited my post.
Either way, I think that what I'm saying on the formula is:
| Color = IF ( MAX ( 'Table'[REAL_%]) < MAX ('Table'[STD_%]), "Green", "Red") |
If the maximum value in the column 'Real_%' is less than the maximum value in the column 'Std_%', then the condition is true and it returns a Green color, otherwise, Red.
Something like this excel that I have here:
Why not use this instead:
- kdanielv2 years agoNew Member
I tried with your formula and is giving me the same result. Not quite sure what's going on.
- FromZero2BIHero2 years agoFrequent Visitor
I think if you could provide a sample of your data set would be helpful.
Especially since I can't see how you could have two columns with the same name in Power BI.
Later edit: Try to create two separate measures, 1 for Real% January and one for Real% February. Maybe it will work.