Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi Guys,
i want to do 2 things using power BI premium per user license (only 1 user and 1 license).
I want to connect with REST API from java and:
1) change programatically data source for specific report/dahsboard
2) generate specific reports into pdf for specific customer.
Can anybody say how to do this?
Solved! Go to Solution.
1) change programatically data source for specific report/dahsboard - Do you have a Power BI report or a Paginated Report?
For Power BI report you can change the data source of the dataset using this API:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-group
For Paginated report you have this API for changing the data source:
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group
2) generate specific reports into pdf for specific customer.
The REST API for exporting to PDF requires Premium/Embedded capacity (unless you're exporting a paginated report)
report can be exported to pdf file
Reports - Export To File In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs
1) change programatically data source for specific report/dahsboard - Do you have a Power BI report or a Paginated Report?
For Power BI report you can change the data source of the dataset using this API:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources-in-group
For Paginated report you have this API for changing the data source:
https://docs.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources-in-group
2) generate specific reports into pdf for specific customer.
The REST API for exporting to PDF requires Premium/Embedded capacity (unless you're exporting a paginated report)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |