<?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 Set Analysis Not Working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137834#M9701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late response.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 17:25:34 GMT</pubDate>
    <dc:creator>asmithids</dc:creator>
    <dc:date>2018-10-31T17:25:34Z</dc:date>
    <item>
      <title>Variable in Set Analysis Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137831#M9698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the following variable and used it in the set analysis expression.&amp;nbsp; The issue is that when I select a date in the Year-Month dimension, I am not getting any results as expected.&amp;nbsp; The expression is supposed to sum all payment amounts for all previous periods from the date selected in the Year-Month field.&amp;nbsp; The variable in the expression turns "active" when I remove the " "&amp;nbsp; but, the result is null.&amp;nbsp; When I include the " ", the variable turns to plain text and the result is 0.00.&amp;nbsp; I tested the results of the variable to the values in the Year-Month field and they match (i.e. 2018-Jun to 2018-Jun).&amp;nbsp; I know I'm close but don't see where I'm not correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: vYearMonth = GetFieldSelections([Year-Month])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year=,Month=, [Year-Month]={"&amp;lt;$(&lt;STRONG&gt;vYearMonth&lt;/STRONG&gt;)"}&amp;gt;}PaymentAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137831#M9698</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2018-10-25T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137832#M9699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec. I think only daytime or num formatted fields may be used for this purpose. So if [Year-Month] looks like 201801 it may be&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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year=,Month=, [Year-Month]={"&amp;lt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Year-Month]&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)"}&amp;gt;}PaymentAmount)&lt;/SPAN&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: 13px;"&gt;Or if there is a date field&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: 13px;"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Year=,Month=, Date ={"&amp;lt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Date(Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)"}&amp;gt;}PaymentAmount)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137832#M9699</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-25T19:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137833#M9700</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;Try to precalculate variable &lt;SPAN style="font-size: 10pt;"&gt;value &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;using euation &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;and test it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Variable: vYearMonth = &lt;SPAN style="color: #ff0000;"&gt;'=GetFieldSelections([Year-Month])&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make sure that &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year-Month &lt;/SPAN&gt;dimension is Numeric so you can use it with "&amp;lt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137833#M9700</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2018-10-25T19:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Set Analysis Not Working</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137834#M9701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the late response.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 17:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-in-Set-Analysis-Not-Working/m-p/137834#M9701</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2018-10-31T17:25:34Z</dc:date>
    </item>
  </channel>
</rss>

