cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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.

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (56,701)