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 / Trying to connect Sort...
Power Apps
Answered

Trying to connect Sort(Filter and a filter through my Text input search bar for my Gallery.

(0) ShareShare
ReportReport
Posted on by 23

Hello, 

Separately, I can connect my Sort(Filter without issues and I can connect my Text Input (search bar) without issues, but I am having issue trying to connect them together. Can someone help please? Thank you in advance!  

 

***I understand this is not delegable, but it doesn't need to be.

 

Sort(Filter(DIV3WorkPlanFY22,Status.Value= "Refer To Compliance"),Title,Ascending)    ***This filters my gallery by a choice in my SP List and then sorts by Title ascending. 

 

And this...

 

Filter(DIV3WorkPlanFY22, StartsWith(Title,SearchFilterFirm_2.Text)||StartsWith(FEI,SearchFilterFirm_2.Text)||StartsWith('CbCMSCase#',SearchFilterFirm_2.Text))

***This is my Text Input Search Bar that searches 3 ways... Title, FEI and CMS#. 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @SomeArmyVet ,

     

    You can combine the arguments in the filter by separating them with a comma, which will treat them as a logical AND:

    Sort(
    	Filter(
    		DIV3WorkPlanFY22,
    		Status.Value= "Refer To Compliance",
    		StartsWith(Title,SearchFilterFirm_2.Text)||
    		StartsWith(FEI,SearchFilterFirm_2.Text)||
    		StartsWith('CbCMSCase#',SearchFilterFirm_2.Text)
    	),
    	Title,
    	Ascending
    )

     

  • SomeArmyVet Profile Picture
    23 on at

    Thank you for looking at this. 

     

    It doesn't show any errors, but it also leaves my gallery blank. I might have to add a IsBlank formula, but I am not sure. 

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @SomeArmyVet ,

     

    I assume the gallery does show something in case you type something in SearchFilterFirm_2?

     

    If so, adding an IsBlank() should do the trick:

    Sort(
    	Filter(
    		DIV3WorkPlanFY22,
    		Status.Value= "Refer To Compliance",
    		IsBlank(SearchFilterFirm_2.Text) ||
    		StartsWith(Title,SearchFilterFirm_2.Text)||
    		StartsWith(FEI,SearchFilterFirm_2.Text)||
    		StartsWith('CbCMSCase#',SearchFilterFirm_2.Text)
    	),
    	Title,
    	Ascending
    )

     

  • SomeArmyVet Profile Picture
    23 on at

    I feel like I am right there, but still even with the added IsBlank() my gallery doesn't show info. Which is weird because I can connect one formula at a time and that formula works great it's when everything is combined it goes blank. 

  • SomeArmyVet Profile Picture
    23 on at

    No, my search doesn't pull anything up either. It does when connected by itself though. 

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SomeArmyVet ,

     

    So either formula for Items property is working as per you said, you could try the nested filter as follows:

    With(
     {Fitered:Filter(DIV3WorkPlanFY22,Status.Value= "Refer To Compliance")},
     Sort(
     Filter(
     Filtered,
     StartsWith(Title,SearchFilterFirm_2.Text)
     ||
     StartsWith(FEI,SearchFilterFirm_2.Text)
     ||
     StartsWith('CbCMSCase#',SearchFilterFirm_2.Text)
     ),
     Title,
     Ascending
     )
    )

     

    Hope this helps.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard