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 / GroupBy where values m...
Power Apps
Answered

GroupBy where values match

(0) ShareShare
ReportReport
Posted on by 109

I have a SharePoint list with the following structure

 

ProductPartComplete
AAA111Yes
AAA222No
AAA333Yes
BBB444Yes
BBB555Yes
BBB666Yes

 

I'd like to display this in a gallery, grouped where Final is if all Completes for a Product are Yes

 

ProductFinal
AAANo
BBBYes

 

Is this possible? I've tried using GroupBy, but I can keep ending up with 2 Final rows for Product AAA (Final Yes & Final No)

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @bd528 Try this (replace the static data with your SP List). The collection colCompleteGroupFinal will have the desired result.

     

    ClearCollect(colCompleteGroup,
     GroupBy(
     Table({Product:"AAA", Part:"111", Complete:"Yes"},
     {Product:"AAA", Part:"222", Complete:"No"},
     {Product:"AAA", Part:"333", Complete:"Yes"},
     {Product:"BBB", Part:"444", Complete:"Yes"},
     {Product:"BBB", Part:"555", Complete:"Yes"},
     {Product:"BBB", Part:"777", Complete:"Yes"},
     {Product:"CCC", Part:"888", Complete:"No"},
     {Product:"CCC", Part:"999", Complete:"No"}),
     "Product",
     "Complete",
     "CompleteGroup"
     )
    );
    ClearCollect(colCompleteGroupFinal, colCompleteGroup);
    ForAll(colCompleteGroup As _colCompleteGroup, 
     If(CountRows(Filter(colCompleteGroup, Product=_colCompleteGroup.Product))>1,
     RemoveIf(colCompleteGroupFinal, Product=_colCompleteGroup.Product && Complete="Yes")
     )
    )

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard