0
0
Power BIbi_tool~20 mins

Testing RLS in Desktop in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RLS Desktop Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Row-Level Security (RLS) Behavior in Power BI Desktop

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?

AThe data is filtered exactly as it would be for the selected role when published to the Power BI Service.
BThe data is filtered only partially and may show more rows than the actual role would see in the service.
CThe 'View as Roles' feature does not filter data; it only highlights rows related to the role.
DRLS roles cannot be tested in Power BI Desktop; testing is only possible after publishing.
Attempts:
2 left
💡 Hint

Think about how Power BI Desktop simulates the role's data view before publishing.

🎯 Scenario
intermediate
2:00remaining
Testing Multiple RLS Roles in Power BI Desktop

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?

AData is filtered to show only rows visible to both roles simultaneously (intersection).
BData is filtered to show rows visible to either 'SalesRegionEast' or 'SalesRegionWest' (union of roles).
COnly the first selected role is applied; the second is ignored.
DPower BI Desktop throws an error because multiple roles cannot be selected together.
Attempts:
2 left
💡 Hint

Consider how multiple roles combine their filters in Power BI Desktop.

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

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?

APower BI Desktop does not support filtering on text columns in RLS roles.
BThe DAX filter syntax is incorrect and causes the filter to be ignored.
CThe 'Region' column is not included in the data model's relationships, so the filter does not propagate.
DThe 'View as Roles' feature only works after publishing to the Power BI Service.
Attempts:
2 left
💡 Hint

Think about how RLS filters propagate through relationships in the data model.

dax_lod_result
advanced
2:00remaining
Evaluating RLS Impact on a DAX Measure in Power BI Desktop

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
A0
B4500
C1000
D2000
Attempts:
2 left
💡 Hint

Remember that RLS filters the data before the measure calculation.

visualization
expert
3:00remaining
Designing a Power BI Desktop Report to Test RLS Effectively

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'?

AA matrix visual showing 'Region' rows and 'Total Sales' values, with no slicers or filters applied.
BA card visual showing overall total sales without any region breakdown or filters.
CA table visual showing 'Region' and 'Total Sales' with a slicer on 'Region' to manually filter data.
DA clustered bar chart showing 'Region' on the axis and 'Total Sales' as values, with a page-level filter on 'Region'.
Attempts:
2 left
💡 Hint

Think about a visualization that automatically reflects RLS filtering without manual user filtering.