Skip to main content
Community site session details

Community site session details

Session Id : Gx9wKNsQNJFhP+bDtv/9tp
Power Apps - Microsoft Dataverse
Answered

Filtering based on GUID in a lookup table

Like (0) ShareShare
ReportReport
Posted on 4 Jan 2022 13:16:11 by 125

Hi,

 

I am wondering how I can filter based on a lookup column?

 

So I have a table with student certificates which has a lookup to the student table, at the moment I have added my own foreign key to the certficatesd table as the lookup is not working.

 

So, if I try to filter student table:

 

Filter(Students, studentguid in (Filter(certficates, certifacte = "Cisco").[lookupcolumnnameforstudent]

 

But it says cannot compare guid to a record...and when I try to add another dot it doesn;t offer me the name of guidcolum to student so i cannot compare guid against guid...any ideas very welcome! I don't want to use my own foreign key as it needs to be manually inputted which may lead to errors.

 

 

 

Thanks

 

 

Categories:
  • MH-02091453-0 Profile Picture
    125 on 04 Jan 2022 at 14:42:03
    Re: Filtering based on GUID in a lookup table

    Hi, Thanks.

     

    I have tried this and it for the LookUp where I put my second table name it says this column is not accessible in this context...is there some setting I need to make for it to be accessible?

     

    Thanks

  • Verified answer
    Ram Prakash Profile Picture
    5,299 Super User 2025 Season 1 on 04 Jan 2022 at 13:38:57
    Re: Filtering based on GUID in a lookup table

    Hello @MichelleH,

     

    Not Sure if i understand your requirement clearly, you can try below

     

    Filter(Students, studentguid in (Lookup(Certficates, certifacte = "Cisco").StudentGuid))

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on 04 Jan 2022 at 13:32:36
    Re: Filtering based on GUID in a lookup table

    Hello,

    I have nerver test it but it worth a try to do something like

    Filter(Students, studentguid in Concat((Filter(certficates, certifacte = "Cisco").[lookupcolumnnameforstudent],";")

    The idea here is to create a string of [lookupcolumnnameforstudent] concat with a ; and get the ones that contains the studentguid

    Not the most elegant solution but it could work 🙂

     

    Best regards,

    Alaa

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics

Loading complete