<?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: Chart with Date difference in days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340233#M572712</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 would suggest using IntervalMatch for your problem, creating a table with your desired intervals&lt;BR /&gt;Hope it helps&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 15:30:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-06T15:30:05Z</dc:date>
    <item>
      <title>Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340232#M572711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have bunch of data (customers) that contain the date that they where last updated (changed address, password etc etc). I also have another table that displays the transcactions of these customers( with a date field of each transaction). i want to create two bar charts that will show me how many of my records have a date difference in days between today and the date that i mentioned before. The records have a unique key but have a one to many relationship. (One customer, many transactions records).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first I want to diplay the count of the customers that have a date of update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 119px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" width="119"&gt;UP TP 2 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 7 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 30 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 90 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 180 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 365 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP MAX DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;NO ACTIVITY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second i want to display the count of customers that have a latest date of transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="119"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" width="119"&gt;UP TP 2 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 7 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 30 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 90 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 180 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP 365 DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;UP TP MAX DAYS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21"&gt;NO ACTIVITY&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 14:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340232#M572711</guid>
      <dc:creator />
      <dc:date>2012-08-06T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340233#M572712</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 would suggest using IntervalMatch for your problem, creating a table with your desired intervals&lt;BR /&gt;Hope it helps&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 15:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340233#M572712</guid>
      <dc:creator />
      <dc:date>2012-08-06T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340234#M572713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.If you could give me an example, it would be very usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how will i get the transaction with the most recent date from the transactions table and then use &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;IntervalMatch &lt;/SPAN&gt;to match it to one of my predefined categories based on the date difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 21:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340234#M572713</guid>
      <dc:creator />
      <dc:date>2012-08-06T21:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340235#M572714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, i solved the first part of my question without the &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;IntervalMatch. I &lt;/SPAN&gt;did it using an excel with the date difference and the value i want to display, and i created another field in my loading script that calculates the difference of days in days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second part is a bit difficult for me. How will i choose the most recent transaction for each customer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 09:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340235#M572714</guid>
      <dc:creator />
      <dc:date>2012-08-07T09:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340236#M572715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;BR /&gt;Can you send me sample qvw so I can have a better idea of your data and how to solve the problem?&lt;BR /&gt;To calculate the difference between the latest activity and the current day I would use the today() function&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 11:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340236#M572715</guid>
      <dc:creator />
      <dc:date>2012-08-07T11:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340237#M572716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok here it is a simple example. &lt;/P&gt;&lt;P&gt;As i said all i want is to find the most recent data from a series of data that have the same id.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340237#M572716</guid>
      <dc:creator />
      <dc:date>2012-08-07T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340238#M572717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How's the finished chart supposed or table supposed to be with your current data?&lt;BR /&gt; I am having a hard time trying to understand the end goal and maybe that will help me find a solution&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 17:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340238#M572717</guid>
      <dc:creator />
      <dc:date>2012-08-07T17:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340239#M572718</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 think the qvw i attached is self explanatory. I will include an excel file with the initial test data and the desired results. Kep in mind i just want a way to get all the transactions for eacd customer (ID) at the most recent date for each customer purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if customer with ID=1 has 10 transactions in his transactions history and the date of his most recent transaction is August 4th, then for this user (for ID=1 ONLY) i want to get only the transactions for this date. It may be just one transaction or many . It does not matter. &lt;/P&gt;&lt;P&gt;Now if customer with ID=2 has his most recent transaction at July 28th i want to get all of his transactions (for ID=2 ONLY) at July 28th. One or many it does not matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 07:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340239#M572718</guid>
      <dc:creator />
      <dc:date>2012-08-08T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340240#M572719</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;Here's the load script that may help you, by attaching a flag to the max date for each customer:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD id, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [value($)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;amp;date as Key&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[test data.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD id as id2,&lt;/P&gt;&lt;P&gt;Max(date) as MaxDate,&lt;/P&gt;&lt;P&gt;1 as flag,&lt;/P&gt;&lt;P&gt;id&amp;amp;Max(date) as Key2&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group by id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;LOAD Key2 as Key,&lt;/P&gt;&lt;P&gt;flag&lt;/P&gt;&lt;P&gt;Resident Table2;&lt;/P&gt;&lt;P&gt;DROP Table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attach a qvd with the desired result on a table&lt;BR /&gt;Please let me know if it helped&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 13:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340240#M572719</guid>
      <dc:creator />
      <dc:date>2012-08-08T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with Date difference in days</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340241#M572720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, thanks for your answer. It works fine!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No i want to create a table that shows the number of customers per number of transactions in a specified date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if i choose August 6 as my date, how many Distinct users have 0 transactions for that date, how many 1 transaction, how many 2 transactions , etc. etc.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 08:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-Date-difference-in-days/m-p/340241#M572720</guid>
      <dc:creator />
      <dc:date>2012-08-09T08:09:46Z</dc:date>
    </item>
  </channel>
</rss>

