Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Your file has been submitted successfully. We’re processing it now - please check back in a few minutes to view your report.
08-28-2025 05:57 AM - last edited 10-13-2025 10:32 AM
Purpose & scenario
This notebook demonstrates how to make a Power BI dashboard portable by parameterizing and programmatically re-binding field references in a report definition. The result: a reusable template you can deploy to a different semantic model with minimal manual effort—useful for multi-workspace/customer scenarios and catalog/factory patterns.
How it works
Loads a reference template report
Maps template placeholders → fields in the target semantic model
Uses semPy to update bindings in the report definition
Encourages Visual Calculations and report-specific measures (with a dedicated home table) to reduce tight coupling
Quick start
Add the notebook to a Fabric workspace (capacity-backed).
In the configuration section, set: workspace_id, dataset_id, act_measure, bud_measure, dimension, report_name_override.
Run the notebook cells in order.
Open the generated report and verify the Monitoring Dashboard.
Requirements
Fabric capacity + Contributor (or higher)
Build permission on the target semantic model
Python in notebooks (Preview); semPy enabled
Semantic model name must not end with a trailing space
No sensitive data is required (uses a public reference model)
Reusability & clarity
Clean, commented steps (load → map → apply → validate)
Externalize mappings (CSV/JSON) for repeatable deployments
Credits
Patrick LeBlanc — Creative way to use semPy to update a Power BI report definition
Publication & acknowledgments
This Proof of Concept was developed with the assistance of ChatGPT and published for the Fabric Notebooks for Power BI – August Contest.
Disclaimer
Provided as-is for demonstration purposes. Use at your own risk; no liability for any damages.
https%3A%2F%2Fgithub.com%2FMarcusWegener%2Fpbi-dashboard-template-notebook%2Fblob%2Fmain%2FDeploy_Monitoring_Dashboard.ipynb
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials