Forum Discussion

jonasarnout's avatar
jonasarnout
Icon for Advocate I rankAdvocate I
8 years ago
Solved

Script the creating of multiple similar Measures

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)

 

http://sqlblog.com/blogs/marco_russo/archive/2012/02/28/create-a-dax-measure-in-a-session-in-bism-tabular.aspx

 

Kind Regards

Jonas