Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hoss
Frequent Visitor

Automating Power BI for report modification / generation

Hi all,

 

I'm faily new to Power BI. Was wondering if there is any scripting shell available for Power BI to automate repititive tasks in report modification / generation? Stuff like: delete every page that starts with X or move the visuals with name X down the page by Y pixels... Hope you get the idea.

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hoss,

It sounds like you want to directly use the script to change the internal contents of a pbix file. AFAIK, current these features not supported on power bi desktop side.
In my opinion, I'd like to suggest you design a report and parametrize its connection string to save it as a template. Then you can simply open and modify the template designs to quickly generated some different versions of the report.

Deep Dive into Query Parameters and Power BI Templates 

BTW, if you mean to edit the report contents without using the power bi desktop client, you can also take a look at the third-party tools. (e.g. tabular editor)

Offline model editor experience for Power BI 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @hoss,

If you mean the embedded power bi contents, it is possible to use javascript API to control its reports and visuals. You can take a look at the following wiki of power bi javascript.

microsoft / PowerBI-JavaScript 

Regards,

Xiaoxin Sheng

Hi @Anonymous , thanks for the resposne. No I'm talking about automating report creation and modification in Power BI Desktop. For example a task could be: opening a pbix file, running a script that deletes some pages and saves the pbix file as a new file. 

Anonymous
Not applicable

Hi @hoss,

It sounds like you want to directly use the script to change the internal contents of a pbix file. AFAIK, current these features not supported on power bi desktop side.
In my opinion, I'd like to suggest you design a report and parametrize its connection string to save it as a template. Then you can simply open and modify the template designs to quickly generated some different versions of the report.

Deep Dive into Query Parameters and Power BI Templates 

BTW, if you mean to edit the report contents without using the power bi desktop client, you can also take a look at the third-party tools. (e.g. tabular editor)

Offline model editor experience for Power BI 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.