Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have two tables without a shared key.
ProductId | SalesQty |
X | 5 |
Y | 2 |
Z | 6 |
InventId | StockQty |
X | 100 |
Y | 50 |
In Pivot I want show sum of SalesQTY and sum of StackQTY. Were ProducId = InventId.
sum({ <ProductId=InventId>} StockQty) is not working.
Try this
=SUM({<ProductId = {$(=InventID)}>}StockQty)
Please share some sample data.
Not working, sums all StockQTY of all InventId
See up I was shared.
Let me check, i thought you are having only one inventID
Could you draw expected output format for below example?
Hi,
try with aggr() and distinct
like aggr(Distinct sum(if(InventId=ProductId,(StockQTY))),dimesionfield)
What does it mean "dimesionfield"?
dimesionfield (simply your Dimension )
Check this
aggr(Distinct sum(if(InventId=ProductId,(StockQTY))),ProductId)