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 / Collection of SharePoi...
Power Apps
Suggested Answer

Collection of SharePoint list items NOT in another SharePoint List

(0) ShareShare
ReportReport
Posted on by 950
Trying to create a collection of SharePoint list items who's ID's are not in another SharePoint list 

We have  kPIs and KPI responses 
When a user responds to a KPI its logged into the KPI responses table 
I want to filter the gallery so the user only sees the KPI's they have not responded to yet
I created a numeric column in the responses table to capture the ID of the KPI they responed to . 
I keep getting the cannot convert table to number error in my filter collection. Using Value does not work 
What am I missing? 
thank you! 
 
ClearCollect(colhs,KPI_HSList);
ClearCollect(colkpiinprogress,Filter(KPI_HSList_responses,Office=useroffice,RatingPeriod=curq));
ClearCollect(kpiids,colkpiinprogress.HS_ID);
ClearCollect(colhas,Filter(KPI_HSList,Not(KPI_HSList.ID in kpiids.HS_ID)));
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    155,983 Most Valuable Professional on at
    Assuming that the HS_ID field in KPI_HSList_responses is a number and represents the matching ID in KPI_HSList, then this should show the missing records from KPI_HSList where they do not have a match in KPI_HSList_responses. NOTE: both datasets (the full KPI_HSList and the filtered KPI_HSList_responses need to be under your Data Row Limit as the Not filter is not Delegable.
    With(
       {
          _InProgress:
          Filter(
             KPI_HSList_responses,
             Office = useroffice,
             RatingPeriod = curq
          ),
          _HSList: KPI_HSList
       },
       ClearCollect(
          colhas,
          Filter(
             _HSList,
             !(ID in _InProgress.ID)
          )
       )
    )
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard