The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 ???
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:
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:
Create a Measure to Control Visibility:
Use Conditional Formatting:
Apply Conditional Formatting:
Another approach is to use dynamic measures and calculated columns to control the data displayed in visuals.
Steps:
Create a Measure for Data Display:
Use the Measure in Visuals:
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:
Create Bookmarks:
Add Buttons:
Use Buttons to Toggle Visibility:
Instead of using a card visual with transparency, consider layering visuals using dynamic visibility.
Steps:
Layering with Transparent Shapes:
Dynamic Layer Visibility:
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:
Review RLS Rules:
Apply RLS to Visuals:
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 .