Automate Measure Killer with MK Automation
Run every Measure Killer scan on a schedule inside your own Microsoft Fabric tenant, write the results to Fabric tables, build alerts on them and track how your tenant changes over time.
Last updated · November 27, 2026
MK Automation is the Measure Killer engine as a Python package that runs in notebooks inside your own Microsoft Fabric tenant. Everything you do by hand in the desktop app, it does on a schedule: scans, exports, backups and lineage pushes. The results land in tables your team can query, put in a dashboard or build alerts on.
MK Automation includes a company-wide license for the Measure Killer desktop app. You get a separate MK Enterprise license key with unlimited users, so everyone in your company can also run the scans by hand.
How it is set up
- Setup with Brunner BI. We import the MK Automation package into a Fabric environment in your tenant, configure the 30+ sample notebooks for your tenant and set the permissions.
- You decide what runs. Each scan is a notebook that you can edit, copy or extend: which workspaces and capacities are in scope, which rules apply, and which results you keep.
- Results land where you need them. The notebooks write their results to Fabric Lakehouse or Warehouse tables, your data warehouse or blob storage. Your team builds dashboards and alerts on top.
What you can automate
Every scan of the desktop app has a notebook equivalent. The sample notebooks cover:
- Inventory: capacities, workspaces and every item, with the semantic models, dataflows and notebooks in depth, including refresh and run events.
- Unused columns and measures across every connected report, the same result as Find and remove unused measures and columns.
- Lineage: column lineage from the data source to the visual, exported as JSON, or pushed into Databricks Unity Catalog, Snowflake or any tool that reads OpenLineage.
- Quality: best-practice violations, broken DAX, broken visuals and duplicate models and reports.
- Security: access for every principal, row-level security, apps and audiences and personal workspaces.
- Consumption and cost: report and page views, Excel users, report data exports and capacity metrics.
- Code: every DAX and M expression of the analyzed items.
- Backups: the metadata of every model, report, dataflow and notebook.
The order matters within a notebook. Fetch the capacity metrics first, for example, so the CU numbers are there for every model you analyze after it.
Run it on a schedule
A notebook runs whenever you want it to:
- On a schedule: daily, weekly or monthly, with the schedule of the notebook in Fabric.
- From a pipeline: as a step in a Fabric data pipeline or a CI/CD job, for example right after a deployment or a nightly load.
Measure Killer signs in as a user, so a scheduled notebook runs with a Microsoft account. Use a dedicated service account with the role the scan needs, so the runs do not depend on one person’s account. Service principals are not supported, the same as in the desktop app.
Build alerts on the results
Alerts are not part of the sample notebooks. Because every run writes to a table, you build them the way you build alerts on any other Fabric data. For example, Fabric Activator on a result table, or a last notebook cell that posts to a Teams channel through a webhook when a condition is met.
Typical alerts:
- A model’s CU consumption jumps day over day, before it throttles the capacity.
- New broken visuals in production reports, for example the ones published in an app.
- Models and dataflows whose refresh failed, or that stopped refreshing in the last 24 hours.
- New, potentially duplicate semantic models or reports.
Track how your tenant changes
One of the sample notebooks writes the tenant inventory to a table. Keep the results of each run with its run date in the same table, and the history builds itself. Compare runs to see:
- Workspaces added or removed, and which ones added the most items in the last 7 days.
- Where items were removed.
- The change in consumption per workspace, capacity or domain.
- CU consumption far beyond the 14 days Microsoft keeps.
Related
- MK Automation: features, tiers and pricing
- Power BI & Fabric metadata backups
- Run a tenant-wide scan: the same scan in the desktop app
- How do I automate Measure Killer?
Something wrong or out of date on this page?