<?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: Variables in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593464#M43640</link>
    <description>&lt;P&gt;Can you please share the sample application to check the definition of variable and field values&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 10:02:39 GMT</pubDate>
    <dc:creator>anushree1</dc:creator>
    <dc:date>2019-06-19T10:02:39Z</dc:date>
    <item>
      <title>Variables in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593419#M43636</link>
      <description>&lt;P&gt;Hi, I need help.&lt;/P&gt;&lt;P&gt;I have this variable in my dashboard:&lt;/P&gt;&lt;P&gt;Name:&lt;/P&gt;&lt;P&gt;vL.MaxDatePeriod&lt;/P&gt;&lt;P&gt;Definition:&lt;/P&gt;&lt;P&gt;max([Period])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I have a table with two fields:&lt;/P&gt;&lt;P&gt;Field 1: [Period]&lt;/P&gt;&lt;P&gt;Field 2:&amp;nbsp;$(vL.MaxDatePeriod)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is correct, because the table shows:&lt;/P&gt;&lt;P&gt;Field1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Field2&lt;/P&gt;&lt;P&gt;201904&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;201904&lt;/P&gt;&lt;P&gt;201905&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;201905&lt;/P&gt;&lt;P&gt;Now, I try to add a new column with this formula, where I need to count distinct operations by period:&lt;/P&gt;&lt;P&gt;Count(distinct {&amp;lt;[ExpiryDate_NUM]={"&amp;gt;$(vL.MaxDatePeriod)"}&amp;gt;} [Operations])&lt;/P&gt;&lt;P&gt;*ExpiryDate_NUM contains 201904, 201905, 201906.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result of the formula is 0. If I change the definition of the variable&amp;nbsp;vL.MaxDatePeriod and I put &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;max([Period]), the result of the formula is 378, but is the same value for both rows because the result of the variable&amp;nbsp;vL.MaxDatePeriod is always 201905&lt;/P&gt;&lt;P&gt;Anybody knows a solution? I need this formula because I need to use it in other chart&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593419#M43636</guid>
      <dc:creator>mena_ricardo</dc:creator>
      <dc:date>2019-06-19T08:31:56Z</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/1593464#M43640</link>
      <description>&lt;P&gt;Can you please share the sample application to check the definition of variable and field values&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 10:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593464#M43640</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-06-19T10:02:39Z</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/1593480#M43642</link>
      <description>&lt;P&gt;In the attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 10:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593480#M43642</guid>
      <dc:creator>mena_ricardo</dc:creator>
      <dc:date>2019-06-19T10:24:30Z</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/1593481#M43643</link>
      <description>&lt;P&gt;In the attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 10:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593481#M43643</guid>
      <dc:creator>mena_ricardo</dc:creator>
      <dc:date>2019-06-19T10:24:52Z</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/1593664#M43657</link>
      <description>&lt;P&gt;Please check the attached&lt;/P&gt;&lt;P&gt;is this what you are looking for?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593664#M43657</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-06-19T14:10:16Z</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/1593710#M43661</link>
      <description>&lt;P&gt;No, because the value of the variable "vL.MaxDatePeriod" is always 201905:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="1.JPG" style="width: 275px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14018i671D39AD71A87B8E/image-dimensions/275x102?v=v2" width="275" height="102" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the table, I need to show:&lt;/P&gt;&lt;P&gt;Period&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vL.MaxDatePeriod&lt;/P&gt;&lt;P&gt;201904&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 201904&lt;/P&gt;&lt;P&gt;201905&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 201905&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the definition of the variable and I write :&amp;nbsp;max([GTB_BOARD_EXPFINANCE_HIST.Period]), &lt;STRONG&gt;without the equal symbol "="&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2.JPG" style="width: 308px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/14019i1670E2028EF52C27/image-dimensions/308x94?v=v2" width="308" height="94" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final result is not OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-in-Set-Analysis/m-p/1593710#M43661</guid>
      <dc:creator>mena_ricardo</dc:creator>
      <dc:date>2019-06-19T15:01:02Z</dc:date>
    </item>
  </channel>
</rss>

