Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I built an open-source repo that generates complete, multi-page Power BI dashboards from Python scripts — no dragging fields, no clicking through menus.
How it works: A Python script uses make_* helper functions (one line per visual) to write visual.json files directly into the PBIR folder structure of a .pbip project. Open the project in Power BI Desktop and all pages appear with data-bound visuals ready to polish.
One line of Python:
make_card("sc1_rev", 20, 10, 295, 110, "_Measures", "Total Revenue")...generates the full PBIR JSON for a data-bound KPI card.
Optional: auto-generate everything with a Claude skill
The repo includes a Claude skill file that can generate both the data model spec and the Python script from your raw CSVs + a one-paragraph business brief. You drop your CSVs into Claude Code, describe what you want ("supply chain dashboard tracking fulfillment, inventory, and supplier performance with YoY comparisons"), and it produces both files. You review the DAX measures and relationships before executing anything — the spec file acts as a human-readable checkpoint. You can also use the skill to generate just one of the two files and write the other yourself. The skill is optional — everything works fully manually without it.
Why code-first over the UI?
Pure Python, no dependencies (just stdlib). Requires Power BI Desktop with PBIR preview features enabled.
GitHub: [LINK]
Solved! Go to Solution.
Hi @emantzoo
Thank you for providing the details. It would be helpful if you could share this in the Power BI Community Blog Power BI Community Blog - Microsoft Fabric Community, as it may assist others with similar issues. If you have any questions, please let me know. We will assist you further.
Regards,
Microsoft Fabric Community Support Team.
Hi @emantzoo
Thank you for providing the details. It would be helpful if you could share this in the Power BI Community Blog Power BI Community Blog - Microsoft Fabric Community, as it may assist others with similar issues. If you have any questions, please let me know. We will assist you further.
Regards,
Microsoft Fabric Community Support Team.
What is your question? Did you plan to post this in the Blogs section?
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 20 | |
| 19 | |
| 11 |
| User | Count |
|---|---|
| 65 | |
| 54 | |
| 46 | |
| 44 | |
| 31 |