cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sagar_shah
Helper I
Helper I

Filtering gallery using multiple filter.

Hello Everyone,

I am developing app where I am having gallery and it is filter using Filter function but also want to add Dropdown or search box how can I filter data with help of multiple filtering.

I am attaching ss please have a look any help will be good.

 

using drop down the code is : If(Dropdown6.Selected.Result = "All",TaskTable,Filter(TaskTable,ProjectName.Value = Dropdown6.Selected.Result))
now I want to filter using User login like whenever user logs in task related to him should be displayed plus i should able to sort data ascending or descending format.

Regards,
Sagar Shah

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @sagar_shah ,

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following formula (Set Items property of Gallery to following😞

Sort(
   Filter(
       TaskTable,
       If(
          Dropdown6.Selected.Result = "All",
          true,
          ProjectName.Value = Dropdown6.Selected.Result
       ),
       Email = User().Email
   ),
   Start-Date,             // sort your Filter results based on Start-Date column in your TaskTable
   SortOrder.Descending
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

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

2 REPLIES 2
eka24
Super User III
Super User III

Hi use:

Sort(If(Dropdown6.Selected.Result = "All",TaskTable,Filter(TaskTable,ProjectName.Value = Dropdown6.Selected.Result,Email=User().Email)),ColumnToSort)

 

Or

Sort(If(Dropdown6.Selected.Result = "All",TaskTable,Filter(TaskTable,ProjectName.Value = Dropdown6.Selected.Result,Email.Value=User().Email)),ColumnToSort)

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

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-xida-msft
Community Support
Community Support

Hi @sagar_shah ,

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following formula (Set Items property of Gallery to following😞

Sort(
   Filter(
       TaskTable,
       If(
          Dropdown6.Selected.Result = "All",
          true,
          ProjectName.Value = Dropdown6.Selected.Result
       ),
       Email = User().Email
   ),
   Start-Date,             // sort your Filter results based on Start-Date column in your TaskTable
   SortOrder.Descending
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

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

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

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

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

Top Solution Authors
Top Kudoed Authors
Users online (53,526)