Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

cancel
Showing results for 
Search instead for 
Did you mean: 
cchadda91
Contributor III
Contributor III

Defaut selection on button

PFA qvf file ...qliksense

So when I switch from one button to other (Primary button) , I want there should be default select on other set of button (Secondary buttons) which is currently not happening.

1 Solution

Accepted Solutions
ishanbhatt
Creator II
Creator II

Hi Chitral,

Please find the attached app.

I've used directly field name in QsVariable extension and used into the bar chart.

Dimension Variable Setting:

Dimension.PNG

Measure Variable Setting:

Measure.PNG

Bar Chart Dimension:

Dimension1.PNG

Measure1.PNG

Please note that I've changed One of Variable name Measure_1 to Dimension.

Hope this solve your problem. !

Ishan

View solution in original post

30 Replies
mov
Employee
Employee

The expressions for your secondary buttons values contain /* - I'm sure that you use it to comment out the rest of the string.  It doesn't work this way here.  I removed /* and all after it, and it works fine.

Edit:

You cam make them simpler

Short     =vMeasure_1

Long      =vMeasure_1+2

cchadda91
Contributor III
Contributor III
Author

Hi Michael,

Thanks first of all.

I did try removing this /* ..*/  from Short/ Long variables part still it dose not work.

could you attach the app here .

Thanks,Capture.PNG

mov
Employee
Employee

The attached is using the expressions without "if"

mov
Employee
Employee

Adding version with "if" (I prefer without)

cchadda91
Contributor III
Contributor III
Author

Michael,

I cannot find the attachments, could you please attach both of them again or share @cchadda91@gmail.com

cchadda91
Contributor III
Contributor III
Author

got it jus checking.

cchadda91
Contributor III
Contributor III
Author

It works , but the active button selection on the secondary button (Short/ Long) dose not appear as green for the active selection.

cchadda91
Contributor III
Contributor III
Author

This also works but same thing is happening the active button selection (Short/ Long) dose not appear green.

mov
Employee
Employee

I don't see any color properties in the extension I have - apparently we have different extensions.  I can only guess that the reason is similar.