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
Hi
Is it possible to script the creation of measures?
I have a lot of Measures that are very similar, only the input field changes
Is it possible to create a script that can create the measures for me instead of me doing it all by hand?
Something like VBA or Python?
I have looked at DAX studio, where it is possible to define in-session-measures with a script, but i could not figure out a way to save those measures in the power bi model (PBIX file)
Kind Regards
Jonas
Solved! Go to Solution.
You may take a look at link below,
You may take a look at link below,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 46 | |
| 44 | |
| 29 | |
| 20 |
| User | Count |
|---|---|
| 202 | |
| 130 | |
| 102 | |
| 71 | |
| 55 |