Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
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

Anonymous
Not applicable
Author

The attached is using the expressions without "if"

Anonymous
Not applicable
Author

Adding version with "if" (I prefer without)

Anonymous
Not applicable
Author

Michael,

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

Anonymous
Not applicable
Author

got it jus checking.

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.