cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tengilrachid
Frequent Visitor

Filter and search gallery: how to separate 2 statement?

I use 2 dropdown to filter my gallery and i would like to add a search box but i could not separate the 2 statement:

 

- First statement for Search box : Filter(My sharepoint list, StartsWith(Title, SearchBox.Text)) "how to separate"

 

- Second statement If( Filterstatus.Selected.Result="All" And Filterprio.Selected.Result="All",My sharepoint list,

Filterstatus.Selected.Result="Alla" And Filterprio.Selected.Result<>"Alla",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result),

Filterstatus.Selected.Result<>"Alla" And Filterprio.Selected.Result="Alla",Filter(My sharepoint list,Status.Value=Filterstatus.Selected.Result),

Filterstatus.Selected.Result<>"All" And Filterprio.Selected.Result<>"All",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result And Status.Value=Filterstatus.Selected.Result))

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @tengilrachid ,

 

You could try this formula:

Filter(

If( Filterstatus.Selected.Result="All" And Filterprio.Selected.Result="All",My sharepoint list,
Filterstatus.Selected.Result="Alla" And Filterprio.Selected.Result<>"Alla",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result),
Filterstatus.Selected.Result<>"Alla" And Filterprio.Selected.Result="Alla",Filter(My sharepoint list,Status.Value=Filterstatus.Selected.Result),
Filterstatus.Selected.Result<>"All" And Filterprio.Selected.Result<>"All",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result And Status.Value=Filterstatus.Selected.Result)),

StartsWith(Title, SearchBox.Text))

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @tengilrachid ,

 

You could try this formula:

Filter(

If( Filterstatus.Selected.Result="All" And Filterprio.Selected.Result="All",My sharepoint list,
Filterstatus.Selected.Result="Alla" And Filterprio.Selected.Result<>"Alla",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result),
Filterstatus.Selected.Result<>"Alla" And Filterprio.Selected.Result="Alla",Filter(My sharepoint list,Status.Value=Filterstatus.Selected.Result),
Filterstatus.Selected.Result<>"All" And Filterprio.Selected.Result<>"All",Filter(My sharepoint list,Avtalsprioritet.Value=Filterprio.Selected.Result And Status.Value=Filterstatus.Selected.Result)),

StartsWith(Title, SearchBox.Text))

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

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

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

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (31,262)