Forum Discussion
JUANROVALETTI
3 years agoFrequent Visitor
conditional formatting in a column chart
HI in my monthly report where the user must select a month i have all my visual affected by that month slicer. But i add one visual where i want to show : the total spend from the begining...
- Anonymous3 years ago
Hi JUANROVALETTI ,
I suggest you to create an unrelated calendar table to help your calculation.
Unrelated DimMonth = CALCULATETABLE('Calendar')Measure:
Month Spend = VAR _SELECTYEARMONTH = SELECTEDVALUE('Unrelated DimMonth'[YearMonth]) RETURN CALCULATE(SUM('Table'[Sales]),'Calendar'[YearMonth] = _SELECTYEARMONTH)Color = VAR _SELECTMONTH = SELECTEDVALUE('Unrelated DimMonth'[MonthName]) RETURN IF(MAX('Calendar'[MonthName]) = _SELECTMONTH,"Yellow")Configure the column color as below.
Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
parry2k
Super User
3 years agoJUANROVALETTI you have to follow the technique used in this video, basically you need another table for the date slicer and then compare it with the main date table you are using on the x-axis and where it matches, highlight that bar using conditional formatting: Learn DAX techniques to highlight or shade data points in the visuals - Time Intelligence Power BI - YouTube