Hi Members,
I have a requirement in Power Apps to sum values in a gallery.
I have two SharePoint lists has:
- Product Details
- ACGH Sales Tracking
'Product Details SharePoint list' has only two columns that have the product name and their cost, as shown below:

The 'ACGH Sales Tracking' SharePoint list has a column called Product [LookUp column from the above list - this allows multiple values] and has another column called 'Numb of the product.'

My Power Apps gallery is connected to the above list [ACGH Sales Tracking.] In the gallery control, I need to display the total cost for each item.
For example, If the customer took a keyboard with 1 product, it should display the price of the keyboard from list 1.
Otherwise, if the user selects two products as [Desktop and Laptop], the text label should give me the sum of the two product price [Desktop price + Laptop price.]
For that, I tried in a Text label's Text property to:
Sum(ForAll(Filter('ACGH Sales Tracking',Product=Concat(ThisItem.Product,Value&","),LookUp('ACGH Product Details',Title=Product,'Product Price'))) * 'Numb of Products')

Can anyone please suggest how I can achieve this? Thanks in advance!