<?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: Count and Case to comparing dates in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801063#M662461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marcus, &lt;/P&gt;&lt;P&gt;the expire_date column is&amp;nbsp; in date format. i like to see the churn trend by month and year. so i guess i need to extract the month and year part of date and set it as the dimension of my bar charts. &lt;/P&gt;&lt;P&gt;and then in expression tab, count the churned customers. &lt;/P&gt;&lt;P&gt;any idea? &lt;/P&gt;&lt;P&gt;thanks buddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2015 10:03:32 GMT</pubDate>
    <dc:creator>arixooo123</dc:creator>
    <dc:date>2015-01-31T10:03:32Z</dc:date>
    <item>
      <title>Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801061#M662459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I have written a query in database which works like a charm. here is the query :&lt;/P&gt;&lt;P&gt;&amp;nbsp; select &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; SUM ( CASE when DATEDIFF ( Day,EXPIRY_DATE , convert ( datetime,'2014-01-31',120 ) )&amp;gt;240 then 1 else 0 end ) as&amp;nbsp; Churn&amp;nbsp;&amp;nbsp; Customers in January&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from TABLE&lt;/P&gt;&lt;P&gt;as you can see, we define a customers as churned when 240 days has passed since the expiry date of his/her last service purchase. &lt;/P&gt;&lt;P&gt;i have a Expiry Date Column which i guess i can extract month and year part of the date. &lt;/P&gt;&lt;P&gt;I like to see the churn trends in dashboard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's say i add a line chart, in dimension i add a calculated dimension :&lt;/P&gt;&lt;P&gt;datepart(month,ExpiryDate) ------&amp;gt; &lt;STRONG&gt;you revise the syntax&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in expression i should add something like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(case&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;when DATEDIFF ( Day,EXPIRY_DATE , convert ( datetime,'2014-01-31',120 ) )&amp;gt;240&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 09:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801061#M662459</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-01-31T09:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801062#M662460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try as expression something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(DATE1 - DATE2 &amp;gt; 240, 1, 0), Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's also helpful to cluster this with class(aggr(DATE1 - DATE2, Customer), 30) as calculated dimension and count(distinct Customer) as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 09:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801062#M662460</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-31T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801063#M662461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marcus, &lt;/P&gt;&lt;P&gt;the expire_date column is&amp;nbsp; in date format. i like to see the churn trend by month and year. so i guess i need to extract the month and year part of date and set it as the dimension of my bar charts. &lt;/P&gt;&lt;P&gt;and then in expression tab, count the churned customers. &lt;/P&gt;&lt;P&gt;any idea? &lt;/P&gt;&lt;P&gt;thanks buddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 10:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801063#M662461</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-01-31T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801064#M662462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the first step I would try to extend the object and the expression by year and month. But maybe a script-approach could be better, maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ChurnDate:&lt;/P&gt;&lt;P&gt;Load Customer, max(Date) + 240 as ChurnDate From xyz Group by Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And as expression in a pivot: count(if(InmonthToDate(ChurnDate, Date, 0), Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 10:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801064#M662462</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-31T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801065#M662463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Marcus,&lt;/P&gt;&lt;P&gt;To better know the question, i upload a sample data.&lt;/P&gt;&lt;P&gt;we have 100 customers there. each has an Effective Date (Start) and Expiry Date .&lt;/P&gt;&lt;P&gt;what we need to know is the number of churned customers in each month and year.&lt;/P&gt;&lt;P&gt;In SQL i compare their Expiry date with different months of the year. From January to December.&lt;/P&gt;&lt;P&gt;like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM ( CASE when DATEDIFF ( Day,EXPIRY_DATE , convert ( datetime,&lt;STRONG&gt;'2014-01-31'&lt;/STRONG&gt;,120 ) )&amp;gt;240 then 1 else 0 end ) as&amp;nbsp; &lt;STRONG&gt;ChurnCustomersInJanuary&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;but i want to see this in a dashboard. how to add a virtual timeline and count number of churned customers in each month. I need a dimension for months. but i cannot use Effective or Expiry Date for that. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 13:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801065#M662463</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-01-31T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801066#M662464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that i think, I need a calculated dimension for months.&lt;/P&gt;&lt;P&gt;Calculated Dimension:&lt;/P&gt;&lt;P&gt;(January,February,....December) as MonthTrend&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and in Expression tab: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr ( If(Num(ExpiryDate)-Num(MonthTrend)&amp;gt;240&amp;nbsp; [Sub_ID]) )) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 14:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801066#M662464</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-01-31T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801067#M662465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible I wouldn't use a calculated dimension for the period and try it rather within the script, maybe like in the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 17:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801067#M662465</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-31T17:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801068#M662466</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic1.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76827_QlikCommunity_Thread_150282_Pic1.JPG" style="height: 281px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76828_QlikCommunity_Thread_150282_Pic2.JPG" style="height: 281px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic4.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/76829_QlikCommunity_Thread_150282_Pic4.JPG" style="height: 282px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic3.JPG" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/76830_QlikCommunity_Thread_150282_Pic3.JPG" style="height: 282px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic5.JPG" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/76831_QlikCommunity_Thread_150282_Pic5.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14227542082305122" jivemacro_uid="_14227542082305122"&gt;
&lt;P&gt;tabCustDates:&lt;/P&gt;
&lt;P&gt;LOAD CustomerID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(EFF_DATE) as EFF_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(EXP_DATE) as EXP_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(EXP_DATE+240) as CHURN_DATE&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="147442" data-objecttype="13" href="http://community.qlik.com/servlet/JiveServlet/download/2061-150282-704900-147442/temp100.xlsx"&gt;http://community.qlik.com/servlet/JiveServlet/download/704900-147442/temp100.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MasterCalendar:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(CanDate) as Day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(CanDate) as WeekDay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(CanDate) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(CanDate) as WeekName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(CanDate) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(CanDate) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(CanDate)/3),Ceil(Month(CanDate)/3)) as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(CanDate) as QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(CanDate) as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(CanDate) as WeekYear;&lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as CanDate&lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1&amp;lt;=MaxDate;&lt;/P&gt;
&lt;P&gt;LOAD RangeMin(Min(EFF_DATE),Min(EXP_DATE),Min(CHURN_DATE)) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeMax(Max(EFF_DATE),Max(EXP_DATE),Max(CHURN_DATE)) as MaxDate&lt;/P&gt;
&lt;P&gt; Resident tabCustDates;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;CrossTable(DateType, CanDate)&lt;/P&gt;
&lt;P&gt;LOAD CustomerID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EFF_DATE as effective, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXP_DATE as expired,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHURN_DATE as churned&lt;/P&gt;
&lt;P&gt;Resident tabCustDates;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 01:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801068#M662466</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-02-01T01:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801069#M662467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marco, I really appreciate your help. just to make sure we are on the same page and understand each other i calculated the churn result by query. please see the attached file.&lt;/P&gt;&lt;P&gt;as you can see, number of churn customers in (for example)&lt;/P&gt;&lt;P&gt;Feb 2014 = Number of Churn customers in Jan 2014 and &lt;STRONG&gt;before that&lt;/STRONG&gt; + Number of Churn Customers in Feb 2014 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 05:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801069#M662467</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-02-01T05:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801070#M662468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and to be sure we know what we are looking for,&lt;/P&gt;&lt;P&gt;In our definition, a churn customers is whom 240 days has passed since the his/her Expiry Date.&lt;/P&gt;&lt;P&gt;So Customers who their Expiry Date is 240 days or more before an specific date are known as churn customers.&lt;/P&gt;&lt;P&gt;This way, we couldn't possible have any new churn customers in Second Half of 2014,2015 or 2016.&lt;/P&gt;&lt;P&gt;I guess we need to calculate ChurDate as&amp;nbsp; : Date(EXP_DATE &lt;STRONG&gt;MINUS &lt;/STRONG&gt;240) as CHURN_DATE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 05:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801070#M662468</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-02-01T05:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801071#M662469</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 changed the script to only calculate churn dates up to today and changed the chart to full accumulation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_150282_Pic6.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76834_QlikCommunity_Thread_150282_Pic6.JPG" style="height: 281px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14227868403766357" jivemacro_uid="_14227868403766357"&gt;
&lt;P&gt;tabCustDates:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(EXP_DATE+240&amp;lt;=Today(),Date(EXP_DATE+240)) as CHURN_DATE;&lt;/P&gt;
&lt;P&gt;LOAD CustomerID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(EFF_DATE) as EFF_DATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(EXP_DATE) as EXP_DATE&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="147442" data-objecttype="13" href="http://community.qlik.com/servlet/JiveServlet/download/2061-150282-704900-147442/temp100.xlsx"&gt;http://community.qlik.com/servlet/JiveServlet/download/704900-147442/temp100.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is Sheet1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MasterCalendar:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(CanDate) as Day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(CanDate) as WeekDay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(CanDate) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(CanDate) as WeekName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(CanDate) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(CanDate) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(CanDate)/3),Ceil(Month(CanDate)/3)) as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(CanDate) as QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(CanDate) as Year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(CanDate) as WeekYear;&lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as CanDate&lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1&amp;lt;=MaxDate;&lt;/P&gt;
&lt;P&gt;LOAD RangeMin(Min(EFF_DATE),Min(EXP_DATE),Min(CHURN_DATE)) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeMax(Max(EFF_DATE),Max(EXP_DATE),Max(CHURN_DATE)) as MaxDate&lt;/P&gt;
&lt;P&gt;Resident tabCustDates;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;CrossTable(DateType, CanDate)&lt;/P&gt;
&lt;P&gt;LOAD CustomerID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EFF_DATE as effective,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXP_DATE as expired,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHURN_DATE as churned&lt;/P&gt;
&lt;P&gt;Resident tabCustDates;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 10:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801071#M662469</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-02-01T10:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801072#M662470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Man!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 10:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801072#M662470</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2015-02-01T10:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count and Case to comparing dates in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801073#M662471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 10:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-and-Case-to-comparing-dates-in-qlikview/m-p/801073#M662471</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-02-01T10:37:54Z</dc:date>
    </item>
  </channel>
</rss>

