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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors