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 / Sort powerapos gallary...
Power Apps
Unanswered

Sort powerapos gallary by calculation field

(0) ShareShare
ReportReport
Posted on by 4

I appoligies it this appears twice. I was having log in issues.

I have built an app for sports league. I have two excel tables. First contains user entered game results. Ie. Winning team, scores, etc. The second has team names and teirs since they play across teirs. 

 

In my galary of teirs I have added  field with countif winning team in first table equals team name in second table. This gives me total of games won.. I now want to sort by this value to have team with most wins at top. But I can't get it to work.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Sprotest ,

    What is the Items of your gallery and where have you put your CountIf Code (and what is it)

  • Sprotest Profile Picture
    4 on at

    Hi Warren.

    The two items in my form from my schooling table is school and teir.  I have manually added wins, losses, game's played. In each of these I did different calculations. 

    I placed the formula. In the text option. The formula is as follows

    CountIf(RawData,Winning_x0020_Team= ThisItem.School && Who_x0020_played_x0020_this_x0020_game_x003f_="Boys"

  • WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @Sprotest ,

    I need the Items code of your gallery.

  • Sprotest Profile Picture
    4 on at

    Currently I am back to

    Sort(SchoolsInfo,Teir, Ascending)

     

    I tried AddColumns(SchoolsInfo, "GamesWon", 

    Then my countif. But that did not work. 

     

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard