Hi guys,
I've been stuck on this issue for a while now and was hoping someone might be able to help!
I've got two tables, one for Production hours with Employee names etc and another with Production Quantities.
Once users submit all the data, I was then trying to join the two, Grouped by Date and attempting to sum all the quantities from the other table against each Date row so someone can review it at a summarised level.
The offending collection!:

But actually on the other table there's only QTY 200 on the 23/01/2024, not 200 on both dates:

Here is the code used:
ClearCollect(
QuantitiesScreenCollection,
AddColumns(
GroupBy(
Filter(ProductionHours, WorksOrder = DataCardValue15_1.Selected.WorksOrder),
"cr557_productiondate",
"GroupedDate"
),
"SumOfPackingHours",
Sum(
GroupedDate,
PackingHours
),
"SumOfCleaningHours",
Sum(
GroupedDate,
CleaningHours
),
"SumOfSetUpHours",
Sum(
GroupedDate,
SetUpHours
),
"SumOfQuantity",
Sum(
Filter(
ProductionQTIES,
ProductionDate = cr557_productiondate,
WorksOrder = DataCardValue15_1.Selected.WorksOrder
),
QTYProduced
)
)
)
If someone could help, that would be brilliant! Even ChatGPT hasn't worked..