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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bobbob123
Helper III
Helper III

Trigger Bookmarks using Slicer

Hi

 

I have 1 slicer (year value), 1 visual (any visual) and 1 shape that cover my entire visual.

 

I want to cover my visual with the 1 shape (set of 50% transparence) unless a user selects a value from the slicer then it will be 100% transparent. 

Is this possible within Power BI ?

1 ACCEPTED SOLUTION
techies
Super User
Super User

Hi @bobbob123 as i understand , you can use the following ShapeFillColor measure and apply it to the shape’s fill color using conditional formatting (fx in the Fill setting)

 

ShapeFillColor =
IF(
ISFILTERED('YourTable'[Year]),
"#FFFFFF00", 
"#80808080" 
)

Power BI & Microsoft Fabric
PL-300 | DP-600 | DP-700 Certified

View solution in original post

4 REPLIES 4
techies
Super User
Super User

Hi @bobbob123 as i understand , you can use the following ShapeFillColor measure and apply it to the shape’s fill color using conditional formatting (fx in the Fill setting)

 

ShapeFillColor =
IF(
ISFILTERED('YourTable'[Year]),
"#FFFFFF00", 
"#80808080" 
)

Power BI & Microsoft Fabric
PL-300 | DP-600 | DP-700 Certified
danextian
Super User
Super User

Hi @bobbob123

Slicer selections cannot trigger bookmarks. You can create a measure that returns an RGBA color depending on slicer selection and use it to conditinally format the color of a shape. Note: it only affects the color and not whether the shape is hidden or not.

 

danextian_0-1742549489196.gif

Please see the attached sample pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian thats a great approach, but i need just 2 outcomes. if no selection is made, then the background blocks the user from seeing the visual (blurred effect, solid effect etc doesn't matter) and if a user makes a selection then they should be able to see the entire visual. 

You can set the transparency value to 100% by setting the alpha value to 0 depending on slicer selection but please note that since the shape is overlaying the other visuals, users cannot interact with it.  Here's a sample measure to be used in conditional formatting - field value option.

Shape color =
VAR SelectedCount =
    DISTINCTCOUNT ( 'Table'[Column] ) // Count the number of distinct selected values in the slicer.
VAR TotalCount =
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Column] ), ALL ( 'Table' ) ) // Count the total number of distinct values in the column, ignoring slicer filters.
RETURN
    IF ( SelectedCount < TotalCount, "rgba(0,0,0,0)", "white" )
// If the selected count is less than the total count, it means a selection is made, 
// so return fully transparent color "rgba(0,0,0,0)".
// Otherwise, return "white" when no selection is made (all values are selected).

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.