<?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: timestamps error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33309#M782951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your timestamp format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 13:47:10 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2018-03-15T13:47:10Z</dc:date>
    <item>
      <title>timestamps error</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33306#M782948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a filed in my DB which contain the Date with the stamp, If I put the colun in a chart or table I can see the timestamp but if I create a text box to display thre&amp;nbsp; date is display only -.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the number of hours between the time now() and my date from my DB and display red if is more then 12h or green if is &amp;lt; 12h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&lt;/P&gt;&lt;P&gt;=if(Num(Hour(interval(now()-Date)))&amp;gt;'12:00:00','Red','Green') but this is not right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33306#M782948</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps error</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33307#M782949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&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;=If((Now() - Date) &amp;gt; MakeTime(12), 'Red', 'Green')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33307#M782949</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-15T13:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps error</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33308#M782950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;expression working in text box &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: 12px;"&gt;&lt;IMG alt="grn.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196480_grn.PNG" style="height: 144px; width: 620px;" /&gt;=if(Num(Hour(interval(now()-Date)))&amp;gt;'12:00:00','Red','Green')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33308#M782950</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-03-15T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps error</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33309#M782951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your timestamp format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33309#M782951</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-03-15T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps error</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33310#M782952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few preliminary remarks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you sure Date contains a Datetime value that QlikView can understand? If the text string (that's what you get out of a DB most of the time) cannot be interpreted as a Datetime value, then Now()-Date will produce a NULL value and you will get a hyphen in your text box.&lt;/LI&gt;&lt;LI&gt;Are you sure that field Date at any moment contains just a single value? Fields can have multiple active values. If you then use that field in an expression, QlikView will implicitly apply an &lt;SPAN style="font-family: 'courier new', courier;"&gt;Only()&lt;/SPAN&gt; call to the field and that call will return NULL if more than one value is active.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW the simplest expression is probably this (on condition that Date has but a single correct DateTime value):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=IF (LocalTime() - Date &amp;gt; 0.5, 'Red', 'Green')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-error/m-p/33310#M782952</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-03-15T13:54:59Z</dc:date>
    </item>
  </channel>
</rss>

