<?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: Duplicate dates within my Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580908#M1119354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should only use a Date Field and not a Date/Time field.&amp;nbsp; To get rid of the time, wrap the field in floor():&lt;/P&gt;&lt;P&gt;DATE(floor(STARTTIME))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2014 20:49:34 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-01-28T20:49:34Z</dc:date>
    <item>
      <title>Duplicate dates within my Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580907#M1119353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I create my Master Calendar I am getting multiple dates (basically i'm getting dates for each and every row of my data). &lt;/P&gt;&lt;P&gt;Example of MasterCalendar output:&lt;/P&gt;&lt;P&gt;11/13/2013&lt;/P&gt;&lt;P&gt;11/13/2013&lt;/P&gt;&lt;P&gt;11/13/2013&lt;/P&gt;&lt;P&gt;11/13/2013&lt;/P&gt;&lt;P&gt;11/14/2013&lt;/P&gt;&lt;P&gt;11/14/2013&lt;/P&gt;&lt;P&gt;11/14/2013&lt;/P&gt;&lt;P&gt;11/15/2013&lt;/P&gt;&lt;P&gt;11/15/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code originally LOADS the data in like this:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;DATE(STARTTIME)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [CALL DATE],&lt;/P&gt;&lt;P&gt;MONTH(STARTTIME)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [CALL MONTH],&lt;/P&gt;&lt;P&gt;fieldA,&lt;/P&gt;&lt;P&gt;fieldB,&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i create the Min/Max dates, everything appears fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i create the TempCal like so:&lt;/P&gt;&lt;P&gt;TempCal:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vMinDate)+rowno()-1)AS TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMaxDate)-$(vMinDate)+1;&lt;/P&gt;&lt;P&gt;Drop Table MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also shows only one date:&lt;/P&gt;&lt;P&gt;11/13/2013&lt;/P&gt;&lt;P&gt;11/14/2013&lt;/P&gt;&lt;P&gt;11/15/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when i create the Master Calendar (as shown below) i get multiples.&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;TempDate AS [Call Date]&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempCal&lt;/P&gt;&lt;P&gt;Order By TempDate ASC;&lt;/P&gt;&lt;P&gt;Drop Table TempCal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How do I prevent duplicates date in my Master Calendar, yet create a connection back to my original table?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(I have read other posts that state to only use a "Date" Field and not a "Date/Time" field, however this table only has the Date/Time Field to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, pulling out the Date from the Load script from above and doing a distinct in the creation of the MasterCalendar should take care of that issue but it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580907#M1119353</guid>
      <dc:creator />
      <dc:date>2014-01-28T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate dates within my Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580908#M1119354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should only use a Date Field and not a Date/Time field.&amp;nbsp; To get rid of the time, wrap the field in floor():&lt;/P&gt;&lt;P&gt;DATE(floor(STARTTIME))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580908#M1119354</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-28T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate dates within my Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580909#M1119355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you Nicole, That did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580909#M1119355</guid>
      <dc:creator />
      <dc:date>2014-01-28T20:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate dates within my Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580910#M1119356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have STARTTIME values like this&lt;/P&gt;&lt;P&gt;01/28/2013 10:00&lt;/P&gt;&lt;P&gt;01/28/2013 10:30&lt;/P&gt;&lt;P&gt;01/28/2013 11:00&lt;/P&gt;&lt;P&gt;They are three different values, even if you show them as date.&amp;nbsp; The floor(STARTDATE) removes time portion, and you get one value 01/28/2013.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580910#M1119356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-28T20:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate dates within my Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580911#M1119357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark correct and helpful answers so others can find solutions to their problems too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-dates-within-my-Master-Calendar/m-p/580911#M1119357</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-28T21:01:28Z</dc:date>
    </item>
  </channel>
</rss>

