<?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 Re: How to set Button actions on YTD,QTD Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854916#M299676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per @&lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/sunindia"&gt;sunindia&lt;/A&gt;&lt;/STRONG&gt;‌ suggestion, I am attaching a sample qvw and hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create three variables. In my example, I created two in order to demo:&lt;/P&gt;&lt;P&gt;vYTD and vMTD and set them to 0:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92600" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92600_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In your expressions, check "Conditional" and insert your variables accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92601" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92601_Capture2.PNG" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92602" alt="Capture3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/92602_Capture3.PNG" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Then create two buttons and name them YTD and MTD. You will need to assign actions to these button. I first assigned an action that gives the value of 1 to variable vYTD when "YTD" button is clicked.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92603" alt="Capture4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/92603_Capture4.PNG" style="height: 101px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The second action is to change the variable of vMTD to 0 when YTD button is clicked. As a result of this, YTD will appear and MTD will disappear:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92604" alt="Capture5.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/92604_Capture5.PNG" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Follow the same for the other button:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92605" alt="Capture6.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/92605_Capture6.PNG" style="height: 102px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92606" alt="Capture7.PNG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/92606_Capture7.PNG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result of this, when you click on YTD button, YTD will appear and MTD will disappear:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92607" alt="Capture8.PNG" class="image-8 jive-image" src="https://community.qlik.com/legacyfs/online/92607_Capture8.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And vice versa:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92608" alt="Capture9.PNG" class="image-9 jive-image" src="https://community.qlik.com/legacyfs/online/92608_Capture9.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jul 2015 22:33:08 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-07-11T22:33:08Z</dc:date>
    <item>
      <title>How to set Button actions on YTD,QTD Variables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854915#M299675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Exports,&lt;/P&gt;&lt;P&gt;I have Gauge Chart with Sum(Sales) expression.&lt;/P&gt;&lt;P&gt;My Requirement is I am trying to view the data on Gauge chart based on YTD,QTD and MTD.&lt;/P&gt;&lt;P&gt;To achieve this I have created variables for YTD ,QTD and MTD.&lt;/P&gt;&lt;P&gt;I want to use this YTD variable as button so I i click on this button I want to see year to till date data in Gauge object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide your suggestions how we can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2015 21:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854915#M299675</guid>
      <dc:creator>grajmca_sgp123</dc:creator>
      <dc:date>2015-07-11T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Button actions on YTD,QTD Variables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854916#M299676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per @&lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/sunindia"&gt;sunindia&lt;/A&gt;&lt;/STRONG&gt;‌ suggestion, I am attaching a sample qvw and hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create three variables. In my example, I created two in order to demo:&lt;/P&gt;&lt;P&gt;vYTD and vMTD and set them to 0:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92600" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92600_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In your expressions, check "Conditional" and insert your variables accordingly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92601" alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92601_Capture2.PNG" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92602" alt="Capture3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/92602_Capture3.PNG" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Then create two buttons and name them YTD and MTD. You will need to assign actions to these button. I first assigned an action that gives the value of 1 to variable vYTD when "YTD" button is clicked.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92603" alt="Capture4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/92603_Capture4.PNG" style="height: 101px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The second action is to change the variable of vMTD to 0 when YTD button is clicked. As a result of this, YTD will appear and MTD will disappear:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92604" alt="Capture5.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/92604_Capture5.PNG" style="height: 96px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Follow the same for the other button:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92605" alt="Capture6.PNG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/92605_Capture6.PNG" style="height: 102px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92606" alt="Capture7.PNG" class="jive-image image-7" src="https://community.qlik.com/legacyfs/online/92606_Capture7.PNG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result of this, when you click on YTD button, YTD will appear and MTD will disappear:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92607" alt="Capture8.PNG" class="image-8 jive-image" src="https://community.qlik.com/legacyfs/online/92607_Capture8.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And vice versa:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="92608" alt="Capture9.PNG" class="image-9 jive-image" src="https://community.qlik.com/legacyfs/online/92608_Capture9.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2015 22:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854916#M299676</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-11T22:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Button actions on YTD,QTD Variables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854917#M299677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/sinanozdemir"&gt;sinanozdemir&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; I feel it would be a good idea to post your sample with your response, since you made one. Sometimes it makes it easier for people to understand when they have a sample in front of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my personal opinion and you can disagree &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2015 23:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854917#M299677</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-11T23:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Button actions on YTD,QTD Variables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854918#M299678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I totally agree. I just don't have a licensed version on my personal computer and didn't have a sample dataset available at the time of the reply. At work, the security is quite tight that I cannot upload or download anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I am attaching a sample qvw for Rajesh and if you would like to modify it, please do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854918#M299678</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-12T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Button actions on YTD,QTD Variables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854919#M299679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" href="https://community.qlik.com/people/sinanozdemir"&gt;Sinan&lt;/A&gt;‌ for uploading a sample, I am sure Rajesh will agree with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your sample is great and makes perfect senese. I don't think any updates are required, except if &lt;A href="https://community.qlik.com/people/grajesh.sgp"&gt;grajesh.sgp&lt;/A&gt;‌‌is looking for something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2015 16:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-Button-actions-on-YTD-QTD-Variables/m-p/854919#M299679</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-12T16:52:37Z</dc:date>
    </item>
  </channel>
</rss>

