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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,318)