<?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: One button to contain 2 values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198085#M386217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&amp;nbsp; I have done this before in other things and didn't think to use the same technique here aswell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 15:17:47 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2016-10-14T15:17:47Z</dc:date>
    <item>
      <title>One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198080#M386212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button which I would like the user to be able to click on, and each time they click on the button the wording would say either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'Compared to Previous FY YTD:' OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'Compared to Previous Month'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have the following expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=If(v_Selected = 1,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Compared to Previous FY YTD:',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(v_Selected = 2,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Compared to Previous Month'))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and 2 actions on the button where set variable = v_Selected = 1 and&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set variable = v_Selected =2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But unfortunately my button isn't working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to stay away from show/hide and the number of objects within my document, so was wondering if anyone could help me obtain this result with just one button object instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198080#M386212</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-10-14T15:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198081#M386213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are setting the same variable 2 values? I think if you select the button, it will only be saved with one value. What exactly is your goal here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198081#M386213</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198082#M386214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SunnyT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which shows data by Financial Year.&amp;nbsp; I now want to show the same table but by data by Previous Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like just one button which if the user clicks on it, then they will either see data by Financial Year or by clicking again, data by Previous Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to have one graph and one button to control whether the user views data by Financial Year or Previous Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My aim is to reduce the number of objects by 1/2 using this technique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198082#M386214</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-10-14T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198083#M386215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set you variable like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;v_Selected &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Definition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=If(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;v_Selected = 1, 2, 1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable will not toggle between 1 and 2 every time you click on the button. Now you can set your expression/dimension with values of 1 and 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198083#M386215</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198084#M386216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use button for this:&lt;/P&gt;&lt;P&gt;Use Inline Tables:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140666_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You can get a List Box as Below and Now you can use &lt;STRONG&gt;GetFieldSelection(CTP)&lt;/STRONG&gt; function in your Conditional Box&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/140667_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/140668_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198084#M386216</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-10-14T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198085#M386217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&amp;nbsp; I have done this before in other things and didn't think to use the same technique here aswell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198085#M386217</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-10-14T15:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198086#M386218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem, I am glad I was able to help &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>Fri, 14 Oct 2016 15:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198086#M386218</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-14T15:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198087#M386219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd suggest replacing the 1/2 values with 1/0 values and use a single Actions: Set Variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSelected = 1-vSelected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will create the flip-flop action that you are looking for,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198087#M386219</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-14T15:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: One button to contain 2 values</title>
      <link>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198088#M386220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the button text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;v_Selected&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;=1,'Compared to Previous FY YTD','Compared to Previous Month') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-button-to-contain-2-values/m-p/1198088#M386220</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-10-14T15:21:12Z</dc:date>
    </item>
  </channel>
</rss>

