web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Lookup in Gallery
Power Apps
Answered

Using Lookup in Gallery

(0) ShareShare
ReportReport
Posted on by 63

Hi

I have two lists in SHAREPOINT, one named GeneralSpecGroups and the other named GeneralSpecPopulation.
In the GeneralSpecGroups list I have a column called Group Name and a Lookup column called GroupToPopulation that is connected to the GeneralSpecPopulation list to the Population column.
I want to display the GroupToPopulation column in powerapps within a gallery whose database is GeneralSpecGroups.
How can i do it?

 

I tried this, but got an error:

 

LookUp(
   GeneralSpecPopulation,
   ID = ThisItem.GroupToPopulation.ID
).Population
Categories:
I have the same question (0)
  • Vaish123 Profile Picture
    136 on at

    ThisItem.GroupToPopulation.Population

    try this one

  • cabutbul Profile Picture
    63 on at
    LookUp(
       GeneralSpecPopulation,
       ID = ThisItem.GroupToPopulation.Population
    ).Population
     
    Still got an error.
    "Incompatible types for Comparison..."
     
  • Vaish123 Profile Picture
    136 on at

    ThisItem.'GroupToPopulation '.Value
    You dont not need to filter it again using Lookup function. In SharePoint itself you already connected with Lookup function. 

    Directly you can able to visible the items. 
    Population.png



  • Vaish123 Profile Picture
    136 on at

    If you want to insert, use combo box and give below query in item property : 

    Choices([@GeneralSpecGroups].GroupToPopulation)

    Population2.png
  • cabutbul Profile Picture
    63 on at

    Trying this also.

    Still got an error

     

    cabutbul_0-1707220485132.png

     

  • cabutbul Profile Picture
    63 on at

    I don't want to insert, just to display the text in the  GroupToPopulation column which is Lookup type

     

  • Verified answer
    Vaish123 Profile Picture
    136 on at

    Its perfectly working for me....
    I created both list and columns as mentioned by you. 
    Inserted a gallery and connected with GeneralSpecGroups
    Inserted a Text label field and added below code in Text property  

    ThisItem.'GroupToPopulation '.Value


    1. Try to reconnect the datasource in gallery

    2. Make sure the datatype of SharePoint columns and gallery items correct. 
    3. Try to create new Gallery if its not working incase there is no issues in data types. 

  • cabutbul Profile Picture
    63 on at

    Working.

    There was something with my lists.

    I deleted them and created new.

    Thx

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard