jjsararas
New member
- Joined
- Sep 25, 2019
- Messages
- 12
- Reaction score
- 0
- Points
- 1
- Excel Version(s)
- 2016, 365
Esteemed guru(s),
I have two tables:Inventory and Sales. What I'm trying to produce is a complete list ofStockcodes from Inventory, and then aggregate the Sales.UnitQty and list itbeside each stockcode, even if there are no sales for the stockcode. I thenneed to filter Sales.Date for last 3 months, and I need to filterSales.SalesType = 'S'.
I've created a queryon Inventory, and included the related Sales table as well. If I run:
Table.AggregateTableColumn(#"RemovedOther Columns", "Sales", {{"UnitQty", List.Sum,"Sum of Sales.UnitQty"}})
I get a listresembling what I need, except I'm stuck on how to add my two filter criteria.I'm also not sure if it will preserve the full list of stockcodes -includingthe nulls- once I add those criteria. If not, is there another step to forcethe correct type of join?
I have two tables:Inventory and Sales. What I'm trying to produce is a complete list ofStockcodes from Inventory, and then aggregate the Sales.UnitQty and list itbeside each stockcode, even if there are no sales for the stockcode. I thenneed to filter Sales.Date for last 3 months, and I need to filterSales.SalesType = 'S'.
I've created a queryon Inventory, and included the related Sales table as well. If I run:
Table.AggregateTableColumn(#"RemovedOther Columns", "Sales", {{"UnitQty", List.Sum,"Sum of Sales.UnitQty"}})
I get a listresembling what I need, except I'm stuck on how to add my two filter criteria.I'm also not sure if it will preserve the full list of stockcodes -includingthe nulls- once I add those criteria. If not, is there another step to forcethe correct type of join?