cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ethan_R
Responsive Resident
Responsive Resident

Extract ID from a table inside a Row of Collection

Hi All,

I have a collection which contains a table. That table has few records and I would like to get its ID.

 

What i want to extract.

If I have 2 records in collection. Each of them has 2 tables which has additional 3 records.

I want to merge IDs of those records and put into another collection.

So 2 x 3 = 6 Record IDs in total.

 

Ethan_R_0-1620797962555.png

 

Plz guide.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Ethan_R ,

 

Is this what you want?

1\ This is my original collection 'Col'.

v-xiaochen-msft_0-1620802204138.png

v-xiaochen-msft_1-1620802216445.png

v-xiaochen-msft_2-1620802228625.png

 

2\ Add a button control and set its onselect property to:

ClearCollect(Col2,Ungroup(Col,"Notes"))

 

3\ The result is as follows:

v-xiaochen-msft_3-1620802289101.png

 

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @Ethan_R ,

 

Is this what you want?

1\ This is my original collection 'Col'.

v-xiaochen-msft_0-1620802204138.png

v-xiaochen-msft_1-1620802216445.png

v-xiaochen-msft_2-1620802228625.png

 

2\ Add a button control and set its onselect property to:

ClearCollect(Col2,Ungroup(Col,"Notes"))

 

3\ The result is as follows:

v-xiaochen-msft_3-1620802289101.png

 

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

View solution in original post

Thanks a lot @v-xiaochen-msft  !!!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,163)