NashTech Blog

Table of Contents

In the last blog, Datus AI turned a governed KPI into a Power BI report in hours rather than weeks. However, speed creates a new risk. When reports are easy to build, they also multiply quickly, and Power BI governance decides whether that growth builds trust or chaos.

In this blog, we look at the most common governance pitfalls, then cover three controls that matter most: dataset certification, row-level security, and workspace governance. Finally, we show how Datus AI automates Power BI governance, with code you can run and real outputs.

If you are new to the series, start with why analytics projects fail before they begin. The earlier posts also cover the unified data engineering operating model, AI-assisted platform planning, business questions to architecture, reliable pipelines, metadata-driven engineering, scalable analytics models and the automated semantic layer.

Common Power BI Governance Pitfalls

Most teams do not decide to skip governance. Instead, it erodes one shortcut at a time. These are the pitfalls we see most often:

  • Copies of datasets – Someone downloads a dataset, changes one measure and publishes it again. Soon there are three versions of “attendance rate.”
  • Access granted to people, not groups – Individual users get Member or Admin rights. When they change roles, nobody removes the access.
  • Untested security – Row-level security roles exist, but nobody checks what each user actually sees.
  • Production by accident – Personal test workspaces end up shared with hundreds of viewers.
  • Governance as a one-time review – A checklist runs at go-live and never again, so the tenant drifts.

Good Power BI governance works in layers. Each layer protects the one below it:

We continue with our running scenario, the California School Performance Card. District leaders should see their own district, and state analysts should see everything.

Dataset Certification

Power BI lets you endorse a semantic model as Promoted or Certified. Any contributor can promote content. However, only reviewers that a Fabric administrator authorizes can certify it. Certification tells users:

“This is the trusted version.”

The problem is that certification is often a judgment call. Datus turns it into explicit, repeatable rules. Each dataset in the registry records its owner, description, refresh health, test results, catalog alignment, sensitivity label, and security roles:

RULES = {
    "has owner":             lambda d: bool(d["owner"]),
    "has description":       lambda d: bool(d["description"]),
    "refresh >= 95% (30d)":  lambda d: d["refresh_success_30d"] >= 0.95,
    "tests passed":          lambda d: d["tests_passed"],
    "measures from catalog": lambda d: d["measures_from_catalog"],
    "sensitivity label set": lambda d: d["sensitivity_label"] is not None,
    "row-level security":    lambda d: len(d["rls_roles"]) > 0,
}

def failed_checks(d):
    return [rule for rule, check in RULES.items() if not check(d)]

Output for our two datasets:

School Performance: READY TO CERTIFY
Attendance Extract (copy): BLOCKED (5/7 checks failed)
  - has owner
  - tests passed
  - measures from catalog
  - sensitivity label set
  - row-level security

The first dataset uses measures from the KPI catalog we built in the last blog, so a reviewer can certify it with confidence. The copy fails five checks. Therefore, it stays uncertified, and Datus points users to the trusted version instead.

In addition, the rules give reviewers a shared standard. For example, a reviewer no longer asks:

“Does this look right?”

But checks a clear list of seven items. Because the list lives in Git, teams can also see why a dataset was blocked and fix it themselves.

Row-Level Security

Row-level security (RLS) filters the rows a user can see inside one semantic model. As a result, one report can serve every district, and each leader sees only their own schools.

We use dynamic RLS. A mapping table links each user’s email to a district, and a role filter reads the signed-in user with USERPRINCIPALNAME():

Datus keeps the roles in a small YAML file and generates the TMDL role definitions from it:

role 'District Leader'
	modelPermission: read

	tablePermission dim_school = [district] = LOOKUPVALUE(security_user_district[district], security_user_district[email], USERPRINCIPALNAME())

role 'State Analyst'
	modelPermission: read

	tablePermission dim_school = TRUE()

Defining roles is only half the job. Power BI Desktop and the service both let you view a report “as” a role, which is useful for spot checks. However, manual checks do not scale. Next, Datus tests what each user actually sees before the model is published:

UserSchoolsAttendance Rate
maria@fresno.example191.37
james@oakland.example191.0
new.hire@district.example0no data
ana@state.example592.06

