Forum Discussion
ymilne
1 year agoFrequent Visitor
Conditional Formatting - Bar Chart with Drilldown
I'm trying to apply conditional formatting to a bar chart which has drilldown. The first level is Products, and the scond level is month for full year. I want the bar chart to be coloured green ...
- 1 year ago
Updated DAX Measure:
Month Colour (FYF) =
SWITCH(
TRUE(),
ISINSCOPE(Dim_Table_Product[Product]),
"#44B388", -- Green Colour for Product Level
SELECTEDVALUE(Dim_Table_Date[EndOfMonth]) < [CM Date + 1],
"#155199", -- Blue Colour for Monthly Data
SELECTEDVALUE(Dim_Table_Date[EndOfMonth]) > [CM Date],
"#44B388", -- Green Colour for Monthly Actuals
"#44B388" -- Default to Green Colour
)If this helped, a Kudos 👍 or Solution mark would be great!🎉
Cheers,
Kedar Pande
Connect on LinkedIn
Kedar_Pande
1 year agoSuper User
Updated DAX Measure:
Month Colour (FYF) =
SWITCH(
TRUE(),
ISINSCOPE(Dim_Table_Product[Product]),
"#44B388", -- Green Colour for Product Level
SELECTEDVALUE(Dim_Table_Date[EndOfMonth]) < [CM Date + 1],
"#155199", -- Blue Colour for Monthly Data
SELECTEDVALUE(Dim_Table_Date[EndOfMonth]) > [CM Date],
"#44B388", -- Green Colour for Monthly Actuals
"#44B388" -- Default to Green Colour
)
If this helped, a Kudos 👍 or Solution mark would be great!🎉
Cheers,
Kedar Pande
Connect on LinkedIn
- ymilne1 year agoFrequent Visitor
Thank you, this worked perfectly