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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Miruthan
Advocate II
Advocate II

Programatically change the Data Source connection of .PBIX file

Hi,

 

We have requirement to replicate same report to multiple client, only we need to change the data source. Is there any way i can programtically change the data source of .pbix file without open the file and automatically publish to Power Bi report server?

 

 

 

Thanks

 

5 REPLIES 5
dhawal16
Advocate I
Advocate I

Hi Miruthan,

 

Did you able to achieve this? We have exactly same need except we want to change SQL DB and not SSAS.

 

Please let me know.

 

Cheers,

Dhawal

Hi @dhawal,

 

No, We are not able to achieve, but we need to find the workaroud. Please share your thoughts if you have some.

v-ljerr-msft
Employee
Employee

Hi @Miruthan,

 

Here is a similar thread in which a possible solution to programtically change the data source of .pbix file without open the file is mentioned. Could you go to check if it helps in your scenario?

 

As to automatically publish to Power Bi report server, I haven't seen a possible solution currently. Smiley Happy

 

Regards

hi @v-ljerr-msft I dont think the solution will help me, I am connecting SSAS multi dimensional cube,. Is there any way using C# or powershell i can update the connection string.

Hi @Miruthan,

 

As far as I I know, there're no such ways using  C# or powershell to update the connection string for a pbix file currently. Smiley Happy

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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