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 / Collecting 2 collectio...
Power Apps
Unanswered

Collecting 2 collection issue.

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm writing this below code and form these 2 same collections, I'm unable to get different rows. 

When the 1st condition is getting correct then other condition getting failed and giving empty collection.

and while writing ClearCollect(colItemsSystemGroups,colItemsSystemGroups2,colItemsSystemGroups1) code, I'm getting error like:  There is a dependency on colItemsSystemGroups2 between 2 different formula in the concurrent function. one formula is changing while other is reading it. 

I'm collecting in 2 different collections then why getting this error??

 

ClearCollect(
colItemsSystemGroups1,
Filter(
colOriginalSystemGroups,
CountRows(
Filter(
Selected_Business_Area2,
ID = colOriginalSystemGroups[@MatDivisionId],
//If(Level = 4,
ThisItem.Level = 4 && Level >= 3 && CountRows(Filter(Selected_Business_Area2,ID = ThisItem.ID)) >= 2 //)
)
) > 0
)
),
ClearCollect(
colItemsSystemGroups2,
Filter(
colOriginalSystemGroups,
CountRows(
Filter(
Selected_Business_Area2,
ID = colOriginalSystemGroups[@MatDivisionId],
//If(ThisItem.Level = 2,
ThisItem.Level = 2 &&
CountRows(Filter(Selected_Business_Area2,ID = ThisItem.ID)) >= 2 //)
)
) > 0
)
),


ClearCollect(colItemsSystemGroups,colItemsSystemGroups2,colItemsSystemGroups1)

 

Thanks

Categories:

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard