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.
Many thanks for your help in advance 🙂
Solved! Go to Solution.
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
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! 🙂