0
0
Power BIbi_tool~20 mins

Managing RLS in Service in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RLS Mastery in Power BI Service
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding RLS Role Assignments in Power BI Service

In Power BI Service, you have created a role with a DAX filter to restrict data by region. You want to assign users to this role so they only see data for their region.

Which method correctly assigns users to the RLS role in Power BI Service?

AGo to the dataset's security settings in Power BI Service and add users to the role by their email addresses.
BEdit the Power BI Desktop report and add users to the role under the Modeling tab before publishing.
CShare the report link with users; RLS roles are automatically assigned based on their Azure AD group.
DCreate a new workspace and add users as members; RLS roles apply automatically to workspace members.
Attempts:
2 left
💡 Hint

Think about where user-role assignments are managed after publishing the dataset.

dax_lod_result
intermediate
2:00remaining
DAX Filter Behavior in RLS Role

Given a table 'Sales' with columns 'Region' and 'SalesAmount', you define an RLS role with this DAX filter:

Sales[Region] = USERPRINCIPALNAME()

If a user with email 'north@company.com' logs in, what will be the result of this DAX query?

EVALUATE FILTER(Sales, Sales[Region] = USERPRINCIPALNAME())
AReturns no rows because Sales[Region] contains region names, not emails.
BReturns all rows where Sales[Region] equals the user's display name.
CReturns all rows because USERPRINCIPALNAME() is ignored in RLS filters.
DReturns all rows where Sales[Region] equals 'north@company.com'.
Attempts:
2 left
💡 Hint

Consider the data type and values in the 'Region' column compared to USERPRINCIPALNAME() output.

🔧 Formula Fix
advanced
2:00remaining
Diagnosing RLS Not Applying in Power BI Service

You published a Power BI report with RLS roles defined and assigned users in Power BI Service. However, users report they can see all data, ignoring RLS filters.

Which of the following is the most likely cause?

AThe dataset is in a Premium workspace, so RLS does not apply.
BThe users are workspace admins or members with Build permission, which bypasses RLS.
CThe RLS roles were not published from Power BI Desktop to the Service.
DThe users are accessing the report via a shared dashboard, which disables RLS.
Attempts:
2 left
💡 Hint

Think about permissions that override RLS in Power BI Service.

visualization
advanced
2:00remaining
Visualizing RLS Impact on Report Output

You have a report page showing total sales by region. RLS is applied to restrict users to their own region.

Which visualization best helps users understand their restricted data view?

AA pie chart showing sales for all regions, but grayed out for regions outside the user's access.
BA map visualization showing all regions, but with tooltips disabled for restricted regions.
CA table listing all regions with sales, but rows outside the user's region are blank.
DA bar chart showing sales by region, with only the user's region bar visible.
Attempts:
2 left
💡 Hint

Consider clarity and avoiding confusion about data visibility.

🎯 Scenario
expert
3:00remaining
Implementing Dynamic RLS for Multiple User Groups

Your company has multiple departments: Sales, Marketing, and Finance. You want to implement RLS so that users see data only for their department. User department info is stored in an Azure AD group membership.

Which approach correctly implements dynamic RLS in Power BI Service?

ACreate one RLS role per department in Power BI Desktop, assign users to roles in Power BI Service based on their Azure AD group membership.
BAssign all users to a single RLS role and rely on workspace permissions to restrict data access by department.
CCreate a single RLS role with a DAX filter using USERPRINCIPALNAME() to lookup department in a mapping table imported into the model.
DUse Azure AD security groups directly in the Power BI Desktop DAX filter expression to filter data by department.
Attempts:
2 left
💡 Hint

Think about how to make RLS dynamic and scalable for many users and departments.