cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HBaher
New Member

Sum(Filter()) doesn't update Sharepoint column

I'm building a sharepoint list where I have a column called WaiveredAmount and another column called budget.


Simply I want to update the budget with the sum of the values in "Amount" for the current month. 

I have this Formula in powerapps to calculate the budget:

With(
{temp:Filter('BO-Test',Month(Now())=Month(DataCardValue5))},
Sum(temp,WaiveredAmount)
)

 

I set the default property of the budget field to the above formula but it doesn't update the column in sharepoint. It however, updates the field when you open the list item like the screenshot below. 

 

HBaher_0-1670146932484.png

 

Many thanks for your help in advance 🙂

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @HBaher ,

When filtering a list you need to use the field in the list, not the value of a control, even if it contains the value

With(
   {
      temp:
      Filter(
         'BO-Test',
         Month(YourDateFieldName) = Month(Now())
      )
   },
   Sum(
      temp,
      WaiveredAmount
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @HBaher ,

When filtering a list you need to use the field in the list, not the value of a control, even if it contains the value

With(
   {
      temp:
      Filter(
         'BO-Test',
         Month(YourDateFieldName) = Month(Now())
      )
   },
   Sum(
      temp,
      WaiveredAmount
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Wow! I would've never thought about that on my own. 😅

Many thanks for your prompt help! 🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,179)