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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Nielf
Helper I
Helper I

Ignore blank column/field in embedded report with contextual filtering in Power Apps

I am playing around with the functionality to embed a Power BI report on a form in a Power Apps model-driven app. I am using contextual filters (JSON filter string), so the report is filtered based on fields/columns of the current row/record.

 

It works well and I am currently using two fields/columns on the form to filter the report.

 

However, there might be use cases, where one of the fields/columns might be left blank on the form since it is not required. In this case the report doesn't show any data since the filter will show -1, if the column is left blank.

 

Nielf_2-1693920425689.png

Is there any way to ignore blank fields/columns when filtering the report and avoid the -1 filter? Perhaps using some of the advanced filter options?

1 REPLY 1
freginier
Super User
Super User

Hello

Yes, you can avoid filtering on blanks by not sending the field at all in the JSON filter if it's empty. Don't send "Value": -1 — just omit the "Value" key entirely when the field is blank.

If using Power Apps, add logic before sending the filter to check if the field is blank and exclude it from the filter object. This way, Power BI won’t apply any filter for that field.

freginier

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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