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 / Using distinct or uniq...
Power Apps
Unanswered

Using distinct or unique in collection

(1) ShareShare
ReportReport
Posted on by 421

Hi everyone, good morning.  I am using a collection to build an order sheet for parts in our warehouse.  On my main parts gallery, on select in the gallery is Collect(colNSOGameBuy,ThisItem) and works properly.  My gallery with colNSOGameBuy as the items displays each record perfectly.  What I would like to do instead is show a number value in the gallery next to the part name instead of a record for each part collected.

 

So if they press Air Filter 3 times, I want to see 

 

Air Filter            3

 

Where the 3 is number of "Air Filter" in the collection but air filter is listed only once.

 

Can someone point me in the right direction please?

 

Thank you so much!

 

Chris

Categories:
  • ckserra33 Profile Picture
    421 on at

    Hi @Ali_SZ_365 thank you for the quick reply.  The code produces 3 rows and counts the 3 correctly.  I am trying to show only 1 row, with the number 3. 

    ckserra33_0-1699628447460.png

     

  • ckserra33 Profile Picture
    421 on at

    Hi @Ali_SZ_365 

     

    Should I put ClearCollect(colUniqueParts, Distinct(colNSOGameBuy, PartName)) onSelect on the button inside the main gallery instead of Collect(colNSOGameBuy,ThisItem.GameName)?

     

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard