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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Create a PBIX file via API

I would like to programmatically create a pbix file from scratch or load an empty file with data I extract from my NoSQL database. In my use case, a business analyst or admin would write XQUERY to generate a result set and landed on the filesystem for use by PowerBI. I can do this today by creating CSV files, but I would like to forgo the critical path conversion and have the export job create the PBIX file. Is this possible?

3 REPLIES 3
Anonymous
Not applicable

@Anonymous,

It is not possible to create PBIX file via API as you describe, an similar idea about this issue has been submitted in the link below, please vote it up.
https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7345565-power-bi-designer-api

Regards,
Lydia

Thanks for the direction, Lydia. That approach is historically very important for us developers in general. I can't believe that it does not exist yet in the Power BI environment / ecosystem.

By the way, that creation on the fly was very common in Crystal Reports back in the 2000s' when we used to create CR files from our VB6 code. Will there be it is possible to work with the DLLs like we did it for creating the CR files?

🙂👍

You can see the current Power BI REST API documentation here, and to this day there is nothing to create a dataset:

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-refresh-schedule

 

It's a surprising omission compared to Tableau who added their Hyper columnar engine years after PowerPivot/Power BI had VertiPaq, but does offer the Hyper API.

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.