<?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 Greater Than Date Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-Than-Date-Field/m-p/85759#M14066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally got this resolved &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; The conversion to YYYYMM was holding the days portion and thus not giving us a direct value that we needed. With the help from a college we had to change the variable used in the greater than part to the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(AddMonths(DATE#(YEAR(Today()) &amp;amp; num(month(Today()),'00'), 'YYYYMM'), -2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2018 09:15:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-15T09:15:10Z</dc:date>
    <item>
      <title>Set Analysis Greater Than Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-Than-Date-Field/m-p/85758#M14065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this is a very frequent question that has been asked and I have tried nearly every possibility in the book from my searched solutions however I cannot see to get this set analysis working, could someone please assist me. I am trying to pull the count of products that have been graded from a specific date in time to date (Current Date - 13 Months). Iv tried providing all components of my setup below and assistance would be greatly appreciated please guys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Primary Field Im trying to filter on is defined as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- Date(A.YMDateField, 'YYYYMM') as A.YMDateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Variable is Defined as and which returns (&lt;STRONG&gt;201806&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- vRollingPeriod = &lt;SPAN style="font-size: 10pt;"&gt;Date(AddMonths(Now(), -2), 'YYYYMM') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;3. Set Analysis is Defined as: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;- COUNT(DISTINCT {&amp;lt;A.YMDateField={"&amp;gt;=$(vRollingPeriod )"}&amp;gt;}OH.Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;4. Sample Of Data: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;201805&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;201805&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;201806&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;201806&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;201807&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I should thus be getting a value of 2 back for the counting of distinct products from today back to &lt;STRONG&gt;201806&lt;/STRONG&gt;, however the value being returned is 0. &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>Wed, 15 Aug 2018 05:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-Than-Date-Field/m-p/85758#M14065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-15T05:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Greater Than Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-Than-Date-Field/m-p/85759#M14066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally got this resolved &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; The conversion to YYYYMM was holding the days portion and thus not giving us a direct value that we needed. With the help from a college we had to change the variable used in the greater than part to the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(AddMonths(DATE#(YEAR(Today()) &amp;amp; num(month(Today()),'00'), 'YYYYMM'), -2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 09:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Greater-Than-Date-Field/m-p/85759#M14066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-15T09:15:10Z</dc:date>
    </item>
  </channel>
</rss>

