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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Anonymous
Not applicable

@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
Anonymous
Not applicable

@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
Solution Sage
Solution Sage

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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