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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Button to include more selections

Hi!

Is it possible to create a button that ADDS one field value to the selections the user has made?

For example I have a field called Year and the user has selected 2012, 2013 and 2014. I want to have a button that when pressed 2015 will be added to the selections without deleting already existing ones. And then vise versa deletes ONLY 2015 when pressed again.

Thanks for your help!

Regards,

Heidi 

12 Replies
avinashelite

Hi,

Did you try with the attachment

timanshu
Creator III
Creator III

Hi Heidi,

PFA Qvw and screenshot.

It works perfectly.

Not applicable
Author

Hi Timanshu!

It works great with the year numbers! But when there is spaces in the string it doesn't. I know that I need to add "-marks to make the string like ("xxx"|"yyy yyy"|"zz zz z") But where in the action: =replace(replace(Replace('(' & if(index(vYearSel,'Market Pulp')>0,Replace(vYearSel,'Market Pulp',''),vYearSel &'|Market Pulp') & ')','(|','('),'|)',')'),'||','|')  ?

I added your qvw with values that have spaces.