<?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 Variables in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80967#M5361</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;&lt;/P&gt;&lt;P&gt;I´m making a new dashboard in Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bussiness are related with incidences, so, count(NumberIncidences) will be usual to use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I´m trying to use variables in a simple set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my var:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nameVar: vCurrentMonth&lt;/P&gt;&lt;P&gt;expression of var: vCurrentMonth = Month(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y would like to know my incidences in a current month with set analysis, i would like to know this month, next month, etc.&lt;/P&gt;&lt;P&gt;I would like to have this information instanly, without filters applied. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;MONTH={'=$(vCurrentMonth)"}&amp;gt;}NumberIncidences) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m totally deseperate, because I tested to get and represent the value of my variable typing the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vcurrentMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result is 3. that´s perfect!, but when i try to put in a setAnalysis Expression...EXPLOIT! never work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help or manual or whatever will be very very helpful!&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>Fri, 23 Mar 2018 15:01:31 GMT</pubDate>
    <dc:creator>juancarlos_diag</dc:creator>
    <dc:date>2018-03-23T15:01:31Z</dc:date>
    <item>
      <title>Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80967#M5361</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;&lt;/P&gt;&lt;P&gt;I´m making a new dashboard in Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bussiness are related with incidences, so, count(NumberIncidences) will be usual to use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I´m trying to use variables in a simple set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my var:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nameVar: vCurrentMonth&lt;/P&gt;&lt;P&gt;expression of var: vCurrentMonth = Month(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y would like to know my incidences in a current month with set analysis, i would like to know this month, next month, etc.&lt;/P&gt;&lt;P&gt;I would like to have this information instanly, without filters applied. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;MONTH={'=$(vCurrentMonth)"}&amp;gt;}NumberIncidences) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m totally deseperate, because I tested to get and represent the value of my variable typing the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vcurrentMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result is 3. that´s perfect!, but when i try to put in a setAnalysis Expression...EXPLOIT! never work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help or manual or whatever will be very very helpful!&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>Fri, 23 Mar 2018 15:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80967#M5361</guid>
      <dc:creator>juancarlos_diag</dc:creator>
      <dc:date>2018-03-23T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80968#M5362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be 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: 13px;"&gt;=Count({&amp;lt;MONTH = {"$(=$(vCurrentMonth))"}&amp;gt;} NumberIncidences)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80968#M5362</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-23T16:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80969#M5363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer, but it doesn´t work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve already tried it and still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any document, procedure to type or debug setAnaysis expressions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how is possible something that is really easy does no works ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 05:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80969#M5363</guid>
      <dc:creator>juancarlos_diag</dc:creator>
      <dc:date>2018-03-26T05:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80970#M5364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using double quotes in the set analysis for the variable. Additionally, if you're not evaluated your variable in the definition (LET/SET), you'll need to do it in the expression as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count({&amp;lt;MONTH = {"=$(vCurrentMonth)"}&amp;gt;} NumberIncidences)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({&amp;lt;MONTH = {"=$(=$(vCurrentMonth))"}&amp;gt;} NumberIncidences)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 11:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80970#M5364</guid>
      <dc:creator>jasonmomoa</dc:creator>
      <dc:date>2018-03-26T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80971#M5365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis get tricky with variables, you can check these threads to understand dates within set analysis better&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3406"&gt;The Magic of Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 11:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80971#M5365</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-26T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80972#M5366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/266197"&gt;juancarlos.diago&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all, I believe Month(Today()) is returning you 'March' instead of '3'. You are probably visualizing the variable with 'number format'. That being said, see my below comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to set a unique month to your expression, you can use single quote assignment in your set analysis.&lt;/P&gt;&lt;P&gt;If you'd like to set another relational operation to your expression (e.g., &amp;gt;=, &amp;lt;=, etc), you can use double quotes instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15220666069788957" jivemacro_uid="_15220666069788957"&gt;
&lt;P&gt;// In script&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vCurrentMonth = Month(Today());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // March&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vCurrentMonthNum = Num(Month(Today())); // 3&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&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;// In KPI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;Month={'$(vCurrentMonthNum)'}&amp;gt;}NumberIncidences)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Number of incidences in March - single quoted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;Month={"&amp;gt;=$(vCurrentMonthNum)"}&amp;gt;}NumberIncidences)&amp;nbsp; // Number of incidences in March or later - double quoted&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;&lt;IMG __jive_id="197475" alt="295898.PNG" class="jive-image image-1" height="259" src="https://community.qlik.com/legacyfs/online/197475_295898.PNG" style="height: 259px; width: 312.426px;" width="312" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hope this helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards!&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;Edit: Did this solve the problem?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 12:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-set-analysis/m-p/80972#M5366</guid>
      <dc:creator>jasonmomoa</dc:creator>
      <dc:date>2018-03-26T12:26:40Z</dc:date>
    </item>
  </channel>
</rss>

