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: 
Loeckli
Contributor III
Contributor III

Variable Input Switch between 6 Months

Hello 

 

I have a graph, which i visualize over the following SET stament:

Max({<ANIMAL={'TIGER'}>*<STATUS={'A'}>*1<SEX={'FEMALE'}>})

I created in date editor the following variable:

SET vTimechanger = 1 ;

I created an variable input, with a drop down list of to 2 fixed items, with the following strings.

last_6months

=if('$(vTimechanger)'=last_6months', DATE_STARTED<=AddMonths(Max(DATE_STARTED), -6))

everything

 =if('$(vTimechanger)'=everything', DATE_STARTED))

 

But my dropdown list seems not work, if either of them are selected the grap still shows all the date values.

What I'm missing ?

Labels (2)
0 Replies