8 Replies Latest reply: Oct 28, 2012 3:01 PM by Roberto Postma RSS

    Single button which toggles between two combinations of multiple field selections (and changes colour as it does so)?

    M Paeper

      Been wrestling with this one for a while now and not coming right. Please can someone help me resolve. In QV11SR1

       

      I wish to have a single button which toggles between two combinations of multiple field selections (and changes colour as it does so)

       

      The change colour part works fine but not the select field

       

      I have tried umpteen combinations of things, as per http://community.qlik.com/thread/11809 and http://community.qlik.com/message/65538 etc

       

      Please see attached example QVW with my code.

       

      I have a field MarketingGender and I want the button to toggle between the selections of (M|B) and (L|G).

       

      I do not want to select ALL fields or select (M|B|L|G) at once. Somehow I need to clear the selected field between toggles but that doesnt work for me either.

       

      I just want to have the following 2 selection states when I toggle the button:

       

      t1.png

      or

      t2.png

      How can I achieve this. Thanks