Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Collection Within Collection based on pkey

(0) ShareShare
ReportReport
Posted on by 8

Hey Yall

 

Im struggling with a need.

 

i've one table like this

 

idProcessdescription
1process number 1this is process number 1
2process number 2this is process number 2
3process number 3this is process number 3
4process number 4this is process number 4

 

i've a secont table like this

 

id ProcessProcesssteps
1process number 1this is the first step
1process number 1this is the second step
1process number 1this is the third step
1process number 1this is the fourth step
1process number 1this is the ... Step
2process number 2this is the first step
2process number 2step is number 2
2process number 2this is the step third
2process number 2fourth step

 

the goal is join tables where the column steps become a collection within the first collection, like this

 

idProcessdescriptionSteps
1process number 1this is process number 1collection of table 2 with all the steps of the process based on Id Process
2process number 2this is process number 2collection with all the steps of the process based on Id Process
3process number 3this is process number 3if no steps, then blank
4process number 4this is process number 4if no steps, then blank

 

Any advice?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Collection Within Collection based on pkey

    Hi @Mattzinq

    Try the following formula:

    AddColumns(Table1,"steps",LookUp(GroupBy(Table2,"idProcess","IdG"),idProcess=id).IdG)

    vqiaqimsft_0-1693966642654.png

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 59 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard