<?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 Compare time field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869337#M1216492</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Maybe someone can help with correct script. I have data table like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slvedva123_0-1639224223019.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68402i5D3D11EF16A60F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slvedva123_0-1639224223019.png" alt="slvedva123_0-1639224223019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For each line I want to compare the time window and give value.&lt;/P&gt;
&lt;P&gt;Like if time is from 14:00:00 till 14:59:59, than value 1; if time is from 15:00:00 till 00:00:00, than 2.&lt;/P&gt;
&lt;P&gt;I tried with this :&lt;/P&gt;
&lt;P&gt;if(time(time([TIMEFIELD],'hh:mm:ss'))&amp;gt;='14:00:00' and time(time([TIMEFIELD],'hh:mm:ss'))&amp;lt;='14:59:59','1','2'), but it's don't work, for all records system give value 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:08:14 GMT</pubDate>
    <dc:creator>slvedva123</dc:creator>
    <dc:date>2021-12-11T12:08:14Z</dc:date>
    <item>
      <title>Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869337#M1216492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Maybe someone can help with correct script. I have data table like below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slvedva123_0-1639224223019.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68402i5D3D11EF16A60F01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slvedva123_0-1639224223019.png" alt="slvedva123_0-1639224223019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For each line I want to compare the time window and give value.&lt;/P&gt;
&lt;P&gt;Like if time is from 14:00:00 till 14:59:59, than value 1; if time is from 15:00:00 till 00:00:00, than 2.&lt;/P&gt;
&lt;P&gt;I tried with this :&lt;/P&gt;
&lt;P&gt;if(time(time([TIMEFIELD],'hh:mm:ss'))&amp;gt;='14:00:00' and time(time([TIMEFIELD],'hh:mm:ss'))&amp;lt;='14:59:59','1','2'), but it's don't work, for all records system give value 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869337#M1216492</guid>
      <dc:creator>slvedva123</dc:creator>
      <dc:date>2021-12-11T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869341#M1216494</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The same expression works at my end.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AshutoshBhumkar_0-1639227458891.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/68403i63644B0811466727/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AshutoshBhumkar_0-1639227458891.png" alt="AshutoshBhumkar_0-1639227458891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you share some sample data ?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869341#M1216494</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-12-11T12:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869344#M1216496</link>
      <description>&lt;P&gt;I use app on QlikSense server, how I can share these data?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869344#M1216496</guid>
      <dc:creator>slvedva123</dc:creator>
      <dc:date>2021-12-11T13:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869347#M1216497</link>
      <description>&lt;P&gt;Maybe it's somehow related, that this original field look like this: 2021-12-11 15:26:50 and with time funtion I take time 15:26:50&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869347#M1216497</guid>
      <dc:creator>slvedva123</dc:creator>
      <dc:date>2021-12-11T13:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869351#M1216498</link>
      <description>&lt;P&gt;That should&amp;nbsp;still work fine.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869351#M1216498</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-12-11T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869388#M1216499</link>
      <description>&lt;P&gt;I use this function to convert time -&amp;nbsp;time(time([INSERTDTM],'hh:mm')), but when I download this field in excel, it's show like this - "07.01.2021 13:06:15", how to really convert, that system take only time, without date?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869388#M1216499</guid>
      <dc:creator>slvedva123</dc:creator>
      <dc:date>2021-12-11T16:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare time field</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869398#M1216500</link>
      <description>&lt;P&gt;Try Tmestamp()&lt;/P&gt;
&lt;P&gt;Timestamp(Timestamp#(&lt;SPAN&gt;INSERTDTM,'dd.mm.yyyy hh:mm:ss'&lt;/SPAN&gt;),'hh:mm:ss')&lt;/P&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-time-field/m-p/1869398#M1216500</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-12-11T17:48:13Z</dc:date>
    </item>
  </channel>
</rss>

