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 / Nested collections to ...
Power Apps
Answered

Nested collections to one table.

(0) ShareShare
ReportReport
Posted on by 7

Hi all,

I have problem to put nasted collection data table2 and table3 into one table1. I would like to get results like shown in table4.

What is important data is not fixed, will change numbers of rows according to planner input.

i would just like to extract the assigned values, include them in one table and repeat the rest corresponding collumns for each.

 

potrek_1-1635788644732.png

 

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @potrek 

     

    To help with this, I have some questions. 

     

    1. Are you trying to get data from all 4 tables into one collection?
    2. What is your Data source?


    Thanks,
    Stalin - Learn To Illuminate

  • potrek Profile Picture
    7 on at

    Hi @StalinPonnusamy ,

    Thank You for Your reply!

     

    1. Not. Table2 and Table3 (nasted tables) are included in Table1  as in schematic attached. I'm trying to get Table4 as a result as shown in picture attached. 

    2.  Data source: Collect(planTasks; Planner.ListTasksV2(id).value); 

    See results below with reference to Table schematic from first post.

    potrek_0-1635805810487.png

     

    The main aim is to create Horrizontal Gallery1 with users assigned to tasks in rows and Perpanticular Gallery 2 included in Gallery1 to list tasks assigned to users in Gallery1.

    It happend that some tasks are without assignments, in some are more than one users assigned.

    all that informations are included in collumn _assignments according to Planner function ListTasksV2 but as nested table.

    Hope it will help to find solution or to find other way to get what i need.

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @potrek :

    I've made a test for your reference:

    1\My Source:

    ClearCollect(
     Table1,
     {Column1:Table(
     {Collumn3:"Text2a",Column4:"Text"},
     {Collumn3:"Text2b",Column4:"Text"}
     ),
     Column2:"TextRow1"
     },
     {Column1:Table(
     {Collumn3:"Text3a",Column4:"Text"},
     {Collumn3:"Text3b",Column4:"Text"},
     {Collumn3:"Text3C",Column4:"Text"}
     ),
     Column2:"TextRow2"
     }
    )

    vbofengmsft_1-1635833395779.pngvbofengmsft_2-1635833400910.png

     

     

     2\Please try this code:

    ShowColumns(Ungroup(Table1,"Column1"),"Collumn3","Column2")

    The Result:

    vbofengmsft_0-1635833378327.png

    Best Regards,

    Bof

     

  • potrek Profile Picture
    7 on at

    @v-bofeng-msft 

    Bof... You are great man!

    This is the function I was looking for... Simply but I missed it...  Thank you so much for your help, it has allowed me to move on with my project. 

    I am very grateful!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard