Even though I just started learning how to build Powerapps, I have made an pretty good app for registering inventory.
Now I don't like to ask for help every time, I always try to search for solutions myself if I'am stuck at something. This works pretty good, but I can't find an solution for this thing (I don't know what to search for exactly though):
I have an dropdown list where the user can choose an item and than an input box to fill in the amount for that item.
All items are added to an collection called 'InventoryList'. That gallery is directly shown besides the input part.
The current situation is that, if an item already exists in the gallery, the new amount is put in as an seperate item.
I like to have it so that it add up the amount of the item instead of putting everything in as seperate items, even when that same item is already in the gallery.
So basicly, in the current situation: If for example Item1 is already in the gallery, and I add that item again, but whith another amount, I end up with having Item1 two times in the gallery, with two different amounts.
I like to have: If I add Item1 to the gallery, but it already exists, it only add up the amount of that item.
What I have now for the default on the submit button is:
Collect (InventoryList; {Item: I_Item.Selected.Title; Amount: I_Amount.Text; Photo: Filter_dropdown_photo.SelectedText.Value});;
And than I have an gallery showing the items in StockList.
As it is, I'm not writing the records storage location, I just make an collection and than the user can have it send by email at the end of the day, by cliking another button.