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

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
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.