<?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: extract field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173668#M381237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do simply this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;time(MIN_DATE_DEB) as TIME_MIN_DATE_DEB,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It will make exactly what you want without need much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 12:01:19 GMT</pubDate>
    <dc:creator>miguelbraga</dc:creator>
    <dc:date>2016-09-09T12:01:19Z</dc:date>
    <item>
      <title>extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173659#M381228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello nice people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field in my database that contains date and time&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136943_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I would like to extract only time to display it in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea, how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 09:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173659#M381228</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-09-09T09:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173660#M381229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Timestamp(Timestamp#('08/01/2013 08:21:00 AM','DD/MM/YYYY hh:mm:ss tt'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173660#M381229</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2016-09-09T10:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173661#M381230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format expression in QlikView should be either of the below options. The shorter one will work if your format variables in QlikView matches the incoming format from data base. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice, the data is loaded as a timestamp, the date portion is removed by using Frac(), and finally the time value is formatted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time(Frac(MIN_DATE_DEB))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Time(Frac(Timestamp#(MIN_DATE_DEB, 'DD/MM/YYYY hh:mm:ss')))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173661#M381230</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T10:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173662#M381231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This function will create something that looks like a time, but it will logically be a timestamp. The underlying number in the timestamp must be reformatted to a decimal value with 0 integer. See my example below, where the numerical format is done with Frac().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outer function should be Time(). It should not require format pattern, as it will then revert to the applcation default pattern. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173662#M381231</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T10:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173663#M381232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check whether your time field is proper date and time field...&lt;/P&gt;&lt;P&gt;Then you can extract time by using:&lt;/P&gt;&lt;P&gt;=Timestamp([Field Name],'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i did for now(), its working fine,&lt;/P&gt;&lt;P&gt;=Timestamp(Now(),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173663#M381232</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2016-09-09T10:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173664#M381233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's assume your date field like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MIN_DATE_DEB&lt;/P&gt;&lt;P&gt;08/01/2013 08:21:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp(Timestamp#(MIN_DATE_DEB, 'DD/MM/YYYY hh:mm:ss'),'hh:mm:ss')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173664#M381233</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T11:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173665#M381234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see my previous comment(s) above. This is not a accurate way to reformat a timestamp into a time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173665#M381234</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173666#M381235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've seen that - This scenario how do we know is that is running in the morning or After noon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, You used simple TIME - So, It could be the time in the evening as well. This format is 12 not 24 Hours then how do we identify?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Really help needed TONI.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173666#M381235</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-09T11:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173667#M381236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hh:mm:ss will be 24 hour format and hh:mm:ss TT is 12 hour format with PM/AM at the end. So Time alone will tell you if its morning or evening&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173667#M381236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-09T11:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173668#M381237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do simply this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;time(MIN_DATE_DEB) as TIME_MIN_DATE_DEB,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It will make exactly what you want without need much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173668#M381237</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-09-09T12:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173669#M381238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil, I am not sure you understand the formatting logic in QlikView. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A proper time is represented by a decimal value, where integer is a zero. A timestamp is a decimal value, where integer is not a zero. Converting a timestamp into a time value requires using Frac() to remove the non-zero integer value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using Time() or Time#() you will apply proper meta data tags to your time data, which means the data will be tagged as time. It also means that the functions by default will apply the TimeFormat variable value as its format pattern, which means you do not have to type the format pattern every time you convert data. This make you script easier to maintain, and mean you control the output format from your format variable and not in a each function call. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173669#M381238</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T12:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: extract field</title>
      <link>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173670#M381239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will not generate a proper time value, f&lt;SPAN style="font-size: 13.3333px;"&gt;or the third time in this thread. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 12:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/extract-field/m-p/1173670#M381239</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2016-09-09T12:10:45Z</dc:date>
    </item>
  </channel>
</rss>

