<?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: Re: Use of variables in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538736#M201313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gavin,&lt;/P&gt;&lt;P&gt;Please check out the attached file. Hope it helps. I created a variable and used it in the Set Analysis similar to what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 17:32:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-20T17:32:23Z</dc:date>
    <item>
      <title>Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538732#M201309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel I'm missing something very obvious here. Can someone please tell me the difference between these two expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression returns data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={'2014'}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;This expression does not. The currentYear variable contains the value '2014', which I have confirmed by displaying the contents in a text box. The expression editor shows no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={$(currentYear)}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 16:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538732#M201309</guid>
      <dc:creator />
      <dc:date>2014-01-20T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538733#M201310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gavin,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={"$(currentYear)"}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538733#M201310</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-01-20T17:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538734#M201311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first verify with a text object that your variable really contains the correct value, then is so, try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={'$(currentYear)'}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just add ' because expressions are equal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexandros&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538734#M201311</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-01-20T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538735#M201312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the answers. Unfortunately no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified via text box that the variable contains '2014'. (That variable was itself derived from another variable using Left(currentPeriod, 4), where the currentPeriod is '201410'...so there isn't much scope for error...).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538735#M201312</guid>
      <dc:creator />
      <dc:date>2014-01-20T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538736#M201313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Gavin,&lt;/P&gt;&lt;P&gt;Please check out the attached file. Hope it helps. I created a variable and used it in the Set Analysis similar to what you are doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538736#M201313</guid>
      <dc:creator />
      <dc:date>2014-01-20T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538737#M201314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK your variable contains 2014.&lt;/P&gt;&lt;P&gt;But did you add the quotes ? if the basic syntax, without any variable is '2014' you must do '$(variable)' =&amp;gt; put quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538737#M201314</guid>
      <dc:creator />
      <dc:date>2014-01-20T17:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538738#M201315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gavin,&lt;/P&gt;&lt;P&gt;Can you upload your application?&amp;nbsp; As &lt;A href="https://community.qlik.com/qlik-users/92957"&gt;Ajay Prabhakaran&lt;/A&gt; examples shows, you can use variable without quotes, and it works also with single and with double quotes.&amp;nbsp; The problem is somewhere else...&amp;nbsp; Maybe you misspell the variable?&amp;nbsp; It is case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 18:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538738#M201315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-20T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538739#M201316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ajay - That looks like an accurate representation of what I'm trying to do...but my file seems to behave differently. My QV file is too large to attach, but I will attach screenshots to a later post below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 08:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538739#M201316</guid>
      <dc:creator />
      <dc:date>2014-01-21T08:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538740#M201317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aunez - I have tried adding quotes but have the same problem, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works: Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={'2014'}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not: Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={'$(currentYear)'}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 08:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538740#M201317</guid>
      <dc:creator />
      <dc:date>2014-01-21T08:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538741#M201318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;Add a new expression and write : if($(currentYear)=2014, 'Y', 'N')&lt;/P&gt;&lt;P&gt;Let me know what returns this expression&lt;/P&gt;&lt;P&gt;I expect Y....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538741#M201318</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-01-21T09:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538742#M201319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, I would use the equal sign + double quotes. Sth like (but not tested):&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: red; font-size: 9pt;"&gt;={“= $(currentYear)”}&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;MATTER.CLNT_MATT_CODE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538742#M201319</guid>
      <dc:creator />
      <dc:date>2014-01-21T09:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538743#M201320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Unfortunately the file is very large - I'm not sure if the screenshots below will help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; currentPeriod variable: &lt;IMG alt="ScreenHunter_09 Jan. 21 09.03.gif" class="jive-image" src="/legacyfs/online/51809_ScreenHunter_09 Jan. 21 09.03.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; currentYear variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="ScreenHunter_10 Jan. 21 09.03.gif" class="jive-image" src="/legacyfs/online/51810_ScreenHunter_10 Jan. 21 09.03.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; textbox to verify:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ScreenHunter_10 Jan. 21 09.04.gif" class="jive-image" src="/legacyfs/online/51811_ScreenHunter_10 Jan. 21 09.04.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Chart + formula with hardcoded '2014':&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ScreenHunter_10 Jan. 21 09.06.gif" class="jive-image" src="/legacyfs/online/51812_ScreenHunter_10 Jan. 21 09.06.gif" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Chart + formula with currentYear variable (have tried with single, double and no quotes):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ScreenHunter_11 Jan. 21 09.06.gif" class="jive-image" src="/legacyfs/online/51813_ScreenHunter_11 Jan. 21 09.06.gif" style="width: 620px; height: 179px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538743#M201320</guid>
      <dc:creator />
      <dc:date>2014-01-21T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538744#M201321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro - That returns a 'Y':&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="51814" alt="ScreenHunter_11 Jan. 21 09.14.gif" class="jive-image" src="/legacyfs/online/51814_ScreenHunter_11 Jan. 21 09.14.gif" /&gt;&lt;/P&gt;&lt;P&gt;(Please also see the just-attached screenshots above) &lt;/P&gt;&lt;P&gt;Thanks, Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538744#M201321</guid>
      <dc:creator />
      <dc:date>2014-01-21T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538745#M201322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Aunez. The use of double quotes, plus the extra = sign within them, works, i.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;MATTER.MATTER_OPEN_YEAR={"=$(currentYear)"}&amp;gt;} MATTER.CLNT_MATT_CODE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 09:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538745#M201322</guid>
      <dc:creator />
      <dc:date>2014-01-21T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538746#M201323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gavin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of the problem and the solution:&lt;/P&gt;&lt;P&gt;Your variable content is not '2014' - it is expression 'left($(currentPeriod),4)'.&amp;nbsp; The text box to verify had to be&lt;BR /&gt;=currentYear&lt;/P&gt;&lt;P&gt;That's why the solution from &lt;A href="https://community.qlik.com/qlik-users/134028"&gt;AUNEZ FABRICE&lt;/A&gt; resolved the problem by adding "=" before the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;PS: Regarding file upload - you can always use "data reduction" and scrambling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 11:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variables-in-Set-Analysis/m-p/538746#M201323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-21T11:28:18Z</dc:date>
    </item>
  </channel>
</rss>

