web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Finding Rows in SPL th...
Power Apps
Unanswered

Finding Rows in SPL that are not in another SPL

(0) ShareShare
ReportReport
Posted on by

Hi everybody,

 

I'm currently developing an app and having trouble with checking two SPL.

I have one SP-list "Managers" that contains users that have to complete a certain task every year.

In another list I keep track on who completed the task in the current year.

The lists look like this

"Managers"

IdName
1John
2Jane
3Steve

 

"Task_completed"

Manager_IDYear
12020
22020
32020
12021

 

Now I want to find out who did not complete the task in a certain year. For example, for the year 2020, the result should be empty, because all three managers completed their task for 2020. For 2021, the result should contain Jane and Steve, because only John did his work.

 

Is there any way to realize this using Powerapps?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @BenWishh 

    Please consider the following formula:

    With({_years: [2020, 2021, 2022]},
     ForAll(Managers As _manager,
     Patch(_manager, 
     {_yearsNotCompleted:
     With({_tasks: Filter(Task_completed, Manager_ID = _manager.Id)},
     Filter(_years, !(Value in _tasks.Year))
     )
     }
     )
     )
    )
    

    This will provide a list of managers and all the years they have not completed.

     

    If you are looking from it from the other perspective (a list of managers that have not completed a specified year), then consider the following formula instead:

    With({_year: 2021},
     With({_items: Filter(Task_completed, Year=_year)},
     Filter(Managers, !(Id in _items.Manager_ID))
     )
    )

     

    NOTE: The above formulas are not using delegable criteria.  If your list is, or is expected to be, over 2000 records, then the results will not be complete.

     

    I hope this is helpful for you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard