cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlanCampbell Helper I
Helper I

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
AlanCampbell Helper I
Helper I

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

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

 

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

View solution in original post

4 REPLIES 4
Highlighted
AlanCampbell Helper I
Helper I

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

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)

Super User
Super User

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

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.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
AlanCampbell Helper I
Helper I

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

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.

AlanCampbell Helper I
Helper I

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

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

 

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

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,758)