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 / Compare two collection...
Power Apps
Answered

Compare two collections doesn't work?

(0) ShareShare
ReportReport
Posted on by 482

Dear all

 

I have a dataverse for teams table called Registered Users and another called Eligible Users.

I would like to check if some of the Registered Users are in the Eligible Users table and I'm checking against the 'Azure AD Object ID' as the unique identifier.

 

// in 'Eligible Users' I have a column called cr466_User2 that has previously been saved from the 'Registered Users' table to the 'Eligible Users' table

ClearCollect(
 colCheck,
 Filter(
 'Registered Users',
 'Azure AD Object ID' in 'Eligible Users'.cr466_User2.'Azure AD Object ID'
 )
)

 

My colCheck collection stays empty and I'm wondering why? The 'Eligible Users' table includes Azure AD Object ID's from 'Registered Users'. See here:
compared-users.png

 

I would appreciate your help. Thanks and happy easter!

Categories:
I have the same question (0)
  • Verified answer
    FabianAckeret Profile Picture
    975 on at

    Hi @mrQ 

     

    Try your formula the other way around.

    Something like:

    ClearCollect(
     colCheck,
     Filter(
     'Eligible Users',
     cr466_User2.'Azure AD Object ID' in 'Registered Users'.'Azure AD Object ID'
     )
    )

     

    That helped me often times... Why? I can't really answer that apart from "it might be a bug" OR "it has something to do with the relations of the tables". Meaning, I assume while executing, PowerApps can't access some of the columns right away (e.g. Azure AD Object ID from 'Eligible Users'.cr466_User2). However, if you Filter on the 'Eligible Users', you automatically have that info already (as its stored in the table) and while your 'Registered Users' table is flat, it doesn't encounter that issue there.

     

    I hope it makes sense... I'm not a big fan of using Dataverse for exactly that reason. I've been working with other databases and their relationships before and I never encountered as many issues as with Dataverse. 

    However, if you know the "bugs" or limitations then Dataverse (and especially Dataverse for Teams) can be very handy/cost effective.

  • mrQ Profile Picture
    482 on at

    Hi  @FabianAckeret 

     

    Thanks for your answer.

     

    That would work, but since I need some of the columns of Registered Users I can't possibly swap the statement.

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