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

USING OR FUNCTION WITH TEXT AND MULTI CONDITION

Hello everyone!

 

I relly need help...

i have a table that contains user IDs and each user has several parameters,

I want to filter the table according to 4 conditions.

The relationship I need between the conditions is OR, but OR function dosent give me  the solution, becouse my condition is text and more than 2 condition.

here is an exemple for my table-

COUNTRYSHIFTPHONECARUSER ID
US1noyes123456
BRAZIL5yesyes895412
INDIA3nono354897
INDIA2noyes695748

 

I need to filter my USERS by 4 condition (The relationship between the conditions is OR)

1. car= no

2. phone= no

3. shift= under 5

4. country is not equle to brazil

 

The table according to the conditions i should get is the following table:

COUNTRYSHIFTPHONECARUSER ID
US1noyes123456
INDIA3nono354897
INDIA2noyes695748

  

How can i do it???? 

1 ACCEPTED SOLUTION
miltenburger
Helper V
Helper V

Hi @dana1

 

In dax the or function can be replaced by || 

Try this, it should help

View solution in original post

2 REPLIES 2
miltenburger
Helper V
Helper V

Hi @dana1

 

In dax the or function can be replaced by || 

Try this, it should help

so simple..!! 

you just changed my life! thank u! 

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.