cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Dynamically add (n) number of columns in Data Tables / Collection

I have a Power Apps which take a few values from the user and calculates a numeric value(x) from that.

 

Now I have a data table which is connected to a crm entity like below:

 

Product Name  |  Column1  |  Column 2  |  Column 3  |  and so on...

Name 1                Value 1    |  Value 2     |   Value 3     |  and so on..

Name 2                Value 1    |  Value 2     |   Value 3     |  and so on..

Name 3                Value 1    |  Value 2     |   Value 3     |  and so on..

 

The number of columns here can be x and in each column the value is a calculated column from the same CRM Entity.

 

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Dynamically add (n) number of columns in Data Tables / Collection

Hi @dsshetty ,

Could you please share a bit more about your scenario?

Do you want to display the calculated column values from your CRM Entity within a Data Table?

Further, do you want to add columns in a Data Table based on the calculated columns in your CRM Entity dynamically?

 

If you want to add columns in a Data Table based on the calculated columns in your CRM Entity dynamically, I afraid that there is no way to achieve your needs.

 

Currently, within PowerApps, there is no way to to add columns into a Data Table dynamically. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

More details about adding new column into a Collection, I think the AddColumns function could achieve your needs.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,662)