Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello everyone,
I'm currently working with Power BI embedded reports inside Salesforce and encountering an issue when trying to export filtered reports to PDF.
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/exports/{exportId}/file
Hi,lbendlin ,thanks for your concern about this issue.
Your answer is excellent!
And I would like to share some additional solutions below.
Hello,@Datta_A .I am glad to help you.
After my testing, there is no problem with this Power BI Service api. The reason you are experiencing exported report files with no filters applied when using this API could be due to the incorrect application of the filters parameter. Resulting in the parameter not being passed correctly.
Here is my test procedure, hope it will help you
According to the description, you are using this API
GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/exports/{exportId}/file
Note that the ExportID parameter passed in here needs to be obtained from other APIs that have filter report functionality.
I use this API: Exoprt To File
URL:
Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn
It is a post request asking the user to pass the relevant filtering information for the target report, which will return an exportID after a successful run.
My complete process is as follows:
1. Use “Export To File” API
Successful execution will fetch the reportID: (which is actually the id) of the filter that has been applied.
Get the ExportID parameter and fill it into the API you provided (i.e., the “id” you got after the previous API ran successfully).
Since my attempt was Try it, when I scripted it in python, I was able to successfully implement exporting the report with filters applied.
After my test, after the api export export pdf final results for the Power BI Service on the application of the screening conditions and display results
I tried to modify the visual from table to matrix on service and after running the export api and Get file of export to file api, the format of the export file is the final modified result displayed on service.
The status of the report on the service
One thing to note: the API you mentioned needs to work with Export to file / Export to file in group (I tested Export to file).
There are official restrictions on the use of these two APIs in embedded reports.
URL.
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
Announcing Persistent Filters in the Power BI Service | Microsoft Power BI Blog | Microsoft Power BI
So my preference for the problem you are experiencing is more of a known limitation.
I hope my test was helpful.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Show your work - how do you specify the filters, are the filter columns and tables present in the data model, do they actually control the data model?
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |