web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering a SharePoint...
Power Apps
Unanswered

Filtering a SharePoint list Choice field by a Choice value

(0) ShareShare
ReportReport
Posted on by 8

I have a SharePoint list called JobsTest that has the following structure. JobsTest(ID, Title, Assigned Person). The Assigned Person field is a Choice data type and can contain multiple values.

 

I want to be able to filter all of the Jobs where "Alice" is one of the Assigned Persons. This should return Jobs 1 and 3 from my data below and see screenshot.

 

Data:

JobsTest( 1, "Job 1", "Alice")

JobsTest( 2, "Job 2", "Bob")

JobsTest( 3, "Job 3", ["Alice", "Bob"])

 

I have tried the following formulas with no luck:

Filter(JobsTest, 'Assigned Person' in "Alice")

Filter(JobsTest, 'AssignedPerson'.Value = "Alice").Title

I have also played with the Choices() function.

 

Please can someone point me in the right direction.

Thanks

Categories:
I have the same question (0)
  • PTBBSolutions Profile Picture
    691 on at

    Hello @dcullen_ ,

     

    Where are you writing this formula? (in what control)

     

    Could you please try something like this:

     

    Filter(
     JobsTest,
     "Alice" in Concat(Choices,Value,";")
    )
  • dcullen_ Profile Picture
    8 on at

    Thank you, I've just tried this:

     

    Filter(
     JobsTest,
     "Alice" in Concat('Assigned Person',Value,";")
    )

     

    It seems to work, however two issues.

    1) I get a delegation warning on the IN clause

    2) I want to display the "Title" field in the dropdown. It is greyed out (see screenshot)

     

    image001 (1).png

  • PTBBSolutions Profile Picture
    691 on at

    What is the message when you hover over the "in"? As for the display field, just put .Title afther the closing bracket of the Filter.

  • dcullen_ Profile Picture
    8 on at

    Cool thanks, Title is now been displayed so it's just the delegation warning:

     

    powerapp-dropdown-delegation.png

     

    Does this mean that if my rows exceed 1000 this may not work? If so this is quite a limitation.

     

    Cheers

  • PTBBSolutions Profile Picture
    691 on at

    In operator is not delegable in SP. Try to replace the filter with search:

    Search(
     JobsTest,
     "Alice",
     Concat('Assigned Person',Value,";")
    )
  • dcullen_ Profile Picture
    8 on at

    It appears that Search is not delegable in SharePoint either!

     

    https://docs.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-operations-for-sharepoint

     

    I wonder if I can get away with adding another Filter() to limit the number of rows returned so that it will always be less than 100. e.g. a type field where type = "SomeJobType".

     

    Filter(
     JobsTest,
     "Alice" in Concat('Assigned Person',Value,";"),
     Type = "SomeJobType"
    )
  • PTBBSolutions Profile Picture
    691 on at

    You can, but the sintax is different:

     

    Filter(
    Filter(
     JobsTest,
     Type = "SomeJobType"
    ),
    "Alice" in Concat('Assigned Person',Value,";"))

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard