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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,125)