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

Remove Item from Dropdown List - 2 collections linked with a date filter

Hi,

 

I have a list of tasks the have daily, weekly and monthly frequency. I want to remove a task from a dropdown list when one is completed today, this data is within a SP List. I've created 2 collections 'Tasks' = Task List and 'ComTasks' = CompletedTasks 

 

I can remove a task from the dropdown list using this in the items function of the dropdown list - Filter(Tasks, Not('Summary Task' in ComTasks.'Summary Task')) 

 

I want to add in an additional filter that only removes the summary task if it was created today so I tried below and lots of other variations which isn't working

Filter(Tasks, Not('Summary Task' in ComTasks.'Summary Task'),ComTasks,Created>=Today()) 

 

Any help would be appreciated? 

 

Thanks,

 

Dan 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@DanH84201 

Please consider changing your Formula to the following:

Filter(Tasks, 
    Not('Summary Task' in Filter(ComTasks, Created>=Today()).'Summary Task')
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@DanH84201 

Please consider changing your Formula to the following:

Filter(Tasks, 
    Not('Summary Task' in Filter(ComTasks, Created>=Today()).'Summary Task')
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Perfect, thanks. I’d spent hours looking at that and just couldn’t get it 🙈 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

Users online (3,137)