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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Gowris94
Frequent Visitor

Hide/Show Visuals - Unable to interact with table visual

Hi All, 

 

My Requirement is to show or hide the visuals in the report based on the data available to the user in the column . I have used RLS in my Report to dynamically show the data's based on the user logg in 

As we should not be using booksmarks or Slicers in our report to hide or show visuals i have used a card visual on top of the other visuals  to show transparency using measures . 

The challenge i am facing here is that when the data is available to the user he is able to see the table visuals but he is not able to interact with the visual as we have placed a card visual over it for the transparency . Is there any other way that we can use to show or hide the visuals in the report dynamically ???




2 REPLIES 2
Shravan133
Super User
Super User

To dynamically show or hide visuals in Power BI based on the data available to the user, while ensuring interactivity and avoiding the use of bookmarks or slicers, you can use the following approaches:

1. Conditional Formatting with DAX Measures

You can use DAX measures to control the visibility of visuals. This approach involves creating measures that evaluate the conditions you need and then using these measures in the visual's conditional formatting.

Steps:

  1. Create a Measure to Control Visibility:

    • Create a DAX measure that returns 1 or 0 based on the condition. For example:
       
      ShowVisual = IF(COUNTROWS(Table) > 0, 1, 0)
  2. Use Conditional Formatting:

    • For visuals like tables or matrices, you can use conditional formatting to hide rows or columns based on the measure. For example, set up conditional formatting to make the text color the same as the background color if the measure returns 0.
  3. Apply Conditional Formatting:

    • For visuals where you can control visibility based on conditional formatting, apply these settings to change the visual's appearance when the measure condition is met.

2. Dynamic Measures and Calculated Columns

Another approach is to use dynamic measures and calculated columns to control the data displayed in visuals.

Steps:

  1. Create a Measure for Data Display:

    • Create measures that only return data when certain conditions are met. For example:
      VisibleData = IF([ShowVisual] = 1, SUM(Table[Value]), BLANK())
  2. Use the Measure in Visuals:

    • Use the measure in your visuals to ensure that only relevant data is displayed based on the conditions.

3. Using Bookmarks and Buttons (Alternative Approach)

Although you mentioned avoiding bookmarks, another effective approach could be to use bookmarks combined with buttons to control the visibility of sections of your report.

Steps:

  1. Create Bookmarks:

    • Set up bookmarks for different states of your report (e.g., show/hide visuals).
  2. Add Buttons:

    • Add buttons to your report that users can interact with to switch between bookmarks.
  3. Use Buttons to Toggle Visibility:

    • Configure the buttons to switch between bookmarks that show or hide visuals based on user interactions.

4. Layered Visuals Approach

Instead of using a card visual with transparency, consider layering visuals using dynamic visibility.

Steps:

  1. Layering with Transparent Shapes:

    • Use transparent shapes or text boxes to cover certain areas instead of card visuals. This avoids blocking interactivity.
  2. Dynamic Layer Visibility:

    • Place visual elements within containers or groups and dynamically adjust their visibility based on DAX measures. Use the Selection Pane to manage the visibility of these elements.

5. Using Row-Level Security (RLS) with Specific Visuals

If RLS is already in use, ensure that the RLS rules are correctly set up to limit data access based on user roles. Adjust RLS rules to control the data shown in each visual accordingly.

Steps:

  1. Review RLS Rules:

    • Ensure that your RLS rules are correctly set to filter the data based on the user’s role.
  2. Apply RLS to Visuals:

    • Ensure that visuals are set up to respect the RLS rules and only display data relevant to the user.

Summary

  • Conditional Formatting: Use DAX measures to control visual appearance and data display.
  • Dynamic Measures: Create measures that return data conditionally and use them in your visuals.
  • Bookmarks and Buttons: An alternative approach for dynamic visibility control.
  • Layered Visuals: Use transparent shapes or adjust visual layers for better interactivity.
  • RLS: Ensure that Row-Level Security is correctly applied to filter data based on user roles.

By applying these techniques, you should be able to dynamically show or hide visuals in Power BI while maintaining interactivity and adhering to your requirements.

We are able to show or hide the data's inside the table visual as per the RLS applied  , but we are not able to completly hide the table visual from the report .. The column headers  are still visible even if there is no data to the user  and also  in our report we do have canvas image applied in background ..so transparancy of the visual is not working as expected .

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.