Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
mokumar
New Member

ReportLevelFilters is not working using PowerAutomate

Hi All,

 

I am trying to email a report with the help of PowerAutomate using the action Export To Files for Power BI Reports (more info can be found here )

 

that is how the action looks like with a filter (TableName/ColumnName)- 

mokumar_0-1649319347804.png

 

In history - 

mokumar_1-1649319430176.png

 

The reports I am getting are empty, without any data. What is missing here?

 

 

 

7 REPLIES 7
mukuljuyal
New Member

I had tried even with one filter but that is also not working with same result, i am using sql as backend

LaurenNick
Frequent Visitor

Make sure that when you published the report, there were't any filters applied (ie clear the filter).  Otherwise the default filter applies aswell as what you are applying in the power automate flow and you will get no result.

mokumar
New Member

@AmosHersch - I have tried this earlier. In my case when I use Page Level filters then my report looks like this - 

mokumar_0-1649322267595.png

 

when I use filters in the query string, it's completely different. I can see data in the blank fields as well. Here is the query string(data source is CDS)-

 

https://app.powerbi.com/groups/grouo_guid/reports/report_guid?filter=cr60a_CostTreeDetail/cr60a_subm... eq 'f57e5f3f-25c8-4a6e-9c35-66940895564a'

 

https://app.powerbi.com/groups/grouo_guid/reports/report_guid?filter=cr60a_CostTreeDetail/cr60a_subm... eq 'f57e5f3f-25c8-4a6e-9c35-66940895564a'

 

https://app.powerbi.com/groups/grouo_guid/reports/report_guid/ReportSection9a330f02804c7ab90fd0?filter=CostTreeDetail/cr60a_submissionid eq 'f57e5f3f-25c8-4a6e-9c35-66940895564a'

 

In the filter string I have tried both options- The internal name of the table and column and the display name.

 

 

 

 

 

@mokumar I can't tell why it's not working for you in the API, but as I said whatever works in the URL query string (same table name/column name, filter value) is expected to work in the export API, and the report page should look the same as in the portal.

AmosHersch
Employee
Employee

Hi @mokumar ,

 

When such issues happen it's most of the time has to do with the filter string itself.

The best way to sort out what's wrong in open the same report in Power BI portal, append the same filter string to the browser URL as explained here: https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters

Once you get it to work as expected, the exact same string (without the "?filter=" part, and no need for the URL encoding, only special characters if exists) should work when you export through Power Automate.

my url filter Clusterdaily/RecordDate%20gt%202023-12-23T00:00:00Z%20and%20Clusterdaily/Cluster%20eq%20'01-C'

is working fine but not working when i am using it in export through power automate 

 

Clusterdaily/RecordDate gt 2023-12-23T00:00:00Z and Clusterdaily/Cluster eq '01-C'

I donyt think you can use multiple filters when exporting PBI via PowerAutomate

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.