<?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: Output of Hour() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268105#M399221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌.&amp;nbsp; Thanks for the correction!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 19:27:10 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2017-01-31T19:27:10Z</dc:date>
    <item>
      <title>Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268097#M399213</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;why am i getting the '0' value in vHour variable using Today() function?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151472_1.jpg" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/151473_2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268097#M399213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268098#M399214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vToday = Today();&lt;/P&gt;&lt;P&gt;LET vHour = Hour($(vToday));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The vHour will still be equal to 0 because Today() uses 12:00 AM for its timestamp.&amp;nbsp; If you want the current timestamp, you'll want to use now():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vToday = Now();&lt;/P&gt;&lt;P&gt;LET vHour = Hour($(vToday));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268098#M399214</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-01-31T18:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268099#M399215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick reply but can you please specify why should i use Dollar sign expansion and I cannot see the hour value based on the day like Today?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268099#M399215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T18:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268100#M399216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;LET vHour = Hour(Now())&lt;SPAN style="text-decoration: line-through;"&gt;Today()&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268100#M399216</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T18:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268101#M399217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer is still giving me 0 in vHour variable but in vToday variable it is giving me date and time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268101#M399217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T18:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268102#M399218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the load script, you need to use dollar sign expansion to get the value in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the hour, Today() will return '2017-01-31 00:00:00.000' while Now() will return the timestamp of when it is called (i.e. '2017-01-31 10:49:03.386').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268102#M399218</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-01-31T18:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268103#M399219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you need dollar sign expansion here (you would need it in a LOAD statement, not necessarily in control statements or LET variable assignment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vToday = Now();&lt;/P&gt;&lt;P&gt;Let Hour = Hour(vToday);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;vToday&lt;/SPAN&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;31.01.2017 20:09:10 &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;vHour&lt;/SPAN&gt;&lt;/TH&gt;&lt;TD bgcolor="#ffffff"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268103#M399219</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-31T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268104#M399220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vHour = Hour(Now()); is giving 0? Really?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268104#M399220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268105#M399221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌.&amp;nbsp; Thanks for the correction!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 19:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268105#M399221</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-01-31T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268106#M399222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You so much for the information and your answer worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 04:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268106#M399222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output of Hour() function</title>
      <link>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268107#M399223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Earlier it was giving me 0 but after u made the correction, it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 04:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Output-of-Hour-function/m-p/1268107#M399223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T04:44:22Z</dc:date>
    </item>
  </channel>
</rss>

