Reason You're Not Getting the Required Result:
The Power BI Export API used in Power Automate's "Export To File for Power BI Reports" only supports simple OData filters for report-level filters. Here's what's going wrong:
-
The API does not support the in operator — so this fails: Current_x0020_Hierarchy/Level3Value in ('Bob Smith','James Brown')
- The API also struggles with complex logical operators like or when used in report-level filters. So this fails too: current_x0020_Hierarchy/Level3Value eq 'Bob Smith' or Current_x0020_Hierarchy/Level3Value eq 'James Brown'
Why? Because Power BI's export filter parser expects a flat, single-condition structure for report-level filters. It doesn't fully implement the OData spec for compound expressions.
What to Change in Your Code to Make It Work:
Option 1: Split the filter into multiple export steps
Update your Power Automate flow to run two separate "Export to File" actions, each with a single-value filter:
Current_x0020_Hierarchy/Level3Value eq 'Bob Smith'
Option 2: Use a parameter inside the Power BI report
-
Modify your Power BI report to accept a report parameter or use a filter on a hidden page.
-
Pass a single value using reportLevelFilters in Power Automate:
"reportLevelFilters": [ { "filter": "Table/Column eq 'Bob Smith'" } ]
- This way, the report handles filtering, and you only pass a single value at a time.