Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have three fields: Units, Period, Customer
I am trying to use Set Analysis to create a set of sum(Units) where Period = 3 and the Current customer is selected (this value is at least one selected).
I need to use the whole available set not just current because the user can change the Period selection. What is the best way to do this? I have tried
sum({1<Customer=, Period ={'3'}>} Units) and many other possibilities but I still can't get it to function properly. Thanks for your help.
sum({$<PeriodID ={'3'}>} SalesUnit)
Edit: Wait, OK, I see the 0 now, when you DO copy in the expression and do the selections you say, THEN it gets 0. It gets 0 because you are overriding the PeriodID, but making a selection in PeriodDesc. Since these fields are, I gather, the same thing, you ALSO need to tell it to ignore PeriodDesc.
sum({<PeriodID ={'3'},PeriodDesc=>} SalesUnit)
Try this
sum({$<PeriodID ={'3'}, PeriodDesc = >} SalesUnit)
i.e. you could either set PeriodDesc to be ignored or you could also set it to LastWeek
The dollar sign is optional. I prefer to not include it since $ is also used in dollar sign expansion and to identify parameters, but I may be in the minority.
Thank you everyone - sorry if I confused anyone. Charlotte.qvw's answer fixed the problem