Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

paulyeo11
Valued Contributor II

How to make 1 display last year 2016 ? Now is 2017

Hi All


I have create a var = vYn1 = 1 , and i need it display 2016 , may i know how to do it ?


Now when i click 2016 , it display 1


Now when i click 2015 , it display 2



How to make 1 display 2016 and 2 display 2015 ?


Paul Yeo

1 Solution

Accepted Solutions
prma7799
Honored Contributor III

Re: How to make 1 display last year 2016 ? Now is 2017

Like This???

6 Replies
paulyeo11
Valued Contributor II

Re: How to make 1 display last year 2016 ? Now is 2017

my QVW

prma7799
Honored Contributor III

Re: How to make 1 display last year 2016 ? Now is 2017

You want to show respective year when you select above button ?

paulyeo11
Valued Contributor II

Re: How to make 1 display last year 2016 ? Now is 2017

Hi PM

Yes  , when i click on right button , i want it to show 2016.

prma7799
Honored Contributor III

Re: How to make 1 display last year 2016 ? Now is 2017

Like This???

paulyeo11
Valued Contributor II

Re: How to make 1 display last year 2016 ? Now is 2017

Hi P M

your QVW attachment work fine.

But when i copy and paste the syntax to my production copy , it does not work.

Paul

prma7799
Honored Contributor III

Re: How to make 1 display last year 2016 ? Now is 2017

You can do changes in your own file in every button you have change "vYn1" value...

Community Browser