Forum Discussion
Change Data source In Power BI Service
- 4 years ago
Hi Anonymous ,
Please try using Power BI Rest API or XMLA endpoints to change data sources of Power BI dataset.
Using XMLA endpoints to change data sources in a Power BI dataset
Datasets - Update Datasources In Group
This is my test steps to change the SharePoint Online data source to a local SQL Server data source using Table Editor on Power BI Service.
1. Open a Tabular Model from an existing database (Ctrl+Shift+O). The server name is the URL of your PPU/Premium workspace, and then log in with your Power BI account.2. Find the partition of the table and you can see that the partition’s M expression shows that the dataset comes from an Excel file on SharePoint Online.
3. Then you need to change the partition’s M expression to SQL Server data source as the following example. Save the changes to the dataset.
4. Configure the credentials of the new data source for this dataset on Power BI Service and refresh the dataset.Note that it is important to ensure that the structure (including table name, column names) of the table imported from the new data source and the old data source are the same, so as to ensure a successful refresh after modifying the data source.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Please try using Power BI Rest API or XMLA endpoints to change data sources of Power BI dataset.
Using XMLA endpoints to change data sources in a Power BI dataset
Datasets - Update Datasources In Group
This is my test steps to change the SharePoint Online data source to a local SQL Server data source using Table Editor on Power BI Service.
1. Open a Tabular Model from an existing database (Ctrl+Shift+O). The server name is the URL of your PPU/Premium workspace, and then log in with your Power BI account.
2. Find the partition of the table and you can see that the partition’s M expression shows that the dataset comes from an Excel file on SharePoint Online.
3. Then you need to change the partition’s M expression to SQL Server data source as the following example. Save the changes to the dataset.
4. Configure the credentials of the new data source for this dataset on Power BI Service and refresh the dataset.
Note that it is important to ensure that the structure (including table name, column names) of the table imported from the new data source and the old data source are the same, so as to ensure a successful refresh after modifying the data source.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.