cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Logic to determine if Multiple Selection Contains

I have some list data from SharePoint that contains a multiple selection choice column. I want to determine if certain selections have been made and hide additional edit cards depending on the list items selected. I am able to do this easily with other controls that are simple yes no radio buttons using.

 

DataCard1.Update = false

I can get it to work for a single selection from these drop downs using 

DataCardvalue1.Selected.Value = "Test Selection"

 But this changes when I select more than one result. I need a formula that does the same as above but instead of equals it uses contains.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate I
Advocate I

Re: Logic to determine if Multiple Selection Contains

Ok so I was able to partially solve this myself.

IsBlank(Find("Selection Required",DataCardValue1.Selected.Value))

 Only issue is that as more options are selected they override 

DataCardValue1.Selected.Value 

So it works initially and then if say option1 and option2 are selected only option 2 formulas work.

 

Eventually managed to get this to work using

CountIf(DataCardValue.SelectedItems,Value="Selection Required")>0

View solution in original post

4 REPLIES 4
Highlighted
Advocate I
Advocate I

Re: Logic to determine if Multiple Selection Contains

Ok so I was able to partially solve this myself.

IsBlank(Find("Selection Required",DataCardValue1.Selected.Value))

 Only issue is that as more options are selected they override 

DataCardValue1.Selected.Value 

So it works initially and then if say option1 and option2 are selected only option 2 formulas work.

 

Eventually managed to get this to work using

CountIf(DataCardValue.SelectedItems,Value="Selection Required")>0

View solution in original post

Highlighted
New Member

Re: Logic to determine if Multiple Selection Contains

Yes, This worked for me,

If you have multiselect dropdown values and you want to have conditional visibility you can use the following condition in visible property of that Card or whatever,

 

If(CountIf(DataCardValue.SelectedItems,Value="Selection Required")>0,true,false)

Highlighted
New Member

Re: Logic to determine if Multiple Selection Contains

The

CountIf(DataCardValue.SelectedItems,Value="Selection Required")>0

solution is the only statement I found that works for showing a field based on a multi-select drop down.  Thanks for posting this!

Highlighted
Regular Visitor

Re: Logic to determine if Multiple Selection Contains

Thank you, exactly what I was looking for

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,901)