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 with a choic...
Power Apps
Unanswered

Filtering with a choice with sharepoint list

(0) ShareShare
ReportReport
Posted on by 5

I am trying to get a sharepoint list to search using one column an then filter this again on a second column.

 

 

 

I don’t mind the order of the filtering

 

txtsearchbox is an input box

 

Sharepoint is the sharepoint table

 

Column1 is a column with a choice dropdown

 

Column2 is a column with text in it

 

 

 

 

 

Filter(Choices(sharepoint.Column1, TextSearchBox1.Text), sharepoint.Column2 = "1")

 

 

 

 

 

thank you for your help

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Jacktheripp 

    Please try the following,

    Filter(sharepoint, StartsWith(Column1, TextSearchBox1.Text) && Column2.Value = "1")

  • Jacktheripp Profile Picture
    5 on at

    Excellent, so close thank you but its kind of reversed

    so

    animal  age

    Chicken      30

    Chicken      15

    Dog            30

    Chipmunk  30

     

    the choice column is the animal and the txt the number I want search the choice animal for the word chip and then for 30 days. like yours but reversed Thank you

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Jacktheripp 

    For the choice column you need match one of the choices not a part of it.

    Please try the following,

    Filter(sharepoint, animal.Value = "Chicken", StartsWith(age, TextSearchBox1.Text) )

  • Jacktheripp Profile Picture
    5 on at

    you missed out on the poor Chipmunk lol

     

    You cant search for part or "conatains" on a choice column. any work around? Like read it as a variable. The only one i can think of that is clunky would be make a calculated column on it and filter on that (probably something will stop that) seems to be a strict limitation.

    my application means that i would need to write 40 filters for the 40 choices as they are prefixed with 2 different words it would be nice to filter.  

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Jacktheripp,

    Have you solved your problem?

    Do you want to search the Choice column firstly and then filter based on the age?

     

    Actually, if all the choices from the Choice column are prefixed with 2 different words, it is better to use the StartsWith() function.

    In addition, we could search for start string for a Choice column.

    Filter(SPList, StartsWith(animal.Value , TextInput5.Text),age="30" )

    vqiaqimsft_0-1639470185850.png

     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard