<?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 creating a distinct date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254136#M868030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a date in the following format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-10-21 13:55:43 +01:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have transformed it into just a date and then transformed the new date field to a MMM-YY field.&lt;/P&gt;&lt;P&gt;i am getting multiple MMM-YY values in the field and am trying to get distinct values but i cant seem to be able to do it. &lt;/P&gt;&lt;P&gt;can anyone help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it could be something to do with the initial way i am deriving the date from the above format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sample. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254136#M868030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a date in the following format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-10-21 13:55:43 +01:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have transformed it into just a date and then transformed the new date field to a MMM-YY field.&lt;/P&gt;&lt;P&gt;i am getting multiple MMM-YY values in the field and am trying to get distinct values but i cant seem to be able to do it. &lt;/P&gt;&lt;P&gt;can anyone help please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it could be something to do with the initial way i am deriving the date from the above format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sample. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254136#M868030</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254137#M868031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you see that because the value you represent is MMM-YY, but the value actually stored is the full date, so you need to remove the day using, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MakeDate(Year(DateField), Month(DateField)) AS Date_MMM-YY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254137#M868031</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2016-11-30T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254138#M868032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris, dates has 2 values: the shown value and the internal value. &lt;SPAN style="font-size: 10pt;"&gt;The interval value is the date in number, the unit (1) represents a day, and fractions of the units represents the time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you see the same value many times because they have a different internal value (day, hour, minutes), to store the same internal value you can set every date to the first day and second of the month:&lt;/P&gt;&lt;P&gt;date(&lt;STRONG&gt;Monthstart(&lt;/STRONG&gt;Date&lt;STRONG&gt;)&lt;/STRONG&gt;,'MMM-YY') as MonthYr;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254138#M868032</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-30T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254139#M868034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to cut the timepart - formatting alone isn't enough. Try: date(floor(YourTimestampField)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254139#M868034</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-30T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254140#M868035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(Date),'MMM-YY') as MonthYr;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254140#M868035</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-30T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254141#M868038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be if time was the issue, but what he wants to remove is the day completely, so the Floor() will not work in this case because the day is part of the integer value of the date. But yes, it is all about how QlikView differences between date representation and date interpretation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254141#M868038</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2016-11-30T12:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: creating a distinct date field</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254142#M868040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course! thanks Miguel!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 12:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-distinct-date-field/m-p/1254142#M868040</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2016-11-30T12:52:29Z</dc:date>
    </item>
  </channel>
</rss>

