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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AlexHeinze
Frequent Visitor

Best practices for re-using reports based on dataflows

I have created a dataflow that gets data from a SQL Server through the OnPrem data gateway and a Power BI report that gets all its data from the dataflow. In the dataflow I have created a variable (that is used by all table definitions) to be able to change the database name.

 

Once the report looks okay I would like to make it reusable for different databases, maybe even databases to be reached through a different gateway. When I look at the table definition in Power BI Desktop I see lots of GUID, which doesn't seem to make it easily reusable. I haven't found a way to duplicate the dataflow either.

 

Any ideas? Appreciate your help.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

"I haven't found a way to duplicate the dataflow either."  Export the Json, then import the json for a new dataflow.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

"I haven't found a way to duplicate the dataflow either."  Export the Json, then import the json for a new dataflow.

Thanks, that is a good starting point. In the exported JSON I could then also mass-update DB connections etc. What I'm struggling with is Power BI Desktop. In Power Query Editor I see that every table has a workspace GUID, a dataflow GUID and a table/entity GUID.

 

Is there a better way than just replacing all GUIDs in all tables? And where do I get the table GUID from?

The table GUIDs are in the JSON file, as part of the location attribute.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.