Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
md_qlikview
Creator II
Creator II

Set Analysis Help

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

4 Replies
Gysbert_Wassenaar

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.


talk is cheap, supply exceeds demand
jonathandienst
Partner - Champion III
Partner - Champion III

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.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
md_qlikview
Creator II
Creator II
Author

thanks for you reply....i could not get back to my post. But it worked the same way that you have mentioned

thanks much

cotiso_hanganu
Partner - Creator III
Partner - Creator III

you should mark the issue as answered !