Forum Discussion
ben73
2 years agoFrequent Visitor
Power BI Treemap with Conditional Formatting
Hi All, I need to fulfil the business requirement: building a progress chart using treemap that the color of the bars can change based on certain value (In this case is measure 'A'). I have tried...
- Anonymous2 years ago
Hi ben73 ,
You can try below formula and use it in conditional formatting:
TreemapColor = SWITCH( TRUE(), [Measure A] < 75, "Blue", [Measure A] >= 75, "light blue", "Gray" )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi ben73 ,
You can try below formula and use it in conditional formatting:
TreemapColor =
SWITCH(
TRUE(),
[Measure A] < 75, "Blue",
[Measure A] >= 75, "light blue",
"Gray"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- ben732 years agoFrequent Visitor
Hi Anonymous ,
Thank you for your reply. I decided to use Data bar KPI visual published by Travis Sansome to solve my problem. Maybe next time, I will try your solution.