Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

slicer background color based field vale

Hi 

i have an issue to format slicer background color based on selecting value in the same slicer. Using measure with IF and ISFILTERED function in background color. (more info in pic below) It is not changing as expected

 

When I copy the visual it works fine (it works for other visuals excepts "home" one)

 

see at the picture bellow.

 

Pavel

PavelHanus_0-1652972482250.png

 

Status: Delivered

Update:

It is by design in Power BI. Slicers don't filter themselves. If they did, as soon as you selected one value, all the other choices would disappear. When you copy and have a second slicer, then that second slicer filters the first one, but it also removes all the other options. 

 

To achieve what you want, consider a Rect Shape object with conditional Fill color, underneath the slicer, and make the slicer background transparent. Make sure to use Count (distinct) as the summarization for your Rules

 

Best Regards,
Community Support Team _ Yingjie Li

Comments
v-yingjl
Community Support
Status changed to: Accepted

Have sumbited this issue internal to confirm(ICM: 309003853), would update here as soon as possible if there is any progress about it.

 

Best Regards,
Community Support Team _ Yingjie Li

v-yingjl
Community Support
Status changed to: Delivered

Update:

It is by design in Power BI. Slicers don't filter themselves. If they did, as soon as you selected one value, all the other choices would disappear. When you copy and have a second slicer, then that second slicer filters the first one, but it also removes all the other options. 

 

To achieve what you want, consider a Rect Shape object with conditional Fill color, underneath the slicer, and make the slicer background transparent. Make sure to use Count (distinct) as the summarization for your Rules

 

Best Regards,
Community Support Team _ Yingjie Li