web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display Unique Values ...
Power Apps
Answered

Display Unique Values in Gallery

(0) ShareShare
ReportReport
Posted on by 39

Hello!

I am trying to display the order numbers in the gallery title. I was able to do it using distinct in the Text property.

 

Distinct('Promotion - Order Table', OrderID)

 

However, I also want to access the dates associated with the OrderID and display it as well as the orderID subtitle. If i use distinct, I can only access the OrderIDs. If i use Groupby, i experience the same problem, I can only access the collection name and its values which are the orderIDs. 

 

Please help. 

 

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @marctimothy 

     

    PowerApps can identify distinct records and you can use a combination of ForAll, Distinct and AddColumns function.

    ForAll(
     Distinct(
     AddColumns('Promotion - Order Table', "IDDate",
     {
     OrderID: OrderID,
     DateColumnName: DateColumnName
     }
     )
     , IDDate),
     ThisRecord.Value
    )

     

  • Verified answer
    WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    Hi @marctimothy ,

    Try this

    AddColumns(
     GroupBy(
     'Promotion - Order Table', 
     "OrderID",
     "Data"
     ),
     "OrderDate",
     First(Data).'Order Date'
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • marctimothy Profile Picture
    39 on at

    Hi! Thank you to the both of you! The solutions worked! Been looking for these answers for hours! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard