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 columns in Data...
Power Apps
Answered

Adding columns in Data Table using SharePoint List resulted in Invalid argument Type

(0) ShareShare
ReportReport
Posted on by 7,044 Most Valuable Professional

Hello Folks, 

         I have referred many useful posts in this forum but still I couldn't figure out what I am doing wrong to make this formula working.  

 

I have two SharePoint lists where I want to "add Columns" in Data Table as per my Excel Vlookup formula. 

 

List1: BuildingDetails 

 

Building NameUrban/RuralLengthArea (m2)Polymer/Non-Polymer
SutherLandUrban123011300.625Polymer

 

List2: EmulsionDetails

Poly/Non-PolyEmulsion
Polymer0.73
Non-Polymer0.67

 

In my PowerApp: I have added the data table and it refers the following formula: 

 

 

 

AddColumns(BuildingDetails,"LookupTest",LookUp(EmulsionDetails,'Poly/Non-Poly'=BuildingDetails[@'Polymer/Non-Polymer'],Emulsion) 

 

 

 

The above formula is producing `Invalid Argument Type`. 

 

Question 1: Kindly advise what I am doing wrong ? Or is there any other way to achieve this.

 

Question no 2: When referring column name do I need to include the quotes in formula bar for SharePoint list - What is the best way to pick up correct column name  ? 

 

Please help. 

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,232 Most Valuable Professional on at

    Hi @ragavanrajan ,

    Assuming these are both Text (Single line of text) fields, the below should work.

    AddColumns(
     BuildingDetails,
     "LookupTest",
     LookUp(
     EmulsionDetails,
     'Poly/Non-Poly'='Polymer/Non-Polymer',
     ).Emulsion
    )

    Also when you are typing the valid field names should come up underneath.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @WarrenBelz  Thanks for your reply. I am terribly sorry for not mentioning my field details. In the "EmulsionDetails" Table - Poly/Non-Poly field is a Choice field. 

     

     I have many more list which I wanted to do with a same format. I need to reference Choice Fields. Could you please let me know how can we achieve this? Thank you. 

  • Verified answer
    WarrenBelz Profile Picture
    155,232 Most Valuable Professional on at

    Thanks @ragavanrajan ,

    This should work - I assume 'Polymer/Non-Polymer' is a Text field

    AddColumns(
     BuildingDetails,
     "LookupTest",
     LookUp(
     EmulsionDetails,
     'Poly/Non-Poly'.Value='Polymer/Non-Polymer',
     ).Emulsion
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard