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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nihhalmca
Specialist II
Specialist II

Static Variable

Hi All,

I want to create static variable for max QuaterNum.

I created variable like vCurrentYrQtr = Max(QuaterNum).

However it is working on current selection.

For instance: vCurrentYrQtr is '20151 but if click year as 2014 and quarter as 4 by the time it shows vCurrentYrQtr is '20144'.

My requirement is if i click any year and quarter the variable should show only max QuaterNum like '20151'.

Regards,

Nihhal.

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi,

try with  vCurrentYrQtr =max({1}QuarterNum), where {1} excludes all selections.

BR,

Elena

View solution in original post

2 Replies
Anonymous
Not applicable

Hi,

try with  vCurrentYrQtr =max({1}QuarterNum), where {1} excludes all selections.

BR,

Elena

nihhalmca
Specialist II
Specialist II
Author

Thanks Elena