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 / Filter by comparing a ...
Power Apps
Answered

Filter by comparing a Lookup field to a text field in two different Dataverse tables

(0) ShareShare
ReportReport
Posted on by 9

Hello, I am trying to create a nested gallery, where the first gallery displays the Categories and depending on the category selected it should go to a gallery that contains the Awards that fall within that category. for the filter on the second gallery (Awards gallery), I am trying to compare two different fields in two different tables in Dataverse. Table 1 is called Kudos Category, Table 2 is called Kudos Award. Kudos Award table has a lookup field called 'Kudos Category' that gets the category from the Kudos Category table, field name: 'Kudos Category Name' (which is a text input).

 

I have tried:

Filter('Kudos Category'= galKudosCategories.Selected.'Kudos Category Name')

Filter('Kudos Category'.Value = galKudosCategories.Selected.'Kudos Category Name'.Value)

 

and neither of them work

Categories:
I have the same question (0)
  • Vikas_Sharma Profile Picture
    42 on at

    Hi @Lsmits 

    Please check the syntax of the filter function because It should contain the database name first and then the condition.

    In your filter syntax you have not used the database name please add that and then check.

    Hope this will work.

     

     

    Thanks, Regards

     

     

     

  • Lsmits Profile Picture
    9 on at

    Hi Vikas,

     

    yes apologies, it does and it still doesn't work:

     

    Filter('Kudos Awards', 'Kudos Category'= galKudosCategories.Selected.'Kudos Category Name')

    Filter('Kudos Awards', 'Kudos Category'.Value = galKudosCategories.Selected.'Kudos Category Name'.Value)

     

    any suggestions?

     

  • Verified answer
    Lsmits Profile Picture
    9 on at

    I figured it out!

     

    Because the 'Kudos Category' is a lookup column from Dataverse you need to reference the lookupcolumn.columnameitislookingupfrom eg.

     

    Filter('Kudos Awards', 'Kudos Category'.'Kudos Category Name' = galKudosCategories.Selected.'Kudos Category Name')

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @Lsmits 

    Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues. Please accept your reply as an solution to mark the post as solved so that this thread will be marked for other users to easily identify!

    Best Regards.

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 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard