Forum Discussion
clustered bar chart color coding
- Anonymous4 years ago
Hi Anonymous ,
Please use the IF() or SWITCH() functions to create similar measure and use it as a conditional format for visuals.
Measure = VAR _total = SUM('Table'[Value]) VAR _colour = SWITCH( TRUE(), _total>=5000 && _total<=6000,"Blue", _total<5000, "Red", _total>6000, "Green" ) return _colourAttached PBIX file for reference.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hi Anonymous ,
Please use the IF() or SWITCH() functions to create similar measure and use it as a conditional format for visuals.
Measure =
VAR _total = SUM('Table'[Value])
VAR _colour =
SWITCH(
TRUE(),
_total>=5000 && _total<=6000,"Blue",
_total<5000, "Red",
_total>6000, "Green"
)
return
_colour
Attached PBIX file for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data