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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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