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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.