Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Show maximum value based on another category column

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard