<?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: Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605136#M1110097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GG,&lt;/P&gt;&lt;P&gt; I assume in vChooseYear is the fieldname (Year?). And in vCurrentFY is the number of selected items of this field.&lt;/P&gt;&lt;P&gt;May be (for example) she wants to show a specific chart only when NumberOfSelectedYears = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 15:21:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T15:21:28Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605128#M1110081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve a short question: In a chart I´m trying to let appear an expression conditionally:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;= GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vChooseYear1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}) = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vCurrentFY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would like to show the expression only if the Variable vChooseYear1 is equal to the Variable vCurrentFY. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I´m still strugling to understand when it has to be done how. Could anybody help me to correct this function?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Carolin &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605128#M1110081</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-05T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605129#M1110082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can just use:&lt;/P&gt;&lt;P&gt;Variable1=Variable2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="conditional.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/54328_conditional.JPG.jpg" style="width: 620px; height: 236px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works for me, at least&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605129#M1110082</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-03-05T14:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605130#M1110085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount&lt;SPAN style="font-size: 8pt;"&gt; ('&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vChooseYear1)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vCurrentFY)') &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 1,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;-Nilesh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605130#M1110085</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-03-05T14:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605131#M1110086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carolin:&lt;/P&gt;&lt;P&gt;this should really work: (i do not use any quotes)&lt;/P&gt;&lt;P&gt;=GetSelectedCount($(vChooseYear1))=$(vCurrentFY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and no if() as it is in a "show conditional" - expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 14:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605131#M1110086</guid>
      <dc:creator />
      <dc:date>2014-03-05T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605132#M1110089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enable the condition check box..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605132#M1110089</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605133#M1110091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see why you should use GetSelectedCount to compare two variables? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If vChooseYear and vCurrentFY is two variables as Carolin states, a simple comparison like I suggested will do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards/GG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605133#M1110091</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-03-05T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605134#M1110094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked, too - thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605134#M1110094</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-05T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605135#M1110095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605135#M1110095</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-05T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605136#M1110097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GG,&lt;/P&gt;&lt;P&gt; I assume in vChooseYear is the fieldname (Year?). And in vCurrentFY is the number of selected items of this field.&lt;/P&gt;&lt;P&gt;May be (for example) she wants to show a specific chart only when NumberOfSelectedYears = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605136#M1110097</guid>
      <dc:creator />
      <dc:date>2014-03-05T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605137#M1110099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason why I was trying to do this is that we have created a sales plan for the current fiscal year. This is shown in a chart where you can choose two different years and compare them. Therefore I created two variables:&lt;/P&gt;&lt;P&gt;vChooseYear1 and vChooseYear2. As we have created the sales plan only for the current fiscal year it does not make sense to show it if you compare 2012 against 2013. Therefore I wanted to show the expression to show the sales plan only if the variable vChooseYear1 = vCurrentFY (=current fiscal year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate very much the quick help of you both. Both solutions are working here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Carolin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605137#M1110099</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2014-03-05T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/605138#M1110100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O, I see what you mean now.&lt;/P&gt;&lt;P&gt;vCurrentFY is a very confusing name in that case (at least for me... ), with that name I am expecting it to contain 2012, 2013, 2014 or similar values.&lt;/P&gt;&lt;P&gt;And I also thought vChooseYear would contain a value like 2011, 2012 etc.&lt;/P&gt;&lt;P&gt;And then you wanted to show the expression column if these two were equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 09:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/605138#M1110100</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-03-06T09:08:02Z</dc:date>
    </item>
  </channel>
</rss>

