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 / How to show data in a ...
Power Apps
Answered

How to show data in a label using a value from sharepoint list

(0) ShareShare
ReportReport
Posted on by 35

Hi, I've built a few sharepoint lists and am using them as tables in a make shift database, thanks to the killing off of access web apps.  I'm having a problem, in a gallery I need to display data from two different sharepoint lists, the two lists are

 

Crewmembers

- ID

- CrewDate

- CrewMemberName

- CrewMemberActivityID

 

Activities

- ID

- Activity

- StartDate

- EndDate

 

The gallery is using the crewmembers sharepoint list, within the gallery for each record shown I need to display the Activities.Activity where CrewMembers.CrewMemberActivityID = Activities.ID

 

I have tried a few different ways, I'm currently getting a invalid argument type when using the below for the Text value of the label in the gallery I'm using

 

LookUp(ThisItem.CrewMemberActivityID = Activities.ID, Activities.Activity)

 

Any help would be greatly appreciated

Categories:
I have the same question (0)
  • AlanCampbell Profile Picture
    35 on at

    I'm using the below and getting no data

     

    LookUp(Activities, ThisItem.CrewMemberActivityID = Activities.ID, Activity)

     

    I tried the below also with no results

     

    LookUp(Activities, Text(ThisItem.CrewMemberActivityID) = Text(Activities.ID), Activity)

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    It would help to know what the field types are for the different SharePoint columns. For example CrewMemberActivityID could be a number, text or even a lookup column in SharePoint. The complext column types like choice, lookup and person/group are handled a little differently.

  • AlanCampbell Profile Picture
    35 on at

    Hi Jeff_Thorpe, all sharepoint columns are of type "single line of text" with the exception of 

    CrewMemberActivityID which is "number" and ID which is the sharepoint list ID which is of number as well.

  • Verified answer
    AlanCampbell Profile Picture
    35 on at

    Found my issue I had my source around the way way, code that works is

     

    LookUp(Activities, ID = ThisItem.CrewMemberActivityID, Activity)

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 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard