<?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: Date functionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631576#M231767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a full calendar, and link it to the shops by the date field.&lt;/P&gt;&lt;P&gt;But in your case, if you have only one record per shop, it may not be needed.&amp;nbsp; Just re-format goods_incoming_date in format 'mmm-yy'.&amp;nbsp; Can be done by cutting off the day part, or by using date(date#()) functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 14:39:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-13T14:39:20Z</dc:date>
    <item>
      <title>Date functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631574#M231765</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 have two tables date_dim and shops_dim.&lt;/P&gt;&lt;P&gt;shops_dim has shop_dim_id, goods_incoming_date and other fields&lt;/P&gt;&lt;P&gt;date_dim has month_date like jan-12,feb-12,mar-12 like this 24 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to find the count of shops which had goods_incoming in latest 3 months.&lt;/P&gt;&lt;P&gt;Like if a shop1 gets goods1 at 23-mar-12, &lt;/P&gt;&lt;P&gt;shop2 gets goods2 at 12-feb-12&lt;/P&gt;&lt;P&gt;shop3 gets goods3 at 11-jan-12&lt;/P&gt;&lt;P&gt;shop4 gets goods4 at 12-jan-12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we count the no. of shops which took goods in latest 3 months (jan,feb,mar-12) should be 4.&lt;/P&gt;&lt;P&gt;so i have to find the no. of shops which took goods based on goods_incoming_date.&lt;/P&gt;&lt;P&gt;I should find the no. of goods_incoming_date present in the latest 3months (jan,feb,mar).&lt;/P&gt;&lt;P&gt;How can i find the no. of shops based on date?&lt;/P&gt;&lt;P&gt;one shop will have one date only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631574#M231765</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2014-05-13T14:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631575#M231766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach the example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631575#M231766</guid>
      <dc:creator />
      <dc:date>2014-05-13T14:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631576#M231767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a full calendar, and link it to the shops by the date field.&lt;/P&gt;&lt;P&gt;But in your case, if you have only one record per shop, it may not be needed.&amp;nbsp; Just re-format goods_incoming_date in format 'mmm-yy'.&amp;nbsp; Can be done by cutting off the day part, or by using date(date#()) functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631576#M231767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-13T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631577#M231768</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;Thanks for the reply.&lt;/P&gt;&lt;P&gt;Can you tell me how can i create an id for the dates in a separate field?&lt;/P&gt;&lt;P&gt;for example..&lt;/P&gt;&lt;P&gt;I have dates like&lt;/P&gt;&lt;P&gt;1-jan-2012&lt;/P&gt;&lt;P&gt;5-jan-2012&lt;/P&gt;&lt;P&gt;2-feb-2012&lt;/P&gt;&lt;P&gt;30-mar-2012&lt;/P&gt;&lt;P&gt;29-mar-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i want id's for the dates like&lt;/P&gt;&lt;P&gt;Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&lt;/P&gt;&lt;P&gt;1-Jan-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;5-Jan-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2-Feb-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;30-Mar-2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;29-Mar-2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID's should be based on Month-Year.&lt;/P&gt;&lt;P&gt;In a date, if month-year repeats then the ID should be same&lt;/P&gt;&lt;P&gt;like 1-Jan-2012 and 5-Jan-2012&lt;/P&gt;&lt;P&gt;i have common month-year&lt;/P&gt;&lt;P&gt;so both should have ID as 1.&lt;/P&gt;&lt;P&gt;How can i get this ID field in script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631577#M231768</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2014-05-13T15:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631578#M231769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that this is what you want:&lt;/P&gt;&lt;P&gt;date(date#(goods_incoming_date, 'D-MMM-YYYY'), 'D-MMM-YYYY') as Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // actually it is date not month&lt;/P&gt;&lt;P&gt;num(month(date#(goods_incoming_date, 'D-MMM-YYYY'))) as ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-functionality/m-p/631578#M231769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-13T15:48:13Z</dc:date>
    </item>
  </channel>
</rss>

