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 / FirstN Sort by Sum of ...
Power Apps
Unanswered

FirstN Sort by Sum of Column1 And Or Column2

(0) ShareShare
ReportReport
Posted on by 1,937 Moderator

Hi,

 

Trying to apply sort function to sort/filter gallery where only showing first 10 rows.

Column1 and Column2 have numbers and all i want to display is first 10 lines where numbers in total (column1+column2) or column1, column2 is going from biggest to smallest..

 

FirstN(Source,10)

All it does is shows me the first 10 lines and that's it. 

Tried many different methods.

Latest how far I've got:

 

FirstN(Sort(Source, Or(And(Column1,Column2),Column1,Column2), Ascending),10)

 

I would probably need to collect a new collection where data is filtered to get first 10 rows of biggest numbers from both columns.

Just don't know how to do this..

 

If somebody can give me an option then thanks.

 

Categories:
I have the same question (0)

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard