When you define Row-Level Security (RLS) roles in Power BI Desktop and test them using the 'View as Roles' feature, which of the following statements is true?
Think about how Power BI Desktop simulates the role's data view before publishing.
Power BI Desktop's 'View as Roles' feature simulates the exact data filtering that the selected RLS role would have when the report is published to the Power BI Service. This allows you to verify RLS behavior locally.
You have created two RLS roles: 'SalesRegionEast' and 'SalesRegionWest'. You want to test the combined effect of these roles in Power BI Desktop. What happens when you select both roles simultaneously in the 'View as Roles' dialog?
Consider how multiple roles combine their filters in Power BI Desktop.
When multiple roles are selected in 'View as Roles', Power BI Desktop applies the union of their filters, showing all data rows visible to any of the selected roles.
You created an RLS role with a DAX filter on the 'Region' column: [Region] = "East". However, when testing in Power BI Desktop using 'View as Roles', the data is not filtered and all regions are visible. What is the most likely cause?
Think about how RLS filters propagate through relationships in the data model.
If the column used in the RLS filter is not properly related in the data model, the filter will not affect related tables, causing the data to appear unfiltered in 'View as Roles'.
Given a table 'Sales' with columns 'Region' and 'Amount', and an RLS role filtering [Region] = "West", what is the result of the following DAX measure when viewed as that role?
TotalSales = SUM(Sales[Amount])
Assume the data is:
- East: 1000
- West: 2000
- North: 1500
Remember that RLS filters the data before the measure calculation.
The RLS role filters the 'Sales' table to only include rows where Region = 'West'. The measure sums only those rows, resulting in 2000.
You want to create a Power BI Desktop report page that clearly shows the effect of RLS roles on sales data by region. Which visualization setup best helps you verify RLS filtering when using 'View as Roles'?
Think about a visualization that automatically reflects RLS filtering without manual user filtering.
A matrix visual listing all regions with their total sales will show only the regions visible to the RLS role when using 'View as Roles'. This makes it easy to verify RLS filtering effects without manual slicers or filters.