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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cumulative of column i...
Power Apps
Unanswered

Cumulative of column in another column of same table

(0) ShareShare
ReportReport
Posted on by

Hi, 

I am new to PowerApps world, I am facing an issue in getting the cumulative values in another column, not able to get the formulae and Rollup is also not working. Need your help. Thanks in advance

Sl. NoNameScoreExpected result
1A1036.5
2B936.5
3C436.5
4D6.536.5
5E736.5
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @dev77 - based on your table, you're not trying to do a cumulative sum of the Score column, but simply a repeated sum of the whole column. Is that right?

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @dev77 ,

     

    I assume there is a table:

    ClearCollect(
     NewCollection,
     {'SI.No':1,Name:"A",Score:10,'Expected result':0},
     {'SI.No':2,Name:"B",Score:9,'Expected result':0},
     {'SI.No':3,Name:"C",Score:4,'Expected result':0},
     {'SI.No':4,Name:"D",Score:6.5,'Expected result':0},
     {'SI.No':5,Name:"E",Score:7,'Expected result':0}
     )

    Please try this formula in canvas app:

    ForAll(
     TampTable As TableA,
     Patch(
     NewCollection,
     LookUp(NewCollection,'SI.No'=TableA.'SI.No'),
     {'Expected result':Sum(Filter(TampTable,'SI.No'<=TableA.'SI.No'),Score)})
    )
    )

    vbofengmsft_0-1718934802731.png

     

    Best Regards,
    Bof

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard