Hi everyone.
I am developing a PowerApps that does inventory management for products with LOT and EXPIRATION.
Currently I am stuck on an issue for displaying a live count of how many of a certain product we have.
In my Gallery that is linked with my table:
Sum(Filter(InventoryReceived,LotId=ThisItem.LotId),QuantityRecieved)
works like
Sum(Filter(Table,Column=ThisItem.Column),sum_this_column_if_match)
The issue is that that formula only gives me the SUM if the LOT matches the current item on the gallery. I would like it to match both LOT + EXPIRATION in the case of the possibility of receiving same LOT different EXP products.
I have tried adding the additional condition in the Filter formula, but it doesn't work since EXP column is a date? or something like that.
Sum(Filter(InventoryReceived, LotId=ThisItem.LotId, Expiration=ThisItem.Expiration),QuantityRecieved)
does not work and neither does the SUM+FILTER for expiration by itself
Sum(Filter(InventoryReceived, Expiration=ThisItem.Expiration),QuantityRecieved)
Delegation warning. May not work on large sets.
(my table only has 5 rows)
How can I get my total counts with both filters?
Here is a sample table
InventoryReceived
| id | name | test | LotId | Expiration | QuantityReceived |
| 1 | BOB | Flu A Test | SNIR-244 | 1/1/2020 | 10 |
| 2 | BOB | Flu A Test | UFFS-200 | 5/6/2023 | 5 |
| 3 | BOB | Flu A Test | SNIR-244 | 9/9/1999 | 6 |
| 4 | BOB | Flu A Test | SNIR-244 | 1/1/2020 | 20 |