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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
AS1110
Frequent Visitor

Need help on show/hide table visualization

Hello,

 

I am trying to show/hide table visualization based on the slicer selection.

For ex I have 2 categories in slicer namely "Vehicle" & "Fruits",then

when user selects vehicle , the below table needs to be displayed.

CountryCategorySales ValueSales Volume
USVehicle123111
IndiaVehicle122333

Similarly when one selects Fruits the below table needs to be displayed

CountryCategorySales ValueSales Volume
USFruit123111
IndiaFruit122333

I tried having the below measure at the visual level filter to hide the table.But I am able to hide only the values the column headers are still appearing.Is there a way to completly hide the table?

Hide Visual =
IF (
    SELECTEDVALUE ( table[Category]) = "Vehicle",
    1,
    IF ( SELECTEDVALUE ( table[Category] ) = "Fruit",
     2 )
)

Please note that I am using live connection type to AAS

Thanks in Advance!!
2 REPLIES 2
amitchandak
Super User
Super User

@AS1110 , why are you not using a category slicer and display the same visual? Why you need to hide?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

This is sample data.In the real scenario there is a huge data load happening for each of the categories.when I am trying to filter the data through slicer the the whole table is taking around 20 secs to load.

To reduce the time we created 4 different tables for each of the 4 categories and trying hide/show the table based on user selected value

Initially we were getting "Visual exceeded resource value error" then we optimised all of the dax queries and brought the time to 20 sec.Since this time is  not accepatble we thought of using this approach
since it is a live connection type we dont have that much of feasibilty to do any transformations in desktop.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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