Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I am having a scenario where i have written an expression
sum(Aggr(Sum({<Producttype=>} Sales),Region))
Since producttype has nothing to do with my calculation, but due to some other requirement i
have to use it on the front end. Hence i have nullified it in this expression.
Now my question is when i select Producttype on the front end, Region field becomes grey i.e. zero or
no value, since there is no linking between them and ultimately my calculation for sales for above expression also gives
me zero which is wrong. So is there any way so that i can accomplish this using set analysis.
Thanks In Advance
Try sum({<Producttype=>} Aggr(Sum({<Producttype=>} Sales),Region)).
If that doesn't do what you want please post a qlikview document that demonstrates the problem.
I think the problem is that because the selection results in no values for Region, there is nothing for the aggr() dimension to iterate over. But why do you need the aggregate? =Sum({<Producttype=>} Sales) should suffice.
thanks for you reply....i could not get back to my post. But it worked the same way that you have mentioned
thanks much
you should mark the issue as answered !