<?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: compare time instruction IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531301#M1301828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thank &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;swuehl &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it works&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Oct 2013 10:42:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-26T10:42:08Z</dc:date>
    <item>
      <title>compare time instruction IF</title>
      <link>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531299#M1301824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;am new to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;forum,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I need&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;help,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I have a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;two&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;fields&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;name and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;arrival&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;time&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;I will wish to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;display all&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;persons arriving&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;from&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;7am&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;45&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;red&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;one in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;green.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;example&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" style="border: solid black 1.0pt;" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Header 1&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P align="center" style="margin-bottom: .0001pt; text-align: center;"&gt;&lt;STRONG style="color: white; font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Header 2&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;pat&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: lime;"&gt;05:45&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;nav&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: lime;"&gt;07:00&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;be&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: red;"&gt;07:45&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;Hugues&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif'; color: red;"&gt;10:50&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;but I&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do not know how&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;put&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in my expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;But I thought&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; color: blue;"&gt;If...Then...Else Statement,&lt;/SPAN&gt;&lt;SPAN style="font-size: 18.0pt; font-family: 'Verdana','sans-serif'; color: blue;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="color: blue; font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;rgb(255,255,255), rgb(0,255,0),hour(7),minute(45)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531299#M1301824</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: compare time instruction IF</title>
      <link>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531300#M1301826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, make sure that you've read in the time field correctly:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/06/07/get-the-dates-right"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/06/07/get-the-dates-right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you can create a straight table chart with field 'name' as dimension and &lt;/P&gt;&lt;P&gt;=only([arrival time])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression, assuming one arrival time per name value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you've got two options for colour the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either use the old-style visual cues tab in chart properties, and enter an expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maketime(7,45) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the entry field for upper and lower limit (chosing an appropriate colour also).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="VisualCue1.png" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/48180_VisualCue1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, second option, use a Text Color attribute expression in expression tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="VisualCue1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48181_VisualCue1.png" style="width: 620px; height: 544px;" /&gt;&lt;/P&gt;&lt;P&gt;Expression could look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( [arrival time] &amp;gt;= maketime(7,45), lightred(), lightgreen() )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 10:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531300#M1301826</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-26T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: compare time instruction IF</title>
      <link>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531301#M1301828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thank &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;swuehl &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it works&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 10:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/compare-time-instruction-IF/m-p/531301#M1301828</guid>
      <dc:creator />
      <dc:date>2013-10-26T10:42:08Z</dc:date>
    </item>
  </channel>
</rss>

