<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to toggle a variable value using single button? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-toggle-a-variable-value-using-single-button/m-p/413732#M567384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am encountering a situation where i have to toggle the variable value 0 to 1 and 1to 0 using a single button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a vaiable has initial value 1 then if i bress the button, then the value of same variable become 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i press button again, variable value become 1.. and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we can achieve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out to solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 06:05:37 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2012-11-08T06:05:37Z</dc:date>
    <item>
      <title>How to toggle a variable value using single button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-a-variable-value-using-single-button/m-p/413732#M567384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am encountering a situation where i have to toggle the variable value 0 to 1 and 1to 0 using a single button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a vaiable has initial value 1 then if i bress the button, then the value of same variable become 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i press button again, variable value become 1.. and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How we can achieve this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out to solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 06:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-a-variable-value-using-single-button/m-p/413732#M567384</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2012-11-08T06:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle a variable value using single button?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-toggle-a-variable-value-using-single-button/m-p/413733#M567385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you create a button, just set its action to 'Set Variable'.&lt;/P&gt;&lt;P&gt;select the variable you want to change then for the value, write in an expression like this&lt;/P&gt;&lt;P&gt;=if(&amp;lt;your_variable&amp;gt;=1, 0, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just says that if your variable's current value is 1, it will change to 0 else it will be 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 06:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-toggle-a-variable-value-using-single-button/m-p/413733#M567385</guid>
      <dc:creator />
      <dc:date>2012-11-08T06:12:20Z</dc:date>
    </item>
  </channel>
</rss>

