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: 
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

to get what you want i've used 2 variables.

1. vMonths to set the month parameter. default 3

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

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

4. Created 3 buttons labelled to each parameter and then set it to change vMonths accordingly either 3,6,12.

5.  Applied master measure into my charts.

See below

ogster1974_0-1674052852820.png

 

 

 

Dolly123
Creator II
Creator II
Author

I dont have button because older version of Qliksense i have to work with custom objects variable

ogster1974
Partner - Master II
Partner - Master II

If you're referring to the QSVariable extension then you can make it look like a button and set a variable value in it just like the current button.

 

Dolly123
Creator II
Creator II
Author

Point no 1 by default 3 

what does it mean 

I didn’t get this 

ogster1974
Partner - Master II
Partner - Master II

It means whilst I created the variable vMonths I set its value to 3.

Dolly123
Creator II
Creator II
Author

Why 3 we are setting the value for 3 buttons to 3 ?

ogster1974
Partner - Master II
Partner - Master II

You aren't   the buttons would set the variable to 3, 6 and 12 respectively.

Dolly123
Creator II
Creator II
Author

could u please send me your linkdn profile link 

Dolly123
Creator II
Creator II
Author

Qlikhub_0-1674057532189.png

i am creating variable set value 3