cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Multi filter tekst and dropdown

Hello, I want to put two filters in my browsescreen. 

My tekst filter is already working, with this 

 

SortByColumns(Filter(Nieuwe,StartsWith(Categorie.Value, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

Now i want to add a dropdown filter with the status off the list item.

 

Can someone help me?

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

Do you want to add multiple filter conditions to filter your Gallery items?

Based on the needs that you mentioned, please take a try with the following workaround:

I assume that there is a Status column in your SP list, which you want to compare with the selected value within the Dropdown control.

If the Status column is a Single line of text type column, please modify your formula as below (set Items property of the Gallery control to following😞

SortByColumns(
Filter(Nieuwe, StartsWith(Categorie.Value, TextSearchBox1.Text), Status = Dropdown1.Selected.Value),
"Title",
If(SortDescending1, Descending, Ascending)
)

 

If the Status column is a Choice type column, please modify your formula as below:

SortByColumns(
        Filter(Nieuwe, StartsWith(Categorie.Value, TextSearchBox1.Text), Status.Value = Dropdown1.Selected.Value), 
        "Title", 
        If(SortDescending1, Descending, Ascending)
)

Above formula may cause a Delegation warning issue, in order to get rid of this Delegation warning issue, please take a try with the following workaround:

Set the OnVisible property of the first screen of your app to following:

ClearCollect(RecordsCollection, Nieuwe)

Set the Items property of the Gallery to following:

SortByColumns(
        Filter(RecordsCollection, StartsWith(Categorie.Value, TextSearchBox1.Text), Status.Value = Dropdown1.Selected.Value), 
        "Title", 
        If(SortDescending1, Descending, Ascending)
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
panand99
Solution Supplier
Solution Supplier

Hello,

 

You need to first create a collection for your list and then use this formula

 

-----------------------------------------------------

SortByColumns(
Filter(
collRequests,
If(
Not(IsBlank(TextSearchBox1.Text)) && !(IsEmpty(searchType.Selected)),TextSearchBox1.Text in Title && searchType.Selected.Value in RequestType,
true
)
),
"Created",
Descending
)

-----------------------------------------

collRequests is the collection of list

searchType is combobox in search form

v-xida-msft
Community Support
Community Support

Hi @Anonymous,

Do you want to add multiple filter conditions to filter your Gallery items?

Based on the needs that you mentioned, please take a try with the following workaround:

I assume that there is a Status column in your SP list, which you want to compare with the selected value within the Dropdown control.

If the Status column is a Single line of text type column, please modify your formula as below (set Items property of the Gallery control to following😞

SortByColumns(
Filter(Nieuwe, StartsWith(Categorie.Value, TextSearchBox1.Text), Status = Dropdown1.Selected.Value),
"Title",
If(SortDescending1, Descending, Ascending)
)

 

If the Status column is a Choice type column, please modify your formula as below:

SortByColumns(
        Filter(Nieuwe, StartsWith(Categorie.Value, TextSearchBox1.Text), Status.Value = Dropdown1.Selected.Value), 
        "Title", 
        If(SortDescending1, Descending, Ascending)
)

Above formula may cause a Delegation warning issue, in order to get rid of this Delegation warning issue, please take a try with the following workaround:

Set the OnVisible property of the first screen of your app to following:

ClearCollect(RecordsCollection, Nieuwe)

Set the Items property of the Gallery to following:

SortByColumns(
        Filter(RecordsCollection, StartsWith(Categorie.Value, TextSearchBox1.Text), Status.Value = Dropdown1.Selected.Value), 
        "Title", 
        If(SortDescending1, Descending, Ascending)
)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Thankyou!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (10,252)