<?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 Define time interval as a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893713#M658358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning/evening everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried today to define as a dimension time intervals having the date of events in a table in excel. I want to count the number of events that happened between 8h and 8h for instance. What is the dimension to define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnk you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 11:03:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-23T11:03:28Z</dc:date>
    <item>
      <title>Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893713#M658358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning/evening everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried today to define as a dimension time intervals having the date of events in a table in excel. I want to count the number of events that happened between 8h and 8h for instance. What is the dimension to define.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnk you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893713#M658358</guid>
      <dc:creator />
      <dc:date>2015-04-23T11:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893714#M658359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you have a field containing date &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; time, and this field is already interpreted as timestamp by QV when reading in?&lt;/P&gt;&lt;P&gt;And you want to count all records falling into a 24 hours period starting from any date's 8 am, ending 8 am the day after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then look into daystart() function, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EventTimestampField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; daystart(EventTimestampField, 8/24) as Bucket,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a chart with dimension &lt;EM&gt;Bucket&lt;/EM&gt; and expression &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(Event)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893714#M658359</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-04-23T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893715#M658360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it consider the past dates? And how about format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893715#M658360</guid>
      <dc:creator />
      <dc:date>2015-04-23T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893716#M658361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean with past dates. It should handle all dates the same, no difference between past and future dates except you have some logic in your script to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format is important, there are some classic blog posts by Henric that explain why and how to handle, e.g.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4002"&gt;The Date Function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893716#M658361</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-04-23T11:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893717#M658362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how can I make QV recognize my date as a timestamp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893717#M658362</guid>
      <dc:creator />
      <dc:date>2015-04-23T11:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Define time interval as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893718#M658363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's hard to answer without knowing your input field format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you look at your field values using e.g. a list box, how are the values displayed?&lt;/P&gt;&lt;P&gt;And when hovering over the field in table view, what meta data are displayed? Does QV recognize the field as Date or Timestamp, having a numeric representation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check Henric's two blog posts, they should explain how to load date / time values just fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-time-interval-as-a-dimension/m-p/893718#M658363</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-04-23T12:43:49Z</dc:date>
    </item>
  </channel>
</rss>

