<?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 Hour calculation along with timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193116#M54523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 295pt; border-collapse: collapse;" width="392"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 119pt; mso-width-source: userset; mso-width-alt: 5778; mso-outline-parent: collapsed;" width="158" /&gt;&lt;COL style="width: 102pt; mso-width-source: userset; mso-width-alt: 4973; mso-outline-parent: collapsed;" width="136" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="width: 74pt; height: 12.75pt; background-color: transparent; border: #f0f0f0;" width="98"&gt;Order&lt;/TD&gt;&lt;TD class="xl65" style="width: 119pt; background-color: transparent; border: #f0f0f0;" width="158"&gt;ToDate&lt;/TD&gt;&lt;TD class="xl65" style="width: 102pt; background-color: transparent; border: #f0f0f0;" width="136"&gt;FromDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt; background-color: white; border: black 0.5pt solid;"&gt;1001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black 0.5pt solid; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625160000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black 0.5pt solid; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625143000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1002&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090626240000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625163000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625143000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625133000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1004&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625163000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625160000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625133000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625113000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Todate-From date -I would like to have the result will be in the hour&lt;/P&gt;&lt;P&gt;interval(ToDate-FromDate)*24 as Hours is working .When I have Date along with time is not calculating&lt;/P&gt;&lt;P&gt;I tried Interval#,Floor ,Hour,timestamp# - nothing worked.&lt;/P&gt;&lt;P&gt;timestamp(ToDate-FromDate) as NoofHours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(FromDate&amp;amp; ftime,'DD/MM/YYYY hh:mm:ss') &lt;B&gt;as&lt;/B&gt; FDATETIME1,&lt;/P&gt;&lt;P&gt;timestamp#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(ToDate&amp;amp; totime,'DD/MM/YYYY hh:mm:ss') &lt;B&gt;as&lt;/B&gt; TODATETIME1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 02:41:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-22T02:41:37Z</dc:date>
    <item>
      <title>Hour calculation along with timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193116#M54523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 295pt; border-collapse: collapse;" width="392"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 119pt; mso-width-source: userset; mso-width-alt: 5778; mso-outline-parent: collapsed;" width="158" /&gt;&lt;COL style="width: 102pt; mso-width-source: userset; mso-width-alt: 4973; mso-outline-parent: collapsed;" width="136" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="width: 74pt; height: 12.75pt; background-color: transparent; border: #f0f0f0;" width="98"&gt;Order&lt;/TD&gt;&lt;TD class="xl65" style="width: 119pt; background-color: transparent; border: #f0f0f0;" width="158"&gt;ToDate&lt;/TD&gt;&lt;TD class="xl65" style="width: 102pt; background-color: transparent; border: #f0f0f0;" width="136"&gt;FromDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="height: 12.75pt; background-color: white; border: black 0.5pt solid;"&gt;1001&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black 0.5pt solid; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625160000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black 0.5pt solid; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625143000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1002&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090626240000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625163000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1003&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625143000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625133000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1004&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625163000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625160000&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl63" height="17" style="border-right: black 0.5pt solid; border-top: black; border-left: black 0.5pt solid; border-bottom: black 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1005&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625133000&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-right: black 0.5pt solid; border-top: black; border-left: black; border-bottom: black 0.5pt solid; background-color: white;"&gt;20090625113000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Todate-From date -I would like to have the result will be in the hour&lt;/P&gt;&lt;P&gt;interval(ToDate-FromDate)*24 as Hours is working .When I have Date along with time is not calculating&lt;/P&gt;&lt;P&gt;I tried Interval#,Floor ,Hour,timestamp# - nothing worked.&lt;/P&gt;&lt;P&gt;timestamp(ToDate-FromDate) as NoofHours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(FromDate&amp;amp; ftime,'DD/MM/YYYY hh:mm:ss') &lt;B&gt;as&lt;/B&gt; FDATETIME1,&lt;/P&gt;&lt;P&gt;timestamp#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(ToDate&amp;amp; totime,'DD/MM/YYYY hh:mm:ss') &lt;B&gt;as&lt;/B&gt; TODATETIME1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 02:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193116#M54523</guid>
      <dc:creator />
      <dc:date>2009-09-22T02:41:37Z</dc:date>
    </item>
    <item>
      <title>Hour calculation along with timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193117#M54524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gave this a try, but it seems you can't do any operations between variables created with timestamp# (I tried substracting, using age(), etc) ..hopefully somebody has a better idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 07:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193117#M54524</guid>
      <dc:creator />
      <dc:date>2009-09-22T07:13:42Z</dc:date>
    </item>
    <item>
      <title>Hour calculation along with timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193118#M54525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Assuming the table data represents your timestamp format. Then the expression should be: &lt;P&gt;(timestamp#(ToDate,'YYYYMMDDhhmmss')-timestamp#(FromDate,'YYYYMMDDhhmmss'))*24&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hour-calculation-along-with-timestamp/m-p/193118#M54525</guid>
      <dc:creator />
      <dc:date>2009-09-22T11:33:53Z</dc:date>
    </item>
  </channel>
</rss>

