Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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