<?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: Set Analysis Using Date Range in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706256#M54142</link>
    <description>&lt;P&gt;Thanks Jwjackso, but still results in 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34573i9CF83A9DB45C29B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 20:21:44 GMT</pubDate>
    <dc:creator>tomdon14</dc:creator>
    <dc:date>2020-05-28T20:21:44Z</dc:date>
    <item>
      <title>Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706229#M54139</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;I'm trying to calculate a measure based on a date range using set analysis and not achieving the proper result.&amp;nbsp; When I select a month (or months) I would like to create a 4-month total of cases from the most recent month selected and previous 4 months.&lt;/P&gt;&lt;P&gt;I have 2 variables created:&lt;BR /&gt;v_max_month = most current month selected&lt;BR /&gt;v_max_month_minus3 = maximum month selected minus 3 months&lt;BR /&gt;&lt;BR /&gt;The calculation to count cases for those 4 months is returning zero:&lt;BR /&gt;Count({&amp;lt;YearMonth={"&amp;gt;=$(=v_max_month_minus3)"} &amp;gt;} CASE_AER_NUMBER)&lt;/P&gt;&lt;P&gt;Appreciate any insight. Thanks.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34563iFA3402875FEBEAF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 19:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706229#M54139</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2020-05-28T19:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706248#M54141</link>
      <description>&lt;P&gt;I think you have an extra equal sign:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;YearMonth={"&amp;gt;=$(v_max_month_minus3)"} &amp;gt;} CASE_AER_NUMBER)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706248#M54141</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-28T20:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706256#M54142</link>
      <description>&lt;P&gt;Thanks Jwjackso, but still results in 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34573i9CF83A9DB45C29B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706256#M54142</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2020-05-28T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706271#M54145</link>
      <description>&lt;P&gt;When you are in the expression editor, look at the bottom to see how the Set Analysis statement is being rendered to make sure it is working as expected.&amp;nbsp; I created a simple variable in an app:&amp;nbsp; Let vToday=Today();&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at the top and bottom of the image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable.PNG" style="width: 408px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34576i66F0B6DF9568E3B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="variable.PNG" alt="variable.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706271#M54145</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-28T20:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706279#M54146</link>
      <description>&lt;P&gt;Thanks again. Expression is being evaluated as attached...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34577iF55F83C2876DE74A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706279#M54146</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2020-05-28T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706284#M54148</link>
      <description>&lt;P&gt;Based on how the variable is being evaluated at the bottom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;YearMonth={"&amp;gt;=$(=$(v_max_month_minus3))"}&amp;gt;} CASE_AER_NUMBER)&lt;/P&gt;&lt;P&gt;The inner&amp;nbsp;$(v_max_month_minus3) evaluates to the expression you want to execute&lt;/P&gt;&lt;P&gt;The outer&amp;nbsp;$(=$(v_max_month_minus3)) is required for the expression and needs the equal sign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 21:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706284#M54148</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-28T21:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706301#M54149</link>
      <description>&lt;P&gt;Thanks, that does seem to evaluate to the correct expression. However it is still returning 0 records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried testing the expression:&amp;nbsp;&lt;BR /&gt;Count({&amp;lt;YearMonth={"Nov-2019"} &amp;gt;} CASE_AER_NUMBER)&lt;BR /&gt;This does return records. Could there be some issue with the &amp;gt;= syntax in the evaluated expression?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 990px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34580i40637B3BA136F733/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture4.PNG" alt="Capture4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 21:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706301#M54149</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2020-05-28T21:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706608#M54168</link>
      <description>&lt;P&gt;I think the problem will be related to the YearMonth field, is it a date or string?&amp;nbsp; I used the data below:&lt;/P&gt;&lt;P&gt;Let vDT=Date(Floor(Today()),'MMM-YYYY');&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;load Dept,&lt;BR /&gt;Date(Date#(DT,'MMM-DD-YYYY'),'MMM-YYYY') as DT,&lt;BR /&gt;Date(Date#(DT2,'MMM-YYYY'),'MMM-YYYY') as DT2,&lt;BR /&gt;DT3,&lt;BR /&gt;Amt;&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Dept,DT,DT2,DT3,Amt&lt;BR /&gt;D100,'Jan-01-2020','Jan-2020',Jan-2020,100&lt;BR /&gt;D100,'May-01-2020','May-2020',May-2020,200&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;See the results below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="setanalysis.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34647i5371D948FD693E3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="setanalysis.PNG" alt="setanalysis.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 15:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706608#M54168</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-29T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Using Date Range</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706674#M54179</link>
      <description>&lt;P&gt;Thank you Jwjackso! I believe the problem WAS with the format of YearMonth. I did not change the data load but instead used a field "Date" that was already in the model. Please see the revised calculations below. Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/34663i4A6ECB4C1E15EE04/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture5.PNG" alt="Capture5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 20:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Using-Date-Range/m-p/1706674#M54179</guid>
      <dc:creator>tomdon14</dc:creator>
      <dc:date>2020-05-29T20:27:04Z</dc:date>
    </item>
  </channel>
</rss>

