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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need Help Filtering
Power Apps
Unanswered

Need Help Filtering

(0) ShareShare
ReportReport
Posted on by 111

Hi Everyone,

I am trying to filter a gallery with no luck.  The columns i am searching are "Choice" columns with multiple choices.  I am using a "Textsearchbox,  Below is the code i am using:

SortByColumns(
Filter(
[@Event],
DateValue(Date) >= Today() && (
StartsWith(Blackjack-D, TextSearchBox3.Text) ||
StartsWith(Craps-D, TextSearchBox3.Text) ||
StartsWith(Roulette-D, TextSearchBox3.Text)
)
),
"Title",
If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
)

 

Someone please help.  Thanks

Categories:
  • Hassan_SZ_365 Profile Picture
    542 on at

    Hi @lbdrummer ,

    Use this Formula:

     

    SortByColumns(
     Filter(
     [@Event],
     DateValue(Date) >= Today() && (
     StartsWith(Blackjack-D.Value, TextSearchBox3.Text) || 
     StartsWith(Craps-D.Value, TextSearchBox3.Text) || 
     StartsWith(Roulette-D.Value, TextSearchBox3.Text)
     )
     ),
     "Title",
     If(SortDescending1, Descending, Ascending)
    )

     

    Make sure that Blackjack-D, Craps-D, and Roulette-D are the internal names of the Choice columns in your SharePoint list. Also, ensure TextSearchBox3.Text contains the text you want to search for. The Date should be the internal name of your date column.

    This formula filters the gallery to show items where the date is today or later, and the Choice column values for Blackjack-D, Craps-D, or Roulette-D start with the text typed into TextSearchBox3.

    Best Regards,
    Hassan Raza

  • lbdrummer Profile Picture
    111 on at

    Doesnt show any results

  • lbdrummer Profile Picture
    111 on at

    Hi @Hassan_SZ_365 

    Any Suggestions?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @lbdrummer,

    Well, It's very possible that your direction is unreachable since you want to filter based on a multi select choice column using StartsWith().

     

    A multi select Choice column is a complex data type, you could not easily compare it with a text string from the searchbox.

    I would strongly change the way you filter based on a multi-select Choice column, using a dropdown control is better.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard