<?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 Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431004#M489842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't want to truncate decimals as those represent the time as a fraction of a day. There's also no need to create all these fields for time. You can create one time field and in the charts and tables use a function to display the time in the format you need. You've already seen the time() function. You can pass it a second parameter to specify the formatting. For example time(0.85,'hh:mm TT') will show '8:24 PM'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2012 19:18:37 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-11-14T19:18:37Z</dc:date>
    <item>
      <title>Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431002#M489840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I'm trying to create a time dimension with the following columns. &lt;/P&gt;&lt;P&gt;Time#, Time, Hour, Min, Sec, Hour24, AM/PM&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is when creating the Time# column, the same time can be stored in many ways. &lt;/P&gt;&lt;P&gt;e.g. =Num(MakeTime(5,5,5)) =&amp;gt; 0.21186342593865&lt;/P&gt;&lt;P&gt;=Num(Time('5:05:05')) =&amp;gt; 0.21186342592593&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like I need to truncate to the x's decimal point before I store the Time#, has anyone figure out what that decimal point is?&lt;/P&gt;&lt;P&gt;Other suggestions also welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 22:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431002#M489840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-13T22:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431003#M489841</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 assume the time values are similar to Excel's definition of TIMEVALUE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Time values are a portion of a date value and represented by a decimal number (for example, 12:00 PM is represented as 0.5 because it is half of a day). &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing my theory with Qlikview:&lt;/P&gt;&lt;P&gt;=num(time('12:00:00'),'##,##########') gives me 0.5&lt;/P&gt;&lt;P&gt;=num(time('0:00:00.001'),'##,##########') gives me 0,0000000116&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing my theory with Excel:&lt;/P&gt;&lt;P&gt;=TIMEVALUE("12:00:00") gives me 0.5&lt;/P&gt;&lt;P&gt;=TIMEVALUE("00:00:00,001") gives me 0.0000000116&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my assumption was correct: Qlikview stores the time as portions of a full day, with 0.5 half a day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dion&lt;/P&gt;&lt;P&gt;Sr. BI Consultant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 22:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431003#M489841</guid>
      <dc:creator />
      <dc:date>2012-11-13T22:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431004#M489842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't want to truncate decimals as those represent the time as a fraction of a day. There's also no need to create all these fields for time. You can create one time field and in the charts and tables use a function to display the time in the format you need. You've already seen the time() function. You can pass it a second parameter to specify the formatting. For example time(0.85,'hh:mm TT') will show '8:24 PM'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 19:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431004#M489842</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-14T19:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431005#M489843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView recommends that if possible do most of your functions on your load and not in charts.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, your solution still doesn't work when you're trying to join multiple tables on a Time field, given that the time fields is different in the tables.&amp;nbsp; I attached an example to my original post; check it out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 21:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431005#M489843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-14T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431006#M489844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I very much doubt Qlikview recommends to duplicate data if all you want is to show the data in different formats in the UI. I think they'd recommend to use the expression Number Format Settings instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem that maketime, timestamp and time do create different fractions. So a floor(MyTime,0.000000001) might be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 08:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431006#M489844</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-15T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431007#M489845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is not surrounding UI and display of fields but joining tables with a time dimension.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine you want to use Hour as your dimension in a chart when your tables contain a time.&amp;nbsp; What would you do?&amp;nbsp; Create a Calculated Dimension?&amp;nbsp; I would rather do it on the load and duplicate the data.&amp;nbsp; Anyways we're digressing from the original question.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt; It does seem that maketime, timestamp and time do create different fractions. So a floor(MyTime,0.000000001) might be needed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now you're getting my point.&amp;nbsp; Why did you choose to the 9th decimal point?&amp;nbsp;&amp;nbsp; I also chose to Round to the 9th decimal point but that's just a hunch based on the qvw I created and attached on my original post.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has a better understanding how Time works in QlikView, I would really appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 17:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Dimension/m-p/431007#M489845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-15T17:15:16Z</dc:date>
    </item>
  </channel>
</rss>

