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.

Reply
greycatathome
New Member

Does the built-in feature for modifying slicer background colors work in power BI?

I would like to modify the background color of my slicer based on user selections within that slicer. While I am aware that an alternative solution involves placing an identical shape underneath the slicer to achieve the same result, I am looking for a solution that avoids this method due to its time-consuming nature.

I've observed that there is an 'fx' button available for configuring the slicer background color, and it allows the use of DAX expressions. However, I encountered an issue with the DAX expression 'IF(ISFILTERED(DIM_PARENT_DEMO[d_LOB]), "#8AD4EB", "#FFFFFF")'; it doesn't seem to work as intended. If anyone has insights into why this might be the case or knows of a solution, I would greatly appreciate the assistance.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

We stumbled over that one as well recently.  You need to internalize that ISFILTERED  is meaningless inside the slicer visual, it only has meaning for the data model that is actually filtered by the slicer.  The "second shape"  option may be time consuming but it is your only viable option.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

We stumbled over that one as well recently.  You need to internalize that ISFILTERED  is meaningless inside the slicer visual, it only has meaning for the data model that is actually filtered by the slicer.  The "second shape"  option may be time consuming but it is your only viable option.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.