Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Can someone help me with the following issue that I'm having:
We have a list of products, that contain the following data:
%OrigItem, %Item2, Description
1304745, 1304745, TEST PROD A
1304745, 1304913, TEST PROD B
%OrigItem is the original productnumber.
%Item2 is the replacement productnumber for %OrigItem.
In a different table we have the stock (=Stock) + average sales (=AvgSales) for each %Item2 and I would like to show the following in a tablechart:
1304745, 1304745, TEST PROD A, sum(Stock) product 1304745, sum(AvgSales) product 1304745
1304745, 1304913, TEST PROD B, sum(Stock) product 1304913, sum(AvgSales) product 1304745
So for the replacement product B, I still want to show the total sales for product A.
How can this be done using set analyses?
Finally i get what you want!
Here is decision:
if(%Item2<>%OrigItem,
sum({<%Item2=P({1}%OrigItem)>} total<%OrigItem> AvgSales),
sum(AvgSales)
)
and qvw file.