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
lkshck
Helper III
Helper III

Two filter conditions with OR operation on one page

Hey,

I want to use a filter on a page which uses an OR condition. I have two fields called "JsonTags.area" and "ReservationName". My goal is to display data on the page where "JsonTags.area" is equal "dl-business-intelligence" OR "ReservationName" contains "DWH". I think this will be only possible via new Column or with Measure but would be glad to get some help on it.

Br

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @lkshck 
Create a calculated column with the following formula:

Column =
IF (
    [JsonTags.area] = "dl-business-intelligence"
        || CONTAINSSTRING ( [ReservationName], "DWH" ),
    1,
    0
)

Then filter the items at the page filter level for column values equal to 1.

e.g.
 

vangzhengmsft_0-1647492277857.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-angzheng-msft
Community Support
Community Support

Hi, @lkshck 
Create a calculated column with the following formula:

Column =
IF (
    [JsonTags.area] = "dl-business-intelligence"
        || CONTAINSSTRING ( [ReservationName], "DWH" ),
    1,
    0
)

Then filter the items at the page filter level for column values equal to 1.

e.g.
 

vangzhengmsft_0-1647492277857.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Works fine, thank you!

mh2587
Super User
Super User

You can simply do this from page filter by draging both the mentioned fields


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



This works only for the same field, right? So If I put the field "JsonTags.area" to the Page filters, I can select advanced filtering and set an OR condition but not between two fields.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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