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 the same column names using a filter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Say I have the following incomplete code snippet

 

ForAll(MyCollection,Filter(AnotherCollection, Title = Title))

"MyCollection" and "AnotherCollection" both have a column named "Title". How do I compare them using "=" in the filter so that PowerApps knows that one "Title" is from "MyCollection" and the other is from "AnotherCollection" ?

 

Thank you!

Categories:
I have the same question (0)
  • wyotim Profile Picture
    2,545 on at

    I believe the best solution is using the disambiguation symbol "@" and defining your column from the other list. I am doing this from memory, so it may be a bit different but I believe it is:

     

    ForAll(
     MyCollection,
     Filter(
     AnotherCollection,
     Title = MyCollection.[@Title]
     )
    )

    That should at least be headed in the right direction if I messed up the syntax.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Doesn't seem to be working for me with that syntax Smiley Sad 

     

    I tried this 

    Title = MyCollection.Title

    with no success

     

  • Verified answer
    wyotim Profile Picture
    2,545 on at

    My syntax was indeed off. It should have been:

     

    Title = MyCollection[@Title]

     

     

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard