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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Code library / snippets to deploy multiple reports

I work on Power BI Desktop and publish reports to Power BI Service.
 

I have a fairly comprehensive report (pbix file) that has the following specificities :

  • 20 pages
  • 20 tables with each of them having 10 calculated columns
  • 60 measures
  • connection to 10 SQL tables from a server
  • that report is made to reflect progress/users/tasks/budget based on data from a specific project ("Project A")

Objective is to have the same report on another project "Project B" (actually, it's about 10 other similar projects). Project B is using a very similar database, and there are 95% of the data structure in common between Project A and Project B. I can't mix users as well, they really need to be separate projects (user access, data confidentiality).

 

Right now, to the best of my knowledge, I would copy/paste the Report A.pbix, to make Report B.pbix and I would then have 2 different reports. Maintenance-wise, it is problematic to have to maintain 10 reports that are similar but not identical.

 

I currently haven't found a way to build a "code library" that I would easily re-use in reports, that could make life easier to update to a specific formula or measure.

 

Am I missing something in Power BI about code library or code sharing ? Any methodology for handling a collection of reports and maintaining them efficiently ?

 

Bonus : Would Tableau or Spotfire provide a feature to help me create "similar dashboards" for 10 similar projects ?

 

Thanks a lot for reading and looking forwards to your answers !

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi, @Anonymous 

You can create a pbix file without report and publish it to a workspace. Then you can use its dataset as the data source to create reports. You can also consider exporting the pbix file to a pbit file and use it to create reports.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi, @Anonymous 

You can create a pbix file without report and publish it to a workspace. Then you can use its dataset as the data source to create reports. You can also consider exporting the pbix file to a pbit file and use it to create reports.

 

Best Regards,

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

The general approach in such a situation is to create a master dataset in a dedicated workspace that has the complete data model and no real report (maybe some DQ reports). Then you can create any number of reports in different  workspaces/apps that connect to that master dataset with their own set of filters and permissions etc.

 

Power BI has the concept of promoted and certified datasets to steer developers towards using these master/golden datasets rather than to duplicate data models all over the company.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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