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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Dolly123
Creator II
Creator II

Custom Object

I want 3 buttons from custom object like last 3 month ,last 6 month , last 12 months

I was created the variable 1 

how to implement 

bar chart and piechart also change when we will click the 3 month it will chges accordingly , 6 month chart should chg 

any one know ?

49 Replies
ogster1974
Partner - Master II
Partner - Master II

Have you created the 2nd variable that uses this parameter to go back the required number of months.  Obviously the date name may be different.

Dolly123
Creator II
Creator II
Author

why 2nd variable what i have to write 2nd variable

ogster1974
Partner - Master II
Partner - Master II

Have you done the followinng steps I asked you to?

2. create vLastXMonths variable to perform your measure calculation. Set definition to  =AddMonths(Max([Order Date]),-$(vMonths))

3. Created a master measure sum({<[Order Date]={'>$(vLastXMonths)'}>} Sales)

Note the date used and measure value are mine and should be replaced with your own.

Dolly123
Creator II
Creator II
Author

yes done

Qlikhub_0-1674059338819.png

 

Qlikhub_1-1674059362424.png

 

Dolly123
Creator II
Creator II
Author

how to add last 3 month , last 6 month , last 12 month set analysis

ogster1974
Partner - Master II
Partner - Master II

you should be able to use this measure in your charts going forward now.

Dolly123
Creator II
Creator II
Author

3 master measurres indivudials

like last 3 month master measure

like last 6 month master measure

like last 12 month master measure

ogster1974
Partner - Master II
Partner - Master II

Its already in there the variables will alter your set analysis accordingly when you click the button and the variable vMonths is set to either 3,6,12 respectively.

 

Dolly123
Creator II
Creator II
Author

but i want set analysis 

last 3,6,12 months where to add

Dolly123
Creator II
Creator II
Author

according to click 6 month so bar chart and line chart should change the accorindg button = rolling month