<?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: Calendar over timestamp field without duplicates. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381054#M142164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your duplicates are because Qlikview stores dates in dual. So a datetime is a number like 40403 and a datetime may be &lt;/P&gt;&lt;P&gt;40403,1231511 &lt;/P&gt;&lt;P&gt;and a few minutes later on this day, the datetime may be &lt;/P&gt;&lt;P&gt;40403,1232511 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to see only the dates (and want to disregard time...) then you need to use floor() to only keep the 40403 part...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See an example attached, where initially you see duplicates in the selectbox (due to not using floor() ).&lt;/P&gt;&lt;P&gt;When you change the loadscript (comment the current script and uncomment the script that I prepared for you) then the listbox should not contain duplicates anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2012 08:06:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-27T08:06:36Z</dc:date>
    <item>
      <title>Calendar over timestamp field without duplicates.</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381052#M142162</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 timestamp field "Purchased Time" in my orders table, say if there are multiple orders purchased on the same day there timestamp will be recorded. Now i am looking to generate a calendar with this field. I use &lt;STRONG&gt;Date("Purchased Time",'M/D/YYYY') as PurchasedDate&lt;/STRONG&gt; in getting other calendar related entries like Day,Week etc., Now PurchasedDate is containing duplicates since many orders purchased on the same day will have entries, how to remove the duplicates and when i select one particular day say 8/26/2012 it should select all the orders purchased on that day irrespective of the timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Srikar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 07:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381052#M142162</guid>
      <dc:creator />
      <dc:date>2012-08-27T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar over timestamp field without duplicates.</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381053#M142163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srikar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Date() function does &lt;EM&gt;not&lt;/EM&gt; truncate the date (to remove the time portion). It is a display format function. So although the dates now look like plain dates, the underlying value contains the time portion. These then look like duplicates in a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To remove the time portion, use floor(), like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor([Purchased Time]), 'M/D/YYYY') As PurchasedDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you should get one instance of each date in the list box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 08:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381053#M142163</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-27T08:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar over timestamp field without duplicates.</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381054#M142164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your duplicates are because Qlikview stores dates in dual. So a datetime is a number like 40403 and a datetime may be &lt;/P&gt;&lt;P&gt;40403,1231511 &lt;/P&gt;&lt;P&gt;and a few minutes later on this day, the datetime may be &lt;/P&gt;&lt;P&gt;40403,1232511 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to see only the dates (and want to disregard time...) then you need to use floor() to only keep the 40403 part...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See an example attached, where initially you see duplicates in the selectbox (due to not using floor() ).&lt;/P&gt;&lt;P&gt;When you change the loadscript (comment the current script and uncomment the script that I prepared for you) then the listbox should not contain duplicates anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 08:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-over-timestamp-field-without-duplicates/m-p/381054#M142164</guid>
      <dc:creator />
      <dc:date>2012-08-27T08:06:36Z</dc:date>
    </item>
  </channel>
</rss>

