Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik Community, i need some help here.
Sheet A:
Sheet B:
In layman terms, i want to:
If B.Product = A.Product, Average ( Aggr ( (Hours / Quantity), B.Product))
Result = 3.74
If B.product is contain in A.Product, find the average of aggr of (hour / quantity) by B.product.
Ie. Product A, C, D, F
Thanks, Alvin
Hi
Try like below
LOAD *, 1 as FlagA Inline[Product, EfficiencyA, 3.4C, 5.1D,4.1F,2.2];
Load * Inline[Product, Hours, QuantityA, 31, 10A, 33, 9B, 51, 10C, 21, 4C, 22, 4D, 8, 2E, 71, 5E, 75, 6F, 66, 30F, 63, 28];
o/p:
Exp: Avg ({<FlagA = {1}>} Aggr ( Sum({<FlagA={1}>}Hours) / Sum({<FlagA={1}>}Quantity), Product))