Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

silambarasan130
Contributor II

how can i use 2 variables in a single button in qlik sense ??

I want to show top 5 value defalut. when i'm pressing the button it has to show the next top 6-15 values. for that i have two variables. how can i use that in qliksense.

8 Replies
Vegar
Valued Contributor

Re: how can i use 2 variables in a single button in qlik sense ??

There are no buttons with actions available straight out of the box in Qlik Sense. To solve your problem you'll probably need to find (or create your own) an extension.

I believe that swr open source project could fit your needs.

GitHub - stefanwalther/sense-navigation: Sheet Navigation + Actions for Qlik Sense.

Scroll down to the the part about Actions you'll see it supports two action for each button.

reddys310
Honored Contributor II

Re: how can i use 2 variables in a single button in qlik sense ??

Hi Silanbarasan,

You will have to go with an extension to achieve this. I have built an extension : GitHub - reddys10/Input-box-which-updates-a-variable-in-QlikSense

You can use this extension or replicate this functionality in a different one.

Thanks,

Sangram Reddy

brunobertels
Valued Contributor

Re: how can i use 2 variables in a single button in qlik sense ??

Hi

download qsvariable from Qlikbranch Site

using qsvariable create a variable

named it vChoice

Add Button 1

label = Top 5

value = 1

Add Button 2

label 'Top 6-15'

value = 2

I understand you have already 2 variables for mesure Top 5 and Mesure Top 6-15, called it for example vTop5 and vTopOther

then in your Bar chart or table add this mesure

if(vChoice=1,$(vTop5), if(vChoice=2,$(vTopOther)))

hope it helps

Bruno

silambarasan130
Contributor II

Re: how can i use 2 variables in a single button in qlik sense ??

This i can do Mr bruno bertels. I'm asking is that any possible to use both in a single button.

Thanks.

brunobertels
Valued Contributor

Re: how can i use 2 variables in a single button in qlik sense ??

Hi

not possible with qsvariable extension.

But try this one , witch is a switch button allowing True/False Statement

http://branch.qlik.com/#/project/56728f52d1e497241ae69860

bruno

reddys310
Honored Contributor II

Re: how can i use 2 variables in a single button in qlik sense ??

HI,

Building an extension is the best way to go with this requirement.

Thanks,

Sangram,

silambarasan130
Contributor II

Re: how can i use 2 variables in a single button in qlik sense ??

Yaa that's better way. Thank you..

reddys310
Honored Contributor II

Re: how can i use 2 variables in a single button in qlik sense ??

Always Welcome!

Community Browser