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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Using a report for multiple dataset

I have a database that will have stardand data fields names and will be clone for new users and possible have different columns name but the same structure. I want to be able to create a template of a report and then use this template for a new dataset connected to the database. To clairfy I have will have db1 connect via dataset connected to a workspace on powerbi.com, I will create a new db2, simliar to db1, that will be connected to a new workspace but will use a report from db1, I need to be able to move the report template over and use it on db2 dataset with out having to create a new report.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

So the fix to this problem is you can use the parameters and a if statement in the power Query to call different SQL queries. All of the columns names need to be the same name in the SQL queries e.g if one database has firstname another have namefirst then you would write Select firstname as 'first' from... and Slect namefirst as 'first' from ... (It does not matter the name in the query). After which you can change the name of the column via power query.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

So the fix to this problem is you can use the parameters and a if statement in the power Query to call different SQL queries. All of the columns names need to be the same name in the SQL queries e.g if one database has firstname another have namefirst then you would write Select firstname as 'first' from... and Slect namefirst as 'first' from ... (It does not matter the name in the query). After which you can change the name of the column via power query.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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