Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
For a pbi with datasource mode Import, I'am able to change the Username and Password but not able to change ConnectionString.
For my test
If I only change DataModelDataSource\Username and DataModelDataSource\Password its OK (200)
If I change ConnectionString its 400 Bad Request
Solved! Go to Solution.
Hi @Anonymous ,
I think you can use PowerShell to change the data source connection string in a Power BI report, but only if the report uses parametric connections, otherwise the change is not supported.
Install the Reporting Services tool in powershell and change its parameters. Refer to the following official documentation for a detailed description of the steps.
Change data source connection strings in Power BI reports with PowerShell - Power BI Report Server
If the problem is still not resolved, please point it out and provide related operation screenshoots. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello
Thanks for the quit reply.
It works fine with ReportingServicesTools.
Set-RsRestItemDataModelParameters for Server and Database parameters
Set-RsRestItemDataSource for Login and Password
Hi @Anonymous ,
I think you can use PowerShell to change the data source connection string in a Power BI report, but only if the report uses parametric connections, otherwise the change is not supported.
Install the Reporting Services tool in powershell and change its parameters. Refer to the following official documentation for a detailed description of the steps.
Change data source connection strings in Power BI reports with PowerShell - Power BI Report Server
If the problem is still not resolved, please point it out and provide related operation screenshoots. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |
User | Count |
---|---|
7 | |
6 | |
4 | |
3 | |
2 |