Forum Discussion
Highlighting Selected Show in Bar Chart
- 6 years ago
Hi Anonymous ,
In your measure you are not comparing nothing so the result is not getting the highlith you need.
Measure = SWITCH(TRUE(),SELECTEDVALUE('Processed Data'[Title]) = SELECTEDVALUE(TAble[Slicer]),"#800000")I have added a part of the formula that you need to compare with the slicer you have.
Hi Anonymous ,
Create a table with the values you want for our slicer assuming that is based on the x-axis value of the bar chart. Do not relate this with your other tables.
Then add the following measure:
Measure = SWITCH(TRUE();SELECTEDVALUE('Table'[X-AxisColumn]) = SELECTEDVALUE(SlicerTable[Colun]); "#000000")
Now go to the bar chart data columns and use the conditional formatting with the field value and select this measure.
Hi MFelix,
Thanks so much for this, I am relatively new to Power BI and Dax but this has helped a lot!
However, unfortunately I am having some issues; this is my version of the measure:
- MFelix6 years ago
Super User
Hi Anonymous ,
In your measure you are not comparing nothing so the result is not getting the highlith you need.
Measure = SWITCH(TRUE(),SELECTEDVALUE('Processed Data'[Title]) = SELECTEDVALUE(TAble[Slicer]),"#800000")I have added a part of the formula that you need to compare with the slicer you have.