Forum Discussion
Conditionally format bar chart column colour based on slicer value
- 6 years ago
Hi msommerf ,
Try this:
1. Create a separate Depot table.
Depot = VALUES ( 'Table'[Depot] )2. Create a Measure like so:
Highlight = IF ( MAX ( 'Table'[Depot] ) = SELECTEDVALUE ( Depot[Depot] ), "Yellow", "Blue" )3. Set conditional formatting of Data color in Clustered column chart.
4. Test.
For more details, please check the attached PBIX file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi msommerf ,
Try this:
1. Create a separate Depot table.
Depot = VALUES ( 'Table'[Depot] )
2. Create a Measure like so:
Highlight = IF ( MAX ( 'Table'[Depot] ) = SELECTEDVALUE ( Depot[Depot] ), "Yellow", "Blue" )
3. Set conditional formatting of Data color in Clustered column chart.
4. Test.
For more details, please check the attached PBIX file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can we do this for multiple selection ? For example select Depot 1 and Depot 2 to highlight two bars.