The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Team,
I have a question regarding Power BI Paginated Reports and how to manage datasets via the REST API.
In Power BI Report Builder, a semantic model is used as the data source, and then we create a dataset from that data source. According to the documentation , we can update the data source of a paginated report via the REST API. However, I am unclear on how to sync the dataset with the updated data source through the REST API.
I am building a solution where I create a dataset/semantic model for each user, and then clone the Power BI report using this dataset via the REST API. I want to extend this process to Power BI Paginated Reports as well—creating a new dataset with the same schema and then cloning the paginated report with the new dataset. The challenge I’m facing is that paginated reports use a semantic model as their data source, which adds some complexity to the dataset synchronization.
Could anyone help clarify how to achieve this with the REST API?
Thank you for your time and support!
Solved! Go to Solution.
I've got the solution to update data source as power bi semantic model.
Here is the solution
I've got the solution to update data source as power bi semantic model.
Here is the solution
Hi @Mestu_Paul,
I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Answer" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.
Thanks,
Pavan.
I believe this API can help you accomplish the task, i.e updating the datasource of a Paginated report (RDL).
https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group
Connect on LinkedIn
|
Thank you, but already I read and actually confused about data sources and dataset of paginated reports.
@Mestu_Paul Does each user have access to different datasources ?
Proud to be a Super User! | |
Actually we embed reports for each user with users specific data thats why we need different dataset for each user.
Hi @Mestu_Paul - The key to syncing the dataset with the updated data source for a paginated report is the Update Datasources API. By remapping the existing data source of the paginated report to the newly created dataset (semantic model), you can ensure that the report stays in sync.
If you are generating a unique dataset (semantic model) for each user:
Use the Power BI REST API to clone a dataset or create a new one programmatically.
Endpoint: POST /groups/{groupId}/datasets
If cloning, use: POST /groups/{groupId}/datasets/clone.
2. Upload or Clone the Paginated Report
Once the dataset is ready, upload or clone the paginated report:
Endpoint to upload: POST /groups/{groupId}/imports.
To clone a report: POST /groups/{groupId}/reports/clone.
Imports - Post Import In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Reports - Update Datasources In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Proud to be a Super User! | |
I also tried to clone paginated reports but getting error:
According to your guidence,
1. I can create new dataset
2. I can upload paginated report
But myconcern is how the report will bind with this dataset/semantic model?
@Mestu_Paul For Standard Reports we use the Rebind API to change the dataset / semantic model. But unfortunately the API does not support Paginated Reports
Thanks,
Jai
Proud to be a Super User! | |
Yes thats the problem, even could not clone paginat report with different dataset