Notice the third row. The new hire has no mapping yet, so they see nothing. This “deny by default” behavior is exactly what we want. A missing mapping should never expose every district.

One detail often surprises teams. RLS only restricts users with Viewer permissions. Workspace Admins, Members, and Contributors can see all the data. For this reason, RLS and workspace access must be governed together.

Workspace Governance

Workspaces are where Power BI governance most often breaks down, because anyone can create one. Power BI offers four workspace roles: Admin, Member, Contributor, and Viewer. First, decide who needs each role; then keep it that way. Datus applies a short, clear policy:

  1. Naming: <domain>-<product>-<stage>, for example edu-performance-prod.
  2. Stages: separate dev, test, and prod workspaces, with prod fed only by a deployment pipeline.
  3. Access: people get edit rights through security groups, never individually.
  4. Content: only certified semantic models live in prod.

Datus audits the workspace inventory against this policy:

NAME = re.compile(r"^[a-z]+-[a-z-]+-(dev|test|prod)$")

def audit(ws):
    issues = []
    if not NAME.match(ws["name"]):
        issues.append("name does not follow <domain>-<product>-<stage>")
    if ws["stage"] == "prod":
        if not ws["pipeline"]:
            issues.append("prod workspace not fed by a deployment pipeline")
        for a in ws["access"]:
            if a["type"] == "user" and a["role"] != "Viewer":
                issues.append(f"{a['principal']} has {a['role']} access as a person; use a security group")
        for item in ws["items"]:
            if item["endorsement"] != "Certified":
                issues.append(f"'{item['name']}' in prod is not certified")
    return issues

Output:

edu-performance-dev: OK
edu-performance-prod: 2 issue(s)
  - john.doe@example.com has Member access as a person; use a security group
  - 'Attendance Extract (copy)' in prod is not certified
Maria's test reports: 4 issue(s)
  - name does not follow <domain>-<product>-<stage>
  - prod workspace not fed by a deployment pipeline
  - maria@fresno.example has Admin access as a person; use a security group
  - 'Attendance Dashboard' in prod is not certified

The audit finds the uncertified copy again, this time sitting in production. It also finds a personal test workspace that is already shared with district leaders.

Governance Automation Using Datus

Each check above is useful on its own. However, the real value comes from running them together, automatically, on every change. Datus combines them into one governance gate:

The gate runs on every pull request, before the deployment pipeline promotes anything to prod:

Datus governance gate
  Dataset certification : 1 ready, 1 blocked
  Row-level security    : 4/4 user tests passed
  Workspace policy      : 1 OK, 2 with 6 issues
Result: FAIL - fix the issues above before deploying to prod

The gate exits with an error code, so the CI pipeline stops the deployment. Then the owner fixes the issue and pushes again.

Changes do not only arrive through pull requests, though. People also edit access and publish content directly in the service. Therefore, Datus also runs a scheduled scan of the tenant through the Power BI admin APIs. It compares what it finds with the same policies and sends a drift report to each owner.

This approach gives three benefits:

  • Rules are visible – Policies live in Git, so anyone can read and review them.
  • Checks are consistent – Every dataset and workspace faces the same tests.
  • Drift is caught early – Scheduled scans find problems within a day, not at the next audit.

In Summary

Power BI governance fails when it depends on memory and goodwill. It succeeds when the rules are explicit and checked automatically. Datus AI certifies datasets against clear criteria, tests row-level security user by user, and audits workspaces against a simple policy. Moreover, it runs all of these checks on every change and on a schedule.

In our scenario, the gate stopped an uncertified copy and a personal workspace from reaching district leaders, while the trusted School Performance model passed. As a result, BI teams can keep the speed they gained in the last blog without losing control.

Picture of Himanshu Gupta

Himanshu Gupta

Himanshu is a Principal Architect at NashTech. He has worked with more than a dozen customers, helping them design and deliver mission critical systems built on modern architectures, platform engineering practices, and Cloud inspired operating models. Outside of work, he focuses on continuous learning and sharing knowledge with the tech community.

Suggested Article

Scroll to Top