<?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: Help needed with expression for data that falls within 2 date ranges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386445#M490620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Date={'&amp;gt;=$(=AddYears(Today(), -6))'}&amp;gt;} Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inactive:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Supporter)&amp;nbsp; - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;Date={'&amp;gt;=$(=AddYears(Today(), -6))'}&amp;gt;} DISTINCT Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 12:31:13 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2012-10-05T12:31:13Z</dc:date>
    <item>
      <title>Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386444#M490619</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 want to split our supporters into active and inactive groups - Active is defined as someone who has made a donation in the past 6 years, inactive as one who has not. What expression do I need to use to get to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lindsay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 11:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386444#M490619</guid>
      <dc:creator />
      <dc:date>2012-10-05T11:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386445#M490620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Date={'&amp;gt;=$(=AddYears(Today(), -6))'}&amp;gt;} Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inactive:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Supporter)&amp;nbsp; - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;Date={'&amp;gt;=$(=AddYears(Today(), -6))'}&amp;gt;} DISTINCT Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 12:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386445#M490620</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-10-05T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386446#M490621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the list of supporters try to use inner join, i.e. for active supporters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;People:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; uid, name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 1, John&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 2, Peter]&lt;SPAN style="color: #000000;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Donations:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; uid, donation_date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 1, 2012-01-01&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; 2, 2001-01-01&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;SPAN style="color: #000000;"&gt;;&lt;BR /&gt; &lt;BR /&gt; ActiveSupporters:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;uid&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;name&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;name_active&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; People;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Inner&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;uid&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Donations&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;donation_date&lt;SPAN style="color: #000000;"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AddYears&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(), -6); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 12:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386446#M490621</guid>
      <dc:creator />
      <dc:date>2012-10-05T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386447#M490622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt reply. I couldn't get either suggestions to work.&lt;/P&gt;&lt;P&gt;The DATEDUE field (used against payments) formats dates as 4/10/200 12:00:00 AM - would that affect the expression above?&lt;/P&gt;&lt;P&gt;It's been a year since I looked at expression writing - bit rusty!&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Lindsay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 13:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386447#M490622</guid>
      <dc:creator />
      <dc:date>2012-10-05T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386448#M490623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Date and Date# functions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New';"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;donation_date&lt;/SPAN&gt;, 'M/D/YYYY hh:mm:ss tt'))&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 13:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386448#M490623</guid>
      <dc:creator />
      <dc:date>2012-10-05T13:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed with expression for data that falls within 2 date ranges</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386449#M490624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While loading arrive num field for date by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(DateField) AS DateNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this DateNum field in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;DateNum={'&amp;gt;=$(=Num(AddYears(Today(), -6)))'}&amp;gt;} Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inactive:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT Supporter)&amp;nbsp; - &lt;/P&gt;&lt;P&gt;Count({&amp;lt;DateNum={'&amp;gt;=$(=Num(AddYears(Today(), -6)))'}&amp;gt;} DISTINCT Supporter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-with-expression-for-data-that-falls-within-2-date/m-p/386449#M490624</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-10-05T14:46:46Z</dc:date>
    </item>
  </channel>
</rss>

