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 / Lookup field in a gallery
Power Apps
Answered

Lookup field in a gallery

(1) ShareShare
ReportReport
Posted on by 34

Good afternoon,

 

Here is the context.

 

I created the following in Dataverse.

 

TableA have a lookup column called "Program" that is getting the value from the primary field called "Name of program" of TableB. 

 

After this, I created a view in TableA showing all the fields I have in the table, including my Program field. I'm seeing all my records in my view without issues.

 

I'm now creating a canvas application.

 

In my screen, I'm creating a gallery that is using the view I created in TableA as a filter.

 

I'm then adding different labels to show the data of records. Everything is accessible with ThisItem except for my Program field that sends a Scope error.

 

From there I tried a lot of things I saw online, but nothing is working to show the proper value of my field for the specific item.

 

The closest I got was with the LookUp function in my label, but I can't properly build it to get the data I need.

 

Something like LookUp(Table B, 'Name of program" = thisitem.Program, 'Name of program') or some variation give me scope errors, invalid parameters (cant compare text and object) or other errors.

 

I tried different filters approach like addcolumns, but can't get it to work.

 

The closest I got had a value in the field, but it was a random Name of program, not the one related to the item

 

I don't know what to try from there. Help needed.

 

Thanks in advance.

 

 

 

Categories:
  • Verified answer
    Lonepaw Profile Picture
    34 on at

    After searching for hours, I finally solved it and it was stupidly easy 😥

    I needed "ThisItem.Program.'Name of program'" to solve the scope issue.

    Great first post 😅

  • pradeepvbh Profile Picture
    on at

    Thanks much !

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard