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 / Comparing two sharepoi...
Power Apps
Answered

Comparing two sharepoint lists with additional filters

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone.

 

I am comparing two sharepoint lists.  The first list has all my items on it, and the second list has certain items on it from list one.  I am trying to show what is left on list one that is not on list two with a small caveat.  The items repeat themselves on list one but they belong to different departments.  Using the code below works, except it does not filter by department on the second list. 

 

SortByColumns(
Filter(
TTDMasterGameList,
'D LOCATION' = Value(varUser.Department),
Not(JoinedTogether in TTDDefectsAll.GameName)
),
"SeqOrder",
Ascending,
"Modified",
Ascending
)

 

I am trying to figure out where to include  'D LOCATION' = Value(varUser.Department) on the NOT() portion of the code but nothing I try is working correctly.

 

Thanks for the guidance!

Chris

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    You can use the lookup function to see if the record exists. I am free handed this so I can't test it out and there might be some typos but I think it would look something like this:

     

    SortByColumns(
    Filter(
    TTDMasterGameList,
    IsBlank(Lookup(TTDDefectsAll, JoinedTogether = GameName && 'D LOCATION' = Value(varUser.Department)).GameName)
    ),
    "SeqOrder",
    Ascending,
    "Modified",
    Ascending
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 462

#2
WarrenBelz Profile Picture

WarrenBelz 425 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard