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 / Collection AddColumn -...
Power Apps
Answered

Collection AddColumn - Reference another column

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

I am trying to add a new column to a collection I have created.

Below you can see how I create the collection from TextInput1

 

 

ClearCollect(shutter_panels,Split(TextInput1.Text,"T"));
AddColumns(shutter_panels,"qty_panels",Len(Text(Result)));

 

 

 Creating the collection works fine however the add columns is doing nothing and throwing no error.

Test input TextInput1.Text = LTLRTR

 

However I get no additional column counting the length of the string in the first column. Any ideas?

 

Below is the output

 

CollectionCollection

 

Categories:
I have the same question (0)
  • Verified answer
    BradLambie Profile Picture
    32 on at

    Yeah ok, was pretty silly/rushing. AddColumns does not work with collections. I had to hold it as a table then add the column whilst creating the collection.

     

    ClearCollect(shutter_panels,AddColumns(Split(TextInput1.Text,"T"),"qty_panels",Len(Text(Result))));

    Capture.PNGCorrect output

     

    Capture.PNG

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard