Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
We have an Embedded report in our mendix based app. We have built an export PDF button using the APIs.
Currently the pdf button exports with the default slicer selection. Is there anyway the report can be exported using the user’s current selection? I have read the available resources but they are all in other languages than Mendix, we have the availability to put also JAVA code in our application, therefore any mendix or java solution would be highly appreciated.
Possible solutions we are looking into:
1. Is there a way to get a list of filters currently applied by the user on the embedded solution? This can then be passed to the export pdf API.
2. Alternatively, can you set a state of the current report to be exported and pass this to the print pdf API. like the option available on PBI website as the screenshot bellow
I appreciate your help and suggestion 🤗
@pbiembedded Re: Print and/or export to PDF from PowerBI Embedded Report
Hi @NasimDanesh ,
Please have a try.
You can use the getFilters method of the Power BI JavaScript SDK to get the current filters applied by the user on the embedded report. You can then pass these filters as a parameter to the exportToFile method of the same SDK.
Export Power BI embedded analytics reports API - Power BI | Microsoft Learn
You can use the bookmark feature of Power BI to capture the current state of the report, including the filters, slicers, and other settings. You can then use the applyBookmark method of the Power BI JavaScript SDK to apply the bookmark to the embedded report before exporting it.
Export and email a report with Power Automate - Power BI | Microsoft Learn
If I have misunderstood your meaning, please provide more details.
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.