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 / Iterate though a colle...
Power Apps
Answered

Iterate though a collection in Powerapps

(0) ShareShare
ReportReport
Posted on by 32

Hi there, 

I have a collection with three words inside of it. 

like so : 

JasonHoffoLeic_0-1680634328663.png

I am trying to query this collection with other rows in Dataverse and i am attempting to use the ForAll Command - like so : 

 

ForAll(CarrierNameA,
  If(
   CountRows(
       Filter( 
       RippleCarriers,
CarrierName = ThisRecord.CarrierName && 'Send to RUM (RippleCarriers)'.Yes
)
) > 0,
Collect (
Triglav,
{Result: "True"}
),
Collect (
Triglav,
{Result: "False"}
)
));

 

And it is working but it is giving me 3 trues in the new collection and not just one. I want it to query each row itself and not give me 3 results. 

 

What can i do to get ForAll to work over the collection but only give me one row on the collection that the ForAll updates ? 

 

I am so stuck. 

 

 

Categories:
  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @JasonHoffoLeic ,

     

    You could try the following formula:

     

    If(CountRows(Filter(
    ForAll(CarrierNameA As Ca,
    !IsEmpty(Filter(RippleCarriers, (CarrierName = Ca.CarrierName)&&'Send to RUM (RippleCarriers).Yes' ))
    ),Value=true)
    ) > 0,
    Collect (Triglav,{Result: "True"}),
    Collect (Triglav,{Result: "False"})
    );

     

    Best Regards,

    Community Support Team _ habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • JasonHoffoLeic Profile Picture
    32 on at

    Yes brilliant, i was missing the 'As' !!! THankyou very much. 

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard