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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
bmidhun
Frequent Visitor

Creating PBIR Files Dynamically Based on Dataset – Any Guidance

I’m looking to create Power BI Reports (PBIR) dynamically using either C# or PowerShell. The goal is to generate PBIR files dynamically based on a given dataset.

 

Any guidance, insights, or helpful resources on how to achieve this would be greatly appreciated.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Looks like the Fabric REST APIs should be able to do that

 

Power BI Desktop project report folder - Power BI | Microsoft Learn

 

"During the Public Preview, Fabric Git Integration and Fabric REST APIs continue to use PBIR-Legacy (report.json) when exporting the report definitions. However, if the report is imported into Fabric using PBIR format, then both features start exporting the report definition using PBIR format."

View solution in original post

2 REPLIES 2
bmidhun
Frequent Visitor

Hi @lbendlin  Thanks for replying back

 

Apologies for the confusion earlier — it's PBIP, not PBIR.

 

Our request is to replicate the exact folder structure of the PBIP file, as outlined below:

Report
  .Report/.pbi
  .Report/StaticResources
  All platform files, including definition.pbir and report.json

SemanticModel
  .pbi
  definition

We’re essentially trying to understand whether it is possible to dynamically generate this complete PBIP folder structure using C# or PowerShell.

 

Any guidance or pointers would be greatly appreciated.


lbendlin
Super User
Super User

Looks like the Fabric REST APIs should be able to do that

 

Power BI Desktop project report folder - Power BI | Microsoft Learn

 

"During the Public Preview, Fabric Git Integration and Fabric REST APIs continue to use PBIR-Legacy (report.json) when exporting the report definitions. However, if the report is imported into Fabric using PBIR format, then both features start exporting the report definition using PBIR format."

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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