Forum Discussion
reportLevelFilter not filtering when using Power BI REST API (ExportTo)
- 6 months ago
Thanks for your support. I have figured out that with the reportLevelFilters option you cannot actually adress slicers, rather you have to add the field into the overall filters-on-this-report panel. Then once added there. The reportLevelFilters works filtering the whole report page on that field eq 'value'. It works both in rest API and also in Power Automate this way. I have found it working with this syntax:
payload = { "format": export_format, "powerBIReportConfiguration": { "pages": [ { "pageName": "your-page-name" } ], "reportLevelFilters": [ { "filter": "yourtablename/yourfieldname eq 'XYZ'" } ] }, }
Hi MARKZI,
Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.
Thank you.
Hi MARKZI,
Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.
Thank you.
- MARKZI6 months agoFrequent Visitor
Thanks for your support. I have figured out that with the reportLevelFilters option you cannot actually adress slicers, rather you have to add the field into the overall filters-on-this-report panel. Then once added there. The reportLevelFilters works filtering the whole report page on that field eq 'value'. It works both in rest API and also in Power Automate this way. I have found it working with this syntax:
payload = { "format": export_format, "powerBIReportConfiguration": { "pages": [ { "pageName": "your-page-name" } ], "reportLevelFilters": [ { "filter": "yourtablename/yourfieldname eq 'XYZ'" } ] }, }