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
Cini_Varghese
Frequent Visitor

Export report with multiple filters as parameter

I am looking for a way to export report to file in image/pdf format with multiple filters applied as parameter using rest API. When accoring to https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile#code-try-0 when the body is as follows, am getting error message as "Export report with more than one filter is not supported".

{
 format: "pdf",
 powerBIReportConfiguration:{
  reportLevelFilters:[{
   filter:"LOCAL/PS_SGMNT_VAL in ('MPC')"
  },{
   filter:"LOCAL/SYS_ID in (605)"
  }]
 }
}
2 ACCEPTED SOLUTIONS
AmosHersch
Employee
Employee

Did you try using the same filter string for both filtering the 2 fields as explained here:

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#filter-on-multiple-f...

Basically you should probably test your filter string first by adding it to the report URL in PowerBI service, and if it works there it should also work in the API.

View solution in original post

v-shex-msft
Community Support
Community Support

Hi @Cini_Varghese,

AFAIK, current it does not support usage your sample shared. Please concatenate these filters into the URL string as the url filter document mentions.

Reports - Export To File#exportfilter 

Filter a report using query string parameters in the URL 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Cini_Varghese,

AFAIK, current it does not support usage your sample shared. Please concatenate these filters into the URL string as the url filter document mentions.

Reports - Export To File#exportfilter 

Filter a report using query string parameters in the URL 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
AmosHersch
Employee
Employee

Did you try using the same filter string for both filtering the 2 fields as explained here:

https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters#filter-on-multiple-f...

Basically you should probably test your filter string first by adding it to the report URL in PowerBI service, and if it works there it should also work in the API.

lbendlin
Super User
Super User

That is correct - it is a current limitation.  Try using page level bookmarks instead.

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.