<?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: Time &amp; date interpretation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055629#M637492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that Date() on its own does not change the underlying value. It formats the text form of the date/time value, but does &lt;EM&gt;not&lt;/EM&gt; remove the time, so you land up with a whole lot of different values that &lt;EM&gt;look&lt;/EM&gt; the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 15:59:10 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-04-05T15:59:10Z</dc:date>
    <item>
      <title>Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055627#M637490</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;Newbie question perhaps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QV to analyze a large logfile that is generated once per week. The logfile contains a combined date and time field which is loaded in to my application and looks like this by default:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YYYY-MM-DD HH:MM:SS, example: 2016-04-02 00:04:29&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logfile contains several hundered lines that have the same date, but different time stamps (seconds between them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application doesn't depend on the timestamps, I only need the date. By modifying the load script I'm able to bypass the timestamp, however then I create a listbox containing the date field my application lists every single line containing a date, se my example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-04-02&lt;/P&gt;&lt;P&gt;2016-04-02&lt;/P&gt;&lt;P&gt;2016-04-02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assumption is that the listbox shows me all of the dates equivalent to the number of occurrences, not by "grouping" the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the listbox to only contain one date at a time, example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-04-02&lt;/P&gt;&lt;P&gt;2016-04-03&lt;/P&gt;&lt;P&gt;2016-04-04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Nicklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 10:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055627#M637490</guid>
      <dc:creator />
      <dc:date>2016-04-05T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055628#M637491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When yu load the date, you need to truncate the times:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Date(Floor(Date#(dateField, 'YYYY-MM-DD HH:MM:SS'))) as Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the field name and the alias per your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055628#M637491</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-04-05T15:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055629#M637492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that Date() on its own does not change the underlying value. It formats the text form of the date/time value, but does &lt;EM&gt;not&lt;/EM&gt; remove the time, so you land up with a whole lot of different values that &lt;EM&gt;look&lt;/EM&gt; the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 15:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055629#M637492</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-04-05T15:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055630#M637493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to format a timestamp as date and to remove the time part you can also use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DayName()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 23:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055630#M637493</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-04-06T23:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055631#M637494</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;May be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14600083238356382 jive_text_macro" jivemacro_uid="_14600083238356382"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;Date(Timestamp(Field,'YYYY-MM-DD h:mm:ss'),'YYYY-MM-DD') as DateField&lt;/P&gt;
&lt;P&gt; INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016-04-02 00:04:29&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016-04-03 00:04:29&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016-04-04 00:04:29&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Front end:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Timestamp-212135.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120837_Timestamp-212135.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 05:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055631#M637494</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-04-07T05:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time &amp; date interpretation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055632#M637495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another way is to generate the calendar and link the Calender Date to actual date in data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;LOAD distinct max(Date) as MaxDate,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;min(Date) as MinDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident Yourtable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMax = peek('&lt;SPAN style="font-size: 13.3333px;"&gt;MaxDate&lt;/SPAN&gt;',0,'&lt;SPAN style="font-size: 13.3333px;"&gt;Dates&lt;/SPAN&gt;');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let vMin = peek('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MinDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;',0,'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Dates&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Calendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;month(Date) as Month;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD Date($(&lt;SPAN style="font-size: 13.3333px;"&gt;vMin&lt;/SPAN&gt;) + iterno()-1) as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;autogenerate 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;while &lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vMin&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) + iterno()-1 &amp;lt;= $(&lt;SPAN style="font-size: 13.3333px;"&gt;vMax&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 06:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-date-interpretation/m-p/1055632#M637495</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-07T06:01:19Z</dc:date>
    </item>
  </channel>
</rss>

