Stage 17 of 17

Stage 17 of 17 — Final Challenge

The Manager Compliance Dashboard Challenge

Ravi Sharma wants a personalised compliance dashboard that shows only his team's training status. He wants to see expired training, upcoming expiry, and missing mandatory courses — all in one view, filtered to his team automatically. This challenge asks you to design and build it, and to think carefully about what "filtered to his team" really means from a security perspective.

The Brief

Message from Ravi Sharma, Team Manager (Finance)

From: Ravi Sharma, Team Manager — Finance

Subject: Manager compliance view

The Power BI dashboard is great, but I have to filter it to my team every time I open it. Can you build me a view that automatically shows only my team's training status?

I need to see: (1) who has expired training, (2) who has training expiring in the next 30 days, (3) who is missing mandatory training. I want it all in one place, not three separate pages.

One more thing — I don't want other managers to be able to see my team's data. And I definitely don't want my team members to see each other's training records.

Ravi

The Security Question — Read This First

A visual filter is not security

Ravi says he does not want other managers to see his team's data. Your first instinct might be to add a slicer or filter to the Power BI report that shows only the Finance team. But this is a visual filter, not a security control.

A visual filter changes what is displayed on screen. It does not change what data is loaded into the report. Any user who can access the report can remove the filter and see all teams' data. They can also export the underlying data to Excel and see everything.

To truly restrict Ravi to seeing only his team's data, you need Row-Level Security (RLS).

Row-Level Security (RLS) — Explained

Row-Level Security (RLS) in Power BI restricts which rows of data a user can see, based on their identity. It is enforced at the data level — not the visual level. Even if a user exports the data to Excel, they only see the rows they are permitted to see.

Static RLS

You define a role (e.g. "Finance Manager") and a filter rule (e.g. Employees[Team] = "Finance"). You then assign specific users to that role. Every user in the Finance Manager role sees only Finance team records.

Limitation: You need to create a separate role for each team and manually assign users. If a manager changes team, you must update the role assignment.

Dynamic RLS

You define a single role with a filter rule that uses the current user's identity: Employees[ManagerEmail] = USERPRINCIPALNAME(). Power BI automatically filters the data to show only records where the manager's email matches the logged-in user.

Limitation: Requires the ManagerEmail column to match the user's Microsoft 365 email address exactly. If the email format differs, the filter will not work.

RLS requires Power BI Pro

Row-Level Security is enforced when a report is published to the Power BI service and shared with users. It requires a Power BI Pro or PPU licence for both the report owner and the viewers. POTENTIAL PREMIUM LICENSING.

Your Design Tasks

Task 1 — Design the Manager Compliance Dashboard page

Design a single Power BI report page that shows a manager's team compliance in one view. The page must include:

  • ▸A KPI card showing the number of expired training records for the team.
  • ▸A KPI card showing the number of training records expiring in the next 30 days.
  • ▸A table showing employees with expired training (name, course, expiry date, days overdue).
  • ▸A table showing employees with training expiring in the next 30 days (name, course, expiry date, days remaining).
  • ▸A table showing employees missing mandatory training (name, course). This is the hardest part — see Hint 3.

Task 2 — Implement Row-Level Security

Implement Dynamic RLS so that each manager automatically sees only their team's data. Your implementation must:

  1. 1.Create a role named "Manager" in Power BI Desktop (Modelling → Manage roles).
  2. 2.Add a filter rule to the Employees table: [ManagerEmail] = USERPRINCIPALNAME().
  3. 3.Test the role using "View as" in Power BI Desktop — enter Ravi Sharma's email. Verify only Finance team records are shown.
  4. 4.Publish the report to the Power BI service.
  5. 5.Assign Ravi Sharma to the Manager role in the Power BI service (dataset → Security).
  6. 6.Verify Ravi can only see Finance team records when he opens the report.

Task 3 — Explain the limitations to Ravi

Write a short explanation (3–5 sentences) for Ravi that explains:

  • ▸What RLS does and why it is more secure than a visual filter.
  • ▸What RLS does NOT protect against (e.g. direct SharePoint access).
  • ▸The licensing requirement (Power BI Pro).

Write your explanation here

Task 4 — Write test cases for the Manager Compliance Dashboard

Write at least 3 test cases. Your test cases must cover:

  • ▸Ravi Sharma sees only Finance team records (RLS working).
  • ▸Tom Reeves (Operations manager) sees only Operations team records (RLS working for a different manager).
  • ▸The expired training table shows the correct records for the Finance team.
  • ▸The missing mandatory training table correctly identifies employees with no record for a mandatory course.

Write your test cases here

Hints — Only Read If You Are Stuck

Lab Complete

DTOD-005 Complete

You have completed the full DToD Lab Method for DTOD-005 — Training & Certification Register. You have built a relational data model across three Microsoft Lists, an automated expiry reminder flow with duplicate prevention, and a Power BI compliance dashboard — working through all 17 stages from business brief to Manager Compliance Dashboard challenge.

17

Stages completed

26

Requirements written

16+

Test cases executed

Next: DTOD-010

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project