I am trying to make a leaderboard in PowerApps using a Gallery. The aim is to add up the values of all entries inputted by one user and rank them based on how many "Miles" they have logged.
So far, my gallery Items formula is:
Sort(GroupBy(MilesChallenge, "Title","Miles"), CountRows(Miles), SortOrder.Descending)
Based on watching this video: https://www.youtube.com/watch?v=q42ibovAqZc
*Miles Challenge is my data source
However, instead of CountRows, I want to use Sum.
Within the gallery, to add up all the Miles someone has logged I have the formula:
Sum(Filter(MilesChallenge,Title=ThisItem.Title),Miles) & " Miles"
However when I try to swap CountRows(Miles) with the above formula it doesn't seem to like that and no data is shown, just a delegation warning about it potentially not working for large data sets.
Can anyone help?