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 / ForAll function in che...
Power Apps
Answered

ForAll function in checking value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I have a collection that stores the ID and status of the document checked from the gallery(removed when unchecked), What I want to do is iterate over the collection if all the status is the same or not.

I'm trying to use this forall function, but it does not seem to work, although I think I'm missing something.

 

Concat(ForAll(selected.status,status in ["Pending Input from Collaborators","New"]),Value & "")

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    To check this, you can use the below expression:
     
    If(CountIf(selected, status in ["Pending Input from Collaborators","New"]) = CountRows(selected), "Action to do if same status", "action to do if status not same")
     
    The highlighted part check if the total number of rows in collection is equal to the number of rows satisfying the condition.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard