<?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: Distinct Count between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773503#M454726</link>
    <description>&lt;P&gt;What is your date field and how it is? Today() is not the correct one, IF you calculate MonthYear from DateField - You can try? But actually you should be having similar functionality when you compare MonthYear with Date so, I would suggest to use DateField instead MonhtYear. If not, Please explain more with some dataset ..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;=$(Date(Max(DateField, -30)))&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 19:53:15 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2021-01-11T19:53:15Z</dc:date>
    <item>
      <title>Distinct Count between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773497#M454723</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to change an expression that previously looked at a date range up to three months prior. I now need to change it to show data prior to 90 days. Below is the expression I have developed, but the output I receive in my chart is "-". The font in red is what I have added to change the max date to 90 days. Previously, the red text was&amp;nbsp;Date(MonthEnd(Max(MonthYear), -3).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Num(count(DISTINCT{1&amp;lt; [Site]={'Site Reviewed On Time', 'Site Reviewed Late'}, MonthYear={"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(MonthYear), -13), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(=Date(today(), -90), 'MMM-YYYY')"}, [Record Status] -={'Postponed', 'Cancelled'}&amp;gt;} RPA)/count(DISTINCT{1&amp;lt; [Site]-={''}, MonthYear={"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(MonthYear), -13), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; &lt;FONT color="#FF0000"&gt;Date(=Date(today(), -90))&lt;/FONT&gt;, 'DD-MM-YYYY')"}, [Record Status] -={'Postponed', 'Cancelled'}&amp;gt;} RPA),'#,##0%')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Dylan&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773497#M454723</guid>
      <dc:creator>Dmichel0729</dc:creator>
      <dc:date>2021-01-11T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773500#M454724</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Num(count(DISTINCT{1&amp;lt; [Site]={'Site Reviewed On Time', 'Site Reviewed Late'},&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MonthYear={"&amp;gt;=$(=Date(MonthStart(AddMonths(Max(MonthYear), -13)), 'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(MonthYear), -3)), 'MMM-YYYY'))"}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, [Record Status] -={'Postponed', 'Cancelled'}&amp;gt;} RPA)/count(DISTINCT{1&amp;lt; [Site]-={''}, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MonthYear=&lt;/STRONG&gt;&lt;STRONG&gt;{"&amp;gt;=$(=Date(MonthStart(AddMonths(Max(MonthYear), -13)), 'MMM-YYYY'))&amp;lt;=$(=Date(MonthStart(AddMonths(Max(MonthYear), -3)), 'MMM-YYYY'))"}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, [Record Status] -={'Postponed', 'Cancelled'}&amp;gt;} RPA),'#,##0%')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773500#M454724</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-01-11T19:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773502#M454725</link>
      <description>&lt;P&gt;Hello Anil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where you stated '"&lt;STRONG&gt;&amp;lt;=$(=Date(MonthStart(AddYears(Max(MonthYear), -3))"&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;I am actually trying to make it reflect 90 days and no longer 3 months. Sorry my explanation in the question may have been a little misleading.&amp;nbsp; Do you know how I would change your above expression to reflect 90 days prior?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773502#M454725</guid>
      <dc:creator>Dmichel0729</dc:creator>
      <dc:date>2021-01-11T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773503#M454726</link>
      <description>&lt;P&gt;What is your date field and how it is? Today() is not the correct one, IF you calculate MonthYear from DateField - You can try? But actually you should be having similar functionality when you compare MonthYear with Date so, I would suggest to use DateField instead MonhtYear. If not, Please explain more with some dataset ..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;=$(Date(Max(DateField, -30)))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 19:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distinct-Count-between-dates/m-p/1773503#M454726</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-01-11T19:53:15Z</dc:date>
    </item>
  </channel>
</rss>

