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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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.

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