web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

Running Total for PowerApps Gallery

(0) ShareShare
ReportReport
Posted on by 101
Hello!
 
I need a formula that can provide a running total inside of a gallery.
 
Gallery is currently sorted by Month/Year (i.e. 1/2024, 2/2024, 3/2024, 4/2024, etc..)
 
Labels:
 
1. mm/yyyy text field
 
2. Savings ($$) field = 
Sum(Filter('Contracts Lists', Text(Start, "mm/yyyy") = Title1.Text),Savings)
 
3. Running Total of Savings field as the months progress throughout the year.
I have the same question (0)
  • Suggested answer
    ronaldwalcott Profile Picture
    3,827 Super User 2025 Season 2 on at
    Running Total for PowerApps Gallery
  • MC-17011220-0 Profile Picture
    2 on at
    Running Total for PowerApps Gallery
    Set Up the Gallery
    Ensure your gallery is sorted by the Month/Year field. You can do this by setting the Items property of the gallery to:
     
    SortByColumns('Contracts Lists', "Start", Ascending)

    mm/yyyy Text Field
    Add a label inside the gallery to display the Month/Year:
     
    Text(ThisItem.Start, "mm/yyyy")

    Savings ($$) Field
    Add a label inside the gallery to display the savings for each month:
     
    Sum(Filter('Contracts Lists', Text(Start, "mm/yyyy") = ThisItem.Start), Savings)

    Running Total of Savings Field
    Add a label inside the gallery to display the running total. Set the Text property of this label to:

    Sum(Filter('Contracts Lists',
        DateValue(Text(Start, "mm/yyyy")) <= DateValue(Text(ThisItem.Start, "mm/yyyy"))),
        Savings)
     
    This formula works as follows:
    • Filter('Contracts Lists', DateValue(Text(Start, "mm/yyyy")) <= DateValue(Text(ThisItem.Start, "mm/yyyy"))): Filters the contracts list to include all records up to and including the current month/year.
    • Sum(..., Savings): Sums the Savings field for the filtered records.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard