cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

Filter a gallery without a delegation

Hi there,

I hope someone could point me in the right direction?

 

I have been trying to filter and sort my gallery with 3 conditions but I am not able to figure out.

 

Basically this sketch shows the scenario:

 

sajarac_0-1650146265061.png

 

I need to filter my gallery Based on the status "ideally a dropdown" plus based on an Agent "fixed value" and plus in a date picker.

 

Thanks in advance for any help.

 

BTW datasource is SharePoint. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @sajarac ,

A bit of task keeping this (I hope) Delegable, but the below should be close

With(
   {wDate:Today()},
   SortByColumns(
      AddColumns(
         Filter(
            TaskList,
            Status = "Active" &&
            Agent = "Jhon" &&
            'Due Date' >= wDate || 'Due Date' = Blank()
         ),
         "BlankDate",
         'Due Date' = Blank()
      ),
      "Due Date",
      Ascending,
      "BlankDate",
      Descending
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @sajarac ,

A bit of task keeping this (I hope) Delegable, but the below should be close

With(
   {wDate:Today()},
   SortByColumns(
      AddColumns(
         Filter(
            TaskList,
            Status = "Active" &&
            Agent = "Jhon" &&
            'Due Date' >= wDate || 'Due Date' = Blank()
         ),
         "BlankDate",
         'Due Date' = Blank()
      ),
      "Due Date",
      Ascending,
      "BlankDate",
      Descending
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

sajarac
Kudo Kingpin
Kudo Kingpin

Thank you, Thank you, Thank you!

 

🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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