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.
Hi!
I'm trying programmatically change/update database in an Analysis Services Gateway data source - is there any way to do so?
I trying to to
1. publish an PBIX file (with data source on premise Analysis Services database through Gateway)
2. Remap the data source to a different database on same on premise server
Is this possible in Power BI API?
Or is it programmatically possible to change data source database in PBIX file before publishing it?
Any automated solution/workaround is appreciated 🙂
Kind regards,
NAJ
@Anonymous wrote:
Hi!
I'm trying programmatically change/update database in an Analysis Services Gateway data source - is there any way to do so?
I trying to to
1. publish an PBIX file (with data source on premise Analysis Services database through Gateway)
2. Remap the data source to a different database on same on premise server
Is this possible in Power BI API?
Or is it programmatically possible to change data source database in PBIX file before publishing it?
Any automated solution/workaround is appreciated 🙂
Kind regards,
NAJ
@Anonymous
The datasource in gateway is configured according to the SSAS dataset connection string. So I guess you're requesting to change the connection string(contains server, database info) for the dataset, right? There's an REST API Set All Connections that can change the connection string , however it only supports DirectQuery dataset. And based on my test, SSAS live connection string is not treated as DirectQuery mode. So I'm that your request is to an dead end.
By the way, for the gateway REST API operations demo, you could reference this Knowledge base.
thank you for the reply Eric,
yes, i'm trying/requesting to programmatically change/update the connection string (server/database) of an SSAS On-prem live dataset/source. And/or remap a dataset to a different SSAS On-prem live source.
I have already tried most of the Gateway API functions (created new datasource , set all connections, etc.) - without any luck.
Above request seems to be a limitation of the current REST API?
Kind regards,
NAJ
Did you ever find a work around for this?
Thanks, Shilpi
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 |
---|---|
9 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |