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 / How to add a table as ...
Power Apps
Answered

How to add a table as a column of another collection

(0) ShareShare
ReportReport
Posted on by 1,247 Super User 2024 Season 1

Hello All,

 

I have a collection called DFTab that looks something like this

Anonymous_Hippo_0-1658617782680.png

I would like to add this table as a column to another collection. How can this be done so that i have a table within another table

Collection.png

Categories:
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @Anonymous_Hippo 

     

    If you have the additional column in your main table already in place with the correct empty table schema in place, you can simply use UpdateIf to add the nested table into that column. See below:

     

    Step 1 - Use AddColumns to add the column with the empty table schema to match the schema of the collection you plan to add (note if the schema/column names/types in the table you plan to add is inconsistent, this will not work properly - the schema needs to match) - You can see below I have added a table to the new column called UpdateIFTEST and the nested table has three empty fields to match the collection I plan to add here in the next step.

     

    AmDev_1-1658624390530.png

     

    Step 2 - Use UpdateIf to add the nested collection to the UpdateIFTEST column. The first image below shows the contents of the nested table I am adding. Note the schema matches the empty table added above. The second image below shows the updated colTEST1.

    AmDev_2-1658624828790.png 

     

    AmDev_3-1658624941096.png

     

    --------------------------------------------------

     

    If the schema in the table you want to nest may change each time, you can use the following AddColumns to add this Table as follows:

     

    Step 1 - Create an interim version of your main collection excluding the table column (colTEST1 in the Example below)..

    AmDev_0-1658622691805.png

     

    Step 2 - Use AddColumns and add your DFTab collection to the expression element of the syntax ('colFilterOptions' in the following example) - This is then collected by your final main collection (colTEST2 in the below example)

     

    AmDev_0-1658623504894.png

     

    Hope this helps

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Dear @AmDev ,

     

    Thank you for taking the pain to explain both scenarios in such detail with examples. First scenario is perfect for me.

     

    Thanks a ton  🙂

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    No problem - Good luck with the rest of your build!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard