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 Apps
Unanswered

Lookup Problem

(0) ShareShare
ReportReport
Posted on by 4

I am trying to do a lookup within a addcolumns statement but below results in an invalid column error. Powerapps won't let me access any column of Table2 in the lookup.

 

ClearCollect(myCollection;AddColumns(Table1;"NewColumn";LookUp(Table2;Table2Column1="ABC";Table2Column2)))

Categories:
  • MVP-Phipps Profile Picture
    3,526 Super User 2024 Season 1 on at

    Please try this:

    ClearCollect(
     myCollection,
     AddColumns(
     Table1,
     "NewColumn",
     LookUp(Table2, Table2Column1 = "ABC", Table2Column2)
     )
    )


    Your issue is with ; rather than ,

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • 123valentin Profile Picture
    4 on at

    In Germany ; is used instead of , (and for multiple commands double ;; is used) 

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @123valentin ,

     

    Could you please tell me provide me with the error message?

    I tried to reproduce your problem (sorry I used comma instead of semicolon for regional reasons).

    1.I created two collections named testA and testB.

    vliweimsft_0-1658310846536.jpegvliweimsft_1-1658310859370.jpeg

    2.I created new collection based on the formula you gave.

    vliweimsft_2-1658310883310.jpeg

     

    Best Regards,

    Levi

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard