Forum Discussion
powerbiexpert22
1 year agoImpactful Individual
Hide Visuals for Specific Users or Group
1. can i hide certain visuals for specific users or group? example i have bar chart , line chart and pie chart in one page of report. i want to show only bar chart and pie chart to finance users and...
- Anonymous1 year ago
Hi powerbiexpert22 ,
Thank you for the follow-up,I would be happy to assist you!- Create 3 measures for each visual .
ShowBarChart =
IF(
MAX(SalesData[Department]) = "Finance",
1,
0
)ShowLineChart =
IF(
MAX(SalesData[Department]) = "Marketing",
1,
0
)ShowPieChart =
IF(
MAX(SalesData[Department]) = "Finance",
1,
0
) - To control the visibility of visuals based on user roles, add the desired chart type to your report (such as a bar chart, line chart, or pie chart), then navigate to the filter pane for that visual and apply the corresponding visibility filter: for a Bar Chart, set the filter ShowBarChart = 1; for a Line Chart, use ShowLineChart = 1; and for a Pie Chart, apply ShowPieChart = 1. This ensures that each visual is only displayed when the corresponding condition is met.Refer the screenshot:
-
Create an RLS rule on UserAccess:
[UserName] = USERPRINCIPALNAME()
- Refer the screenshots below:
ā
ā
- Please refer the attached file.
I hope this answer resolve your query.If so,give us kudos and consider accepting it as solution.
Regards,
Pallavi. - Create 3 measures for each visual .
Akash_Varuna
1 year agoSuper User
powerbiexpert22 Yes, you can hide certain visuals for specific users or groups by using Row-Level Security (RLS) with a permissions table and DAX measures to conditionally show visuals based on user roles. For example, create a measure like ShowVisual and filter visuals using it. Similarly, to show different colors for the same chart, create a DAX measure for background or data color based on user roles and apply it via conditional formatting.