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.
Something wrong. SUM StockQTY rising up in every row.
Check if full accumulation is off in chart properties.
try this
aggr(Distinct sum(if(InventId=ProductId,(StockQTY))),InventId)
or
aggr(Distinct sum(if(InventId=ProductId,(StockQTY))),InventId,ProductId)
"No accumulation" helps, do not rising up. But still sum of StockQTY is wrong:
Which expression are you using?
aggr(Distinct sum(if(InventId=ProductId,(StockQTY))),ProductId)
If possible share your app..