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 / can I have 2 filters o...
Power Apps
Unanswered

can I have 2 filters on one Screen?

(0) ShareShare
ReportReport
Posted on by 280

I would like to have 2 filters in my screen (see below)

The formula for filtering is in the ITEM section of my BrowseGallery and reads: 

 

SortByColumns(Filter('LPS EMEAI Requests'; StartsWith(Title; 'TextSearchBox1-Deals'.Text)); "Title"; If(SortDescending1; Descending; Ascending))

 

if I want it to work for the other filter I change it into:

 

SortByColumns(Filter('LPS EMEAI Requests'; StartsWith(Title; 'TextSearchBox1-LPS'.Text)); "LPS"; If(SortDescending1; Descending; Ascending))

 

but can I combine into a single formula for the ITEM section??

Additionally; how can I modify my filter to select any string that hassearch string instead of "StartsWith"?

 

Thank you all

 

Regards

charles

yy.JPG

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Charles-v-D 

    Sure thing...just need to adjust your formula a bit.  Consider the following:

    SortByColumns(
     Filter('LPS EMEAI Requests'; 
     If(!IsBlank('TextSearchBox1-LPS'.Text;
     StartsWith(Title; 'TextSearchBox1-LPS'.Text);
     true) && 
     If(!IsBlank('TextSearchBox1-Deals'.Text;
    StartsWith(Title; 'TextSearchBox1-Deals'.Text);
    true)
    ); "LPS"; If(SortDescending1; Descending; Ascending))

    That should give you what you are looking for.  Try it out and post back if you have any issues.

     

    I hope this is helpful for you.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Charles-v-D ,

    I find that the items sort by "Title" in situtiation1 and sort by "LPS" in situtiation2.

    Could you tell me when both the two textinput is not blank, the items sort by which column?

    What's more, if you want to modify filter to select any string that hassearch string instead of "StartsWith", I suggest you use "in" instead of "StartsWith".

    Try this formula:

    Filter('LPS EMEAI Requests'; 
     If(!IsBlank('TextSearchBox1-LPS'.Text;
     'TextSearchBox1-LPS'.Text in Title;
     true) && 
     If(!IsBlank('TextSearchBox1-Deals'.Text;
    'TextSearchBox1-Deals'.Text in Title;
    true)
    )

     About how to sort, I need your reply.

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • Charles-v-D Profile Picture
    280 on at

    @v-yutliu-msft @RandyHayes 

     

    Gent's,

    thank you for your input, but I'm not able to get it to work.. I have released the app with 1 search box for now. I'm on FTO for next 4 weeks Smiley Happy might get back in touch with you on this after that!

     

    Thanks again

     

    Regards

    Charles

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Charles-v-D 
    When you get back, shoot a messge back with any error you are seeing or any issues that it is showing.

    Also mention how big the datasource is in terms of number of records.

    See ya in 4 weeks...

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard