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 / Show maximum value bas...
Power Apps
Unanswered

Show maximum value based on another category column

(0) ShareShare
ReportReport
Posted on by

Hello PowerApps Community,

I have a similar Dataset as below which I am trying to show in my PowerApp

IDCategoryName

1

Category ASample name 1
2Category ASample name 2
3Category ASample name 3
4Category BSample name 4
5Category BSample name 5
6Category CSample name 6
7Category CSample name 7
8Category CSample name 8
9Category CSample name 9

From the above source table I only want to show each category only once with the highest ID for that category, and also the corresponding name. For example see the below table.

IDCategoryName
3Category ASample name 3
5Category BSample name 5
9Category CSample name 9

 

I appreciate if anyone can help. Thanks in Advance

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @SriKandimalla ,

     

    I did a demo for you.

    1\ This is my list .

    vxiaochenmsft_0-1628818201627.png

     

    2\ Add a gallery control and set its Items property to:

    Filter(ForAll(Distinct(LIST154,Category),First(Sort(Filter(LIST154,Category=Result),ID,Descending))),!IsBlank(ID))

     

    3\ The result is as follows:

    vxiaochenmsft_1-1628818255759.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard