cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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 @Anonymous ,

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,643)