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 / How to embed Filter an...
Power Apps
Unanswered

How to embed Filter and StartsWith

(0) ShareShare
ReportReport
Posted on by 29

Howdy,

I'd like to add a text search box into my app but can't figure out how to add the formula within my existing formula. Any help would be very much appreciated.

 

Existing Gallery Items:

Ungroup(Table({Value: Blank()},{Value: Sort(ForAll(Distinct('Data List', 'Project Name'), {Result: ThisRecord.Value}),Result)}),"Value")

 

Need to embed:

Filter([@Data List], StartsWith('Project Name', TextInput2.Text))

 

Categories:
I have the same question (0)
  • Talha_Dar Profile Picture
    870 Super User 2024 Season 1 on at

    Hi @Menyon,

     

    you can try using the following formula

     

    Ungroup(Table({Value: Blank()},{Value: Sort(ForAll(Distinct(Filter([@Data List], StartsWith('Project Name', TextInput2.Text)), 'Project Name'), {Result: ThisRecord.Value}),Result)}),"Value")

     

    If you found my answer helpful, please consider giving it a thumbs-up or a like. Your feedback is greatly appreciated!

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Hi

    Try this

    Ungroup( Table( { Value: Blank() }, { Value: Sort( ForAll( Filter([@Data List], StartsWith('Project Name', TextInput2.Text)), { Result: ThisRecord.Value } ), Result ) } ), "Value" )

    (Or)

    Ungroup(
    Table(
    {Value: Blank()},
    {Value: Sort(ForAll(Distinct(Filter([@Data List], StartsWith('Project Name', TextInput2.Text)), 'Project Name'), {Result: ThisRecord.Value}), Result)}
    ),
    "Value"
    )


    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Verified answer
    Menyon Profile Picture
    29 on at

    Unfortunately, this didn't work. Startswith, distinct, Sort and Filter have invalid arguments.

  • Menyon Profile Picture
    29 on at

    Unfortunately, neither work. Startswith, distinct, Sort and Filter have invalid arguments.

  • Verified answer
    Menyon Profile Picture
    29 on at

    Bah, I missed 

    Filter([@'Data List']

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard