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 / Sum a SharePoint field...
Power Apps
Answered

Sum a SharePoint field in a collection keeps changing value when choosing an item

(0) ShareShare
ReportReport
Posted on by 160

Hi, All.

 

I have a label that sums and filters by phase all the TCV fields from a collection based on a SharePoint list, but when I open any item in the Gallery, the number changes.  I need a number that only changes if a new item is added or the phase changes not when opening an item.  See my formula below:

 

 

Text(
 Sum(
 Filter(
 collectTCV,
 ( Not("Lost" in BDPhaseDataCardValue.SelectedItems)) && (Not("Abandon/No Bid Cancelled" in BDPhaseDataCardValue.SelectedItems))
 ),
 Value(TCVDataCardValue.Text)
 ),
 "[$-en-US]#,##0.00"
)

 

 

Any help will be much appreciated.

 

Misty 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @GoGorilla 

    Your formula is out of context.  You are referencing a DataCardValue which I am guessing is somehow tied to the selected item of your Gallery.

    Can you explain more about that datacardvalue and where it is?  I would imagine you really want to sum the values that are in the collection, not in a datacardvalue control.

     

    I hope this is helpful for you.

  • GoGorilla Profile Picture
    160 on at

    @RandyHayes  Aha, you are correct.  I want to sum the values in the collection (a SharePoint list) based on the filter.  The datacardvalue is on a form in another screen.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @GoGorilla 

    That should solve your issue once you have the correct collection field there.

  • GoGorilla Profile Picture
    160 on at

    @RandyHayes Sorry, I meant to post my new formula which works:

    "$" & Text(
     Sum(
     Filter(
     collectTCV,
     ( Not("Lost" in BDPhaseDataCardValue.SelectedItems)) && (Not("Abandon/No Bid Cancelled" in BDPhaseDataCardValue.SelectedItems))
     ),
     Value('Total Contract Value')
     ),
     "[$-en-US]#,##0.00"
    )

     Thank you for you help! 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard