0
0
Power BIbi_tool~20 mins

RLS with multiple roles in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RLS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
DAX Filter Behavior with Multiple Roles

Consider a Power BI model with a table Sales and a table Users. The Users table has a column Role with values 'Manager' and 'SalesRep'. You apply Row-Level Security (RLS) with two roles: Manager role filters Region = "North", and SalesRep role filters SalesPerson = USERNAME(). If a user belongs to both roles, what will be the effective filter on the Sales table?

AThe filters combine with AND, so only sales where Region = 'North' AND SalesPerson = USERNAME() are visible.
BOnly the filter from the first assigned role applies, ignoring the second role.
CThe filters combine with OR, so sales where Region = 'North' OR SalesPerson = USERNAME() are visible.
DNo filters apply because multiple roles conflict and cancel each other.
Attempts:
2 left
💡 Hint

Think about how Power BI combines filters when a user is in multiple roles.

🧠 Conceptual
intermediate
1:30remaining
Understanding RLS Role Membership

In Power BI, how does the system determine which roles apply to a user when multiple roles are defined?

AA user can only be assigned to one role at a time, chosen by the administrator.
BRoles are ignored if a user belongs to more than one; only the default role applies.
CThe user must manually select which role to use when opening the report.
DA user can belong to multiple roles simultaneously, and all their filters apply combined with OR.
Attempts:
2 left
💡 Hint

Think about how Power BI handles multiple roles for a single user.

🔧 Formula Fix
advanced
2:30remaining
Troubleshooting Unexpected RLS Behavior

A report uses two RLS roles: RegionRole filters Region = "East", and DeptRole filters Department = "Sales". A user belongs to both roles but sees no data. What is the most likely cause?

APower BI does not support multiple roles; only one role filter applies, and it is misconfigured.
BThe user’s roles filters combine with OR, but the data model has no rows matching either filter.
CThe user’s roles filters combine with AND, so only rows where Region = 'East' AND Department = 'Sales' are shown, but no such rows exist.
DThe user’s roles filters combine with XOR, causing no data to be shown.
Attempts:
2 left
💡 Hint

Consider how the filters combine and the data in the model.

visualization
advanced
3:00remaining
Designing a Dashboard to Show Role-Based Data

You want to create a Power BI dashboard that shows sales data filtered by RLS roles: Manager sees all regions, SalesRep sees only their own sales. Which visualization design best helps users understand their filtered data?

AA bar chart with a dynamic title showing the user’s role and a slicer for region, disabled for SalesRep role.
BA pie chart showing sales by region, but with no indication of role-based filtering.
CA table listing all sales data with no filters, so users can see all data regardless of role.
DA single bar chart showing total sales without any labels or filters, relying on RLS only.
Attempts:
2 left
💡 Hint

Think about how to communicate role-based filtering clearly to users.

🎯 Scenario
expert
4:00remaining
Implementing Complex RLS with Multiple Roles and Hierarchies

Your company has a hierarchy: Country > Region > Store. You have three RLS roles: CountryManager filters by Country, RegionManager filters by Region, and StoreManager filters by Store. A user belongs to both RegionManager and StoreManager roles. How should you implement RLS so the user sees all data for their region plus their specific store data, without losing any data?

ACreate separate roles for each level and rely on Power BI’s OR filter combination to show union of region and store data.
BCombine all filters into a single role using AND logic to restrict data to both region and store simultaneously.
CAssign the user only to the most restrictive role to avoid filter conflicts.
DUse DAX USERPRINCIPALNAME() in a single role to filter only the store data, ignoring region.
Attempts:
2 left
💡 Hint

Think about how multiple roles combine filters and how to show union of data.