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
Manar
Helper II
Helper II

filter based on 2 conditions

Hi,

I am trying  to filter in power bi desktop using 2 conditions, I have a report with Field 1 and Field 2,  would like to filter when Field1 >1000 or field2 >1000.

Is this possible?

thank you 

2 ACCEPTED SOLUTIONS
stretcharm
Memorable Member
Memorable Member

Yes

 

There is an OR  function.

https://msdn.microsoft.com/en-us/query-bi/dax/or-function-dax

 

Some details on logical filters are covered in the blog post

https://www.sqlbi.com/articles/the-in-operator-in-dax/

 

 

 

View solution in original post

Anonymous
Not applicable

Hi @Manar,

 

You could create a column Condition:

 

If(OR(Table[Field1]  > 1000, Table[Field2]  > 1000), "True", "False")

 

Now, you can use this column Condition as a filter.

 

Is this what you were looking for?

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Manar,

 

You could create a column Condition:

 

If(OR(Table[Field1]  > 1000, Table[Field2]  > 1000), "True", "False")

 

Now, you can use this column Condition as a filter.

 

Is this what you were looking for?

stretcharm
Memorable Member
Memorable Member

Yes

 

There is an OR  function.

https://msdn.microsoft.com/en-us/query-bi/dax/or-function-dax

 

Some details on logical filters are covered in the blog post

https://www.sqlbi.com/articles/the-in-operator-in-dax/

 

 

 

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.