Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Get Items from a MultiSelect Choice Column in SharePoint and Compare to Dropdown in Power Apps

(1) ShareShare
ReportReport
Posted on by 76
In SharePoint I have a list named BCPStatus.  If Status field in Status is Yes, I want to Lookup the items in the MarketsImpacted field.   Markets Impacted field is a MultiSelect Choice type column. 
So after looking up items selected, compare it to Power Apps EditForm1_3 form field DDMarket_1, which is a single choice dropdown field.    Then Something like this:
    If(DDMarket_1.Selected.Value in MarketsImpacted field),"Do Some stuff","Do some other stuff")

I started with trying to collect from BCPStatus MarketsImpacted, but it brings back all choices available instead of the selected choices.  Plus I don't know how to filter this to only include Status is Yes. Sorry this is as far as I've gotten.  
 
ClearCollect(colMyCollection,
   (Choices(BCPStatus.MarketsImpacted))
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 145,343 on at
    Get Items from a MultiSelect Choice Column in SharePoint and Compare to Dropdown in Power Apps
    If Status is a Text fields, get rid of .Value.  I assume MarketsImpacted is a multi-choice field ?
    With(
       {
          _Data: 
          Filter(
             BCPStatus,
             Status = "Yes"
         )
       },
       If(
         !IsBlank(
            LookUp(
              _Data,
              DDMarket_1.Selected.Value in MarketsImpacted.Value
            )
          ),
          "Do some stuff",
          "Do some other stuff"
       )
    )

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
  • BB-31072007-0 Profile Picture
    BB-31072007-0 76 on at
    Get Items from a MultiSelect Choice Column in SharePoint and Compare to Dropdown in Power Apps
    @WarrenBelz   Yes this is what I wanted. On the 'Value', I'm getting 'The '.' operator cannot be used on text values and Name isn't valid' respectively.  
     
  • WarrenBelz Profile Picture
    WarrenBelz 145,343 on at
    Get Items from a MultiSelect Choice Column in SharePoint and Compare to Dropdown in Power Apps
    Are you trying to do something like this (assuming Status is a Choice field) and the output of ddMarket_1 is .Value )
    With(
       {
          _Data:
          Filter(
             BCPStatus,
             Status.Value = "Yes"
          )
       },
       If(
          DDMarket_1.Selected.Value in _Data.MarketsImpacted.Value,
          "Do some stuff",
          "Do some other stuff"
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard