cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
morall
Microsoft
Microsoft

combining two collections

ClearCollect(
    test1,
    Choices('HM InterviewStatus')
);

 

this turns an option set into a collection:

 

ClearCollect(
    test2,
    ForAll(
        test1,
        CountIf(hm_request_can_id, InterviewStatus = Value)
    )
);

 

this loops through that collection, and counts how many times each value shows up in hm_request_can_id

 

Is there a way to combine these two collections so that its 1 collection with 2 columns: status & count?

11 REPLIES 11

once again, you were spot on. the "1" worked and the updated formula worked.

 

Thank you, this helped me understand the mechanics of working with collections! 

@morall 

Excellent!  Always happy to help.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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,111)