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

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
    Microsoft Employee 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

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard