Forum Discussion
Ben_Cates
2 years agoFrequent Visitor
Conditional Format column chart based on separate date table
Hi everyone, I have a basic column chart with a date table on the x-axis, and values on the y. The end user can select to view different charts using the "Ramp" slicer. For each of the values i...
- 2 years ago
Hi Ben_Cates
Below is the solutionSteps :
1) create a measureSelectedColor =SWITCH(TRUE(),SELECTEDVALUE(Facts[Ramp]) = "Calgary" && LOOKUPVALUE(TransitionDate[Transition Date], TransitionDate[Ramp], "Calgary") >MAX(Facts[Date]),"#ec8fca",SELECTEDVALUE(Facts[Ramp]) = "Edmonton" && LOOKUPVALUE(TransitionDate[Transition Date], TransitionDate[Ramp], "Edmonton") >MAX(Facts[Date]),"#FF0000")2) select the column chart and go to Format --> Columns --> Color --> fx3) after clicking on fx in fromat style select field value and below that select the previously created measure.
add more conditions and colour accoding to your choice in measure.
Below is the file link :-Dummy data solved
If you get some value Please Kudo's our effort and Accept it as solution so other can be benefited.
Ben_Cates
2 years agoFrequent Visitor
That worked! Thank you so much for your expertise, elitesmitpatel