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 September 15. Request your voucher.

Reply
markbrod
Frequent Visitor

Changing Connection String with Import Mode

I have 20 or so Power BI Report Server reports all using ImportMode with SSAS(MD).

I need to publish these to 6 different environments(all with different connection string’s)

Looking for a couple of things

 

1)When will the ability to programmatically change the connection string for Import Mode, allowing for Data Refresh, be available.

I realize  you can do this for Direct Live but I need Import Mode

https://docs.microsoft.com/en-us/power-bi/report-server/connect-data-source-apis

 

2)Until this ability exits what are potential work arounds…manually deploying 20 reports to six different environments is not that appealing to me.

 

Thanks

Mark Brodie

3 REPLIES 3
winceeS
Frequent Visitor

@markbrod , I wonder if you have a work around now or a fix for this issue. We have the same setup, also deploying reports through git that uses REST APIs. Have you found a way to deploy and update the datasource of a power bi import mode report without opening the file itself and adding the parameters?

Greg_Deckler
Community Champion
Community Champion

@markbrod 

Options:

  • Use a query parameter in your Source step
  • Use Advanced Editor to change your Source line


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for the response....

We did look into doing this and that works fine but it still requires me to go in the Power BI Desktop open the report and change the parameter value.
We already have a deployment pipeline with SSSR and I want to do the same with PBIRS using the PBIRS  Restful API.
So what I want is during the  deployment process to have the ability to change the connection string.
I really don't want to first go into every report in the Power BI Desktop and change the connection through a Parameter.

 

Mark

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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