cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Need Help with MultiChoice field with OR

I have this, 

If(!IsBlank(LookUp(DataCardValue12.SelectedItems, Text(Value) = "All Divisions")), true, false) and it works great. However I want to know if I can also have an OR in there. For example something like this: 

 

If(!IsBlank(LookUp(DataCardValue12.SelectedItems, Text(Value) = "All Divisions" Or "ABC - ABC Team")), true, false)

 

New to Power Apps and not sure how to write it. The above OR fails. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@Portland 

Yes, you can write your formula as follows:

 

!IsBlank(
    LookUp(DataCardValue12.SelectedItems, 
       Value = "All Divisions" || Value= "ABC - ABC Team"
    )
)

 

You don't need the extra If and true false parts as IsBlank will return true or false anyway.  Also not needed is the Text function.  It is assumed that the Value property of the records in your ComboBox is already text.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

@Portland 

Yes, you can write your formula as follows:

 

!IsBlank(
    LookUp(DataCardValue12.SelectedItems, 
       Value = "All Divisions" || Value= "ABC - ABC Team"
    )
)

 

You don't need the extra If and true false parts as IsBlank will return true or false anyway.  Also not needed is the Text function.  It is assumed that the Value property of the records in your ComboBox is already text.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Highlighted

Thank You!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,376)