<?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: where clause for time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584920#M684431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where time(time#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sales_time, 'hh:mm:ss.fff' ) &amp;lt; time(time#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sales_time, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'11:59:59.000'&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'hh:mm:ss.fff' ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 17:21:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-29T17:21:17Z</dc:date>
    <item>
      <title>where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584919#M684430</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'm doing a simple where clause on sales_time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where sales_time &amp;lt; '11:59:59.000' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample of sales_time values&lt;/P&gt;&lt;P&gt;02:39:14.000&lt;/P&gt;&lt;P&gt;02:40:40.000&lt;/P&gt;&lt;P&gt;02:47:32.000&lt;/P&gt;&lt;P&gt;04:00:00.000&lt;/P&gt;&lt;P&gt;04:01:28.000&lt;/P&gt;&lt;P&gt;04:45:02.000&lt;/P&gt;&lt;P&gt;04:50:00.000&lt;/P&gt;&lt;P&gt;05:00:00.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it returns 0 lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried num(sales_time ) or time(sales_time) or timestamp(sales_time) or num(timestamp(sales_time)), none of it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help please .... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584919#M684430</guid>
      <dc:creator />
      <dc:date>2014-01-29T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584920#M684431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where time(time#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sales_time, 'hh:mm:ss.fff' ) &amp;lt; time(time#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sales_time, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'11:59:59.000'&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'hh:mm:ss.fff' ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584920#M684431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584921#M684432</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 would use the &lt;STRONG&gt;hour&lt;/STRONG&gt;(), &lt;STRONG&gt;minute&lt;/STRONG&gt;() and &lt;STRONG&gt;second&lt;/STRONG&gt;() functions&lt;/P&gt;&lt;P&gt;sth like&lt;/P&gt;&lt;P&gt;WHERE hour(sales_time)*3600+minute(sales_time)*60+second(sales_time) &amp;lt; 11*3600+59*60+60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584921#M684432</guid>
      <dc:creator />
      <dc:date>2014-01-29T17:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584922#M684433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your TimeFormat definition looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the comparision should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 17:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584922#M684433</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-01-29T17:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584923#M684434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems your filter works for me, with this&lt;/P&gt;&lt;P&gt;Where sales_time &amp;lt; '02:59:59.000';&lt;/P&gt;&lt;P&gt;I get 3 rows,&lt;/P&gt;&lt;P&gt;Here the script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='€ #.##0,00;-€ #.##0,00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='DD/MM/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='gen;feb;mar;apr;mag;giu;lug;ago;set;ott;nov;dic';&lt;/P&gt;&lt;P&gt;SET DayNames='lun;mar;mer;gio;ven;sab;dom';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *&amp;nbsp; Where sales_time &amp;lt; '02:59:59.000';&lt;/P&gt;&lt;P&gt;//Where sales_time &amp;lt; '11:59:59.000'&lt;/P&gt;&lt;P&gt;// &lt;/P&gt;&lt;P&gt;//sample of sales_time values&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;sales_time&lt;/P&gt;&lt;P&gt;02:39:14.000&lt;/P&gt;&lt;P&gt;02:40:40.000&lt;/P&gt;&lt;P&gt;02:47:32.000&lt;/P&gt;&lt;P&gt;04:00:00.000&lt;/P&gt;&lt;P&gt;04:01:28.000&lt;/P&gt;&lt;P&gt;04:45:02.000&lt;/P&gt;&lt;P&gt;04:50:00.000&lt;/P&gt;&lt;P&gt;05:00:00.000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 19:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584923#M684434</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-29T19:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584924#M684435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill,&lt;/P&gt;&lt;P&gt;You have the closest solution. &lt;/P&gt;&lt;P&gt;but with this sequence time#(time()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 08:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584924#M684435</guid>
      <dc:creator />
      <dc:date>2014-01-30T08:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584925#M684436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it'd work that way, and i considered it as "best practice". thanks. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 08:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584925#M684436</guid>
      <dc:creator />
      <dc:date>2014-01-30T08:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: where clause for time</title>
      <link>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584926#M684437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sales_time&amp;lt; time(time#(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;sales_time, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'11:59:59.000'&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, 'hh:mm:ss.fff' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 09:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-clause-for-time/m-p/584926#M684437</guid>
      <dc:creator />
      <dc:date>2014-01-30T09:19:29Z</dc:date>
    </item>
  </channel>
</rss>

