Hi guys,
I have created a purchase request application where employees will enter purchase info
the thing is I created a gallery view with collection name colMenu to for emp to enter info
each time the click add line patch function will patch data to the collection
Can someone please help
Hi
I have already added the total price formula to the text input based on currency selected
but what I want is to show the grand total of all rows
as you can see the grand total only shows the first and second rows because the last row was not patched if I click add row then the grand total with show the third row
hey @MarwaAlhajri
can u try this:
Patch(
colMenu,
ThisItem,
{
'Description/Model No': TextInput1_1.Text,
Currency: Dropdown2_1.SelectedText.Value,
Quantity: Value(TextInput2_1.Text),
'Unit Price': Value(TextInput3_3.Text),
'Total Price': Value(TextInput2_1.Text) * Value(TextInput3_3.Text)
}
);
and this in label:
"Grand Total: " & Sum(Gallery1_1.AllItems, 'Total Price')
Let me know if my answer helped solving your issue.
If it did please accept as solution and give it a thumbs up so we can help others in the community.
Greetings
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473