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 / Creating Nested Collec...
Power Apps
Answered

Creating Nested Collection

(0) ShareShare
ReportReport
Posted on by 34

I have a collection Collection_JC_Link that has  a job_id and  a contract_id column.  There can be multiple contracts per job.

 

I want to create a collection that lists distinct job_id and then a nested collection for each filled with contract_ids that are linked to them. 

 

This should be easy but i'm having writer's block. 

 

Thanks,

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @cpolito 

    Firstly, they would not be "collections", you are referring to tables.

     

    You are looking for a table that has a single column of job_id another columns with the related contracts.

     

    If this is coming from one datasource, then the GroupBy function would provide this table for you.

     

    If from multiple datasources, then ForAll (a table creating function) will provide a table like that.  Similarly, the AddColumns to the primary source would add columns with that additional table.

     

    If the above doesn't jar the thought for you, can provide more details on your source(s) of data?

     

    I hope this is helpful for you.

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard