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
CarlaGh
Frequent Visitor

Changing DB source but using template

I have been working on creating certain visualizations and features but using the dev database.

I want to connect to another DB which has the real-data, it has the same tables and structure, but I want to make it functional on this new DB.

I tried using parameters but I'm not sure this is the way.

Also, I have a Blob storage to connect to as well. 

Do I create a template from my existing .pbix and then use parameters?

Could use some help! Thank you!

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@CarlaGh 
You can just replace the datasource.
How To Change Data Source Of Existing Report In Power BI (c-sharpcorner.com)

Or if you want create a parameter, see examples:

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Solved: Changing the Power query SQL Server database setti... - Microsoft Power BI Community

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@CarlaGh 
You can just replace the datasource.
How To Change Data Source Of Existing Report In Power BI (c-sharpcorner.com)

Or if you want create a parameter, see examples:

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

Solved: Changing the Power query SQL Server database setti... - Microsoft Power BI Community

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

DataVitalizer
Super User
Super User

Hi @CarlaGh ,

You need to create a parameter that would point on your database (Power Query), then save your report as a power bi model (pbit), after that whenever you will open that pbit file you will be asked to paste the database path.

You have to make sure that the credentials used on the prod database are the same as the dev otherwise you would need to create parameters also for them. 

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated

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.

Top Solution Authors
Top Kudoed Authors