cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dsshetty
Level: Power Up

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
Community Support Team
Community Support Team

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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 97 members 3,624 guests
Please welcome our newest community members: