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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EaglesTony
Post Prodigy
Post Prodigy

Is there a way to dynamically show/hide a table based on slicer value

Hi,

 

  I have a slicer with values of Initiative, Epic, Feature.

 

  There is a table control that shows only Features, thus when the user selects Initiative or Epic, it will hide this table control, but when they select Feature from the slicer, I want to show this table control, is there a way to do this ?

 

  I'm also ok, if there is a solution to always show the table control, but when the user selects Initiative or Epic, the table will be blank, but when they select Feature it will be populated.

 

Thanks

8 REPLIES 8
EaglesTony
Post Prodigy
Post Prodigy

 Is there a way to find out what the slicer value is, almost like a after_selected event ?

You can reference a single item from a filtered column using SelectedValue(table[columnInSlicer]) or use Values{table[columnInSlicer]) if they have multiple selected.

 

So for example:
Measure Single = "You selected the " & SelectedValue(Region[RegionName]) & " region"

or

Measure Multiple = "You chose the following regions " & ConcatenateX(Values(Region, Region[RegionName], ", ")


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

This works!

 

I'm wondering now if using "Measure Single" = "Feature" can execute a bookmark ?

 

I have a bookmark that "hides" certain visuals.

Sadly not 😞


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

miTutorials
Super User
Super User

Check out this tutorial - tweak the logic to meet your requirements.

 

Don't show data in a table if nothing is selected in a PowerBI Slicer | MiTutorials (youtube.com)

SamWiseOwl
Super User
Super User

Hi @EaglesTony 

Objects themselves don't have a visability.

However you could:

  1. Set a rectangle over the top and set the colour to match the report background or see through.                    If( Count(Features) >0, "Background colour", "#FFFFFF00")
  2. Or download a custom visual that supports image URL, use the same calculation to return an image or nothing
  3. Set the text to the same colour as the background or return no text with BLANK()

If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Idrissshatila
Super User
Super User

Hello @EaglesTony ,

 

check this 
https://youtu.be/a9AMSovkZcI?si=WRk5nOJ93IxkbDcH

https://youtu.be/lqPiYGoQxSw?si=LpHx9XqN24PB2_VF

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.