<?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: Case or Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466254#M174245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! It worked! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do it if I want between the interval 13-36 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when n_Order Date is defined as YY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Julia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 14:45:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-26T14:45:58Z</dc:date>
    <item>
      <title>Case or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466252#M174243</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;I try to create the Expression below with set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year([In_Order Date])={2012}&amp;gt;} distinct InvoiceNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count InvoiceNr if the Order Date (In_Order Date) is 2012 something ( I would like to do between 0 and 12 month agoo but I dont kniow how)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; There is an error in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could also use "cases" in the skript:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my cases would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In_Order Date last 12 month (calles Active)&lt;/P&gt;&lt;P&gt;In_Order Date between 13-36 month ago (called Passive)&lt;/P&gt;&lt;P&gt;In_Order Date older than 36 month ago (called Passive_old)&lt;/P&gt;&lt;P&gt;In_Order Date does not exist - (called No)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Julia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466252#M174243</guid>
      <dc:creator />
      <dc:date>2012-11-26T14:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Case or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466253#M174244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this to get a distinct count of InvoiceNo where [In_Order Date] lies in 2012:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[In_Order Date]={'=Year([In_Order Date])=2012'}&amp;gt;} distinct InvoiceNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the script you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([In_Order Date]&amp;gt; addyears(today(),-1) and [In_Order Date] &amp;lt;= today(),'Active',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([In_Order Date]&amp;lt;= addyears(today(),-1) and [In_Order Date]&amp;gt; addyears(today(),-2), 'Passive',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([In_Order Date]&amp;lt;= addyears(today(),-2), 'Passive_Old',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(len(trim([In_Order Date]))=0, 'No'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466253#M174244</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-26T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Case or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466254#M174245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! It worked! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do it if I want between the interval 13-36 month ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when n_Order Date is defined as YY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Julia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Case-or-Set-Analysis/m-p/466254#M174245</guid>
      <dc:creator />
      <dc:date>2012-11-26T14:45:58Z</dc:date>
    </item>
  </channel>
</rss>

