Forum Discussion
Conditional Format column chart based on separate date table
- 1 year 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.
please share dummy data or file
- Ben_Cates1 year agoFrequent Visitor
Here's a link to the dummy .pbix. And a better screenshot below of what I'm trying to achieve.
Both ramps have monthly values from January 2023 through September 2024. Calgary has a separate transition date of May 1, 2024, so every column prior to that on the chart needs to be a different colour. When a user slices the chart to display Edmonton, which has a transition date of July 1, 2023, the chart needs to update the formatting so that every column prior to July 1 has a different colour.
https://drive.google.com/file/d/1One0TErghoLo79Mw6CE0BV90PG8BPg4H/view?usp=sharing
- elitesmitpatel1 year agoSolution Supplier
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.