Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis with variable not working

Hi

In the document attached i'm trying to calculate warehouse turnover. I have multiple reminders in table [Likuciai] - one for each quarter.

Also i have stock movement in table [atsargos] (not used yet, just mentioned for the big picture).

User can select multiple quarters, qlikview should caculate remainder at the start of selected interval (not include other selected quarters).

I definied variable vMinQ as min([Metai ketvirtis]). [Metai ketvirtis] stands for the combination of Year + quarter.

Then i wrote set analysis expresion for remainder calculation: Sum( {$<[Metai ketvirtis]={$(=vMinQ)}>} [Likutis.Suma]).

Result = empty set.

Could anyone help me with that?

Thank you.

4 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Little = sign does that

http://community.qlik.com/blogs/qlikviewdesignblog/2014/11/24/the-equal-sign

Have a look at attached application

Regards

ASHFAQ

sushil353
Master II
Master II

Hi,

Try below expression:

sum({<[Metai ketvirtis] = {'$(vMinQ)'}>} [Likutis.Suma])

HTH

Sushil

Anonymous
Not applicable
Author

Thank you, Ashfaq Mohammed!

Adding = sign to the variable definition did help. Expresion was ok

ashfaq_haseeb
Champion III
Champion III

Hi,

If it answer, Can you close thread by marking it as appropriate answer.

Regards

ASHFAQ