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 / Adding Lookup Function...
Power Apps
Unanswered

Adding Lookup Function within a collection record

(0) ShareShare
ReportReport
Posted on by 4

I am trying to add a new column as a look up column and store it in a local collection. I plan to use the new column as a column for the data table control.

 

I have noticed that normally without lookup, i.e. just some formatting added like formatting new column to add date format or currency format works. But whenever I use the lookup formula within add columns, the collection does not show any columns within it.

 

I am using the below expression to create the collection:

 

ClearCollect(tempCollection,
AddColumns(
'[dbo].[Category]',
"Observers",LookUp('[dbo].[Observers]',LOGIN_ID = OBS_LOGIN_ID,Concatenate(LAST_NAME,", ",FIRST_NAME))))

Categories:
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Swagato,

     

    Check if there is anything wrong with the Concatenate(LAST_NAME,", ",FIRST_NAME) part. Make sure that only [dbo].[Observers] contain the LAST_NAME and FIRST_NAME column. 

     

    Regards,

    Mona

  • Swagato Profile Picture
    4 on at

    Hello,

     

    The Observer table is the master table and only has information on FIRST_NAME and LAST_NAME. Also, this issue is not just with the expression I have mentioned. It has occurred for me for any lookup function on any table I use within the add columns and then creating a local collection out of it.

     

    P.S. I am using an on-premise SQL Server database. Not sure whether it has anything to do with it.

  • Delid4ve Profile Picture
    795 on at
    i think your going to need to collect the observers table first with an addcolumns to do your concatenate, then do the lookup.
    If you use addcolumns though you don't need concatenate anyway, just do: FirstName & " " & SurName (you could try this directly in your lookup but I don't think it works this way from memory).

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard