<?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: How to create time from 3 fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733695#M537784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have and sample data file then provide or please see this small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[ StartTimeHour,StartTimeMinute,StartTimeAM_PM&lt;/P&gt;&lt;P&gt;7,0,PM&lt;/P&gt;&lt;P&gt;8,15,PM&lt;/P&gt;&lt;P&gt;1,15,AM &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Hour(time#(StartTimeHour,'hh')) as Hour,&lt;/P&gt;&lt;P&gt;Minute(time#(StartTimeMinute,'mm')) as Minute,&lt;/P&gt;&lt;P&gt;Hour(time#(StartTimeHour,'hh'))&amp;amp;':'&amp;amp;Minute(time#(StartTimeMinute,'mm'))&amp;amp;' '&amp;amp;StartTimeAM_PM as HourTime&lt;/P&gt;&lt;P&gt;Resident Tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 14:17:33 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-10-30T14:17:33Z</dc:date>
    <item>
      <title>How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733687#M537776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got three fields that I'm trying to combine and make one hour field if someone has the best way for this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are my three fields:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;StartTimeHour = 7&lt;/LI&gt;&lt;LI&gt;StartTimeMinute = 0&lt;/LI&gt;&lt;LI&gt;StartTimeAM_PM = PM&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get it to display 7:00 PM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733687#M537776</guid>
      <dc:creator>patbuchanan</dc:creator>
      <dc:date>2014-10-30T13:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733688#M537777</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;use the below&lt;/P&gt;&lt;P&gt;Time#(MakeTime('7','00'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733688#M537777</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733689#M537778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try Maketime()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733689#M537778</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-10-30T13:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733690#M537779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&amp;nbsp; MakeTime(&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeHour&lt;/SPAN&gt; + if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeAM_PM&lt;/SPAN&gt;='PM',12,0) , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeMinute&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733690#M537779</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-30T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733691#M537780</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; StartTimeHour &amp;amp;':'&amp;amp;StartTimeMinute &amp;amp;' '&amp;amp;StartTimeAM_PM as Time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(OR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MakeTime(&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeHour&lt;/SPAN&gt; + if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeAM_PM&lt;/SPAN&gt;='PM',12,0) , &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeMinute&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733691#M537780</guid>
      <dc:creator />
      <dc:date>2014-10-30T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733692#M537781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Maketime() or you can individually use fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Hour(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeHour&lt;/SPAN&gt;)&amp;amp;':'&amp;amp;Minute(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeMinute&lt;/SPAN&gt;)&amp;amp;' '&amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeAM_PM as HourTime&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;From Location;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Maketime( Hour(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeHour&lt;/SPAN&gt;), Minute(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeMinute&lt;/SPAN&gt;) )&amp;amp;''&amp;amp;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;StartTimeAM_PM &lt;/SPAN&gt;&lt;/SPAN&gt; as HourTime&lt;/P&gt;&lt;P&gt;From Location;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733692#M537781</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733693#M537782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Shruti, but you might also change the SET Timeformat to&amp;nbsp;&amp;nbsp;&amp;nbsp; SET TimeFormat='h:mm TT';&amp;nbsp; to avoid the seconds at the end and display 7:00 PM only &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733693#M537782</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-10-30T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733694#M537783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternative from above that drops&amp;nbsp; the if() but still reading PM vs AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= time(time#( StartTimeHour &amp;amp; ':' &amp;amp; StartTimeMinute &amp;amp; ' ' &amp;amp; StartTimeAM_PM,'hh:mm TTT'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= MakeTime(&amp;nbsp; StartTimeHour + if(StartTimeAM_PM='PM',12,0) , StartTimeMinute)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733694#M537783</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-10-30T13:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733695#M537784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have and sample data file then provide or please see this small example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[ StartTimeHour,StartTimeMinute,StartTimeAM_PM&lt;/P&gt;&lt;P&gt;7,0,PM&lt;/P&gt;&lt;P&gt;8,15,PM&lt;/P&gt;&lt;P&gt;1,15,AM &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Hour(time#(StartTimeHour,'hh')) as Hour,&lt;/P&gt;&lt;P&gt;Minute(time#(StartTimeMinute,'mm')) as Minute,&lt;/P&gt;&lt;P&gt;Hour(time#(StartTimeHour,'hh'))&amp;amp;':'&amp;amp;Minute(time#(StartTimeMinute,'mm'))&amp;amp;' '&amp;amp;StartTimeAM_PM as HourTime&lt;/P&gt;&lt;P&gt;Resident Tab;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 14:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733695#M537784</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-10-30T14:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create time from 3 fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733696#M537785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pat Buchanan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this also............&lt;/P&gt;&lt;P&gt;Timeconvert:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;time(time#(PurgeChar(MakeTime(StartTimeHour,StartTimeMinute),'AMP')&amp;amp;StartTimeAM_PM,'hh:mm:ss TT'),'hh:mm TT') as merge&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;StartTimeHour,StartTimeMinute,StartTimeAM_PM&lt;/P&gt;&lt;P&gt;7,0,PM&lt;/P&gt;&lt;P&gt;8,30,AM&lt;/P&gt;&lt;P&gt;6,04,AM&lt;/P&gt;&lt;P&gt;5,01,PM&lt;/P&gt;&lt;P&gt;12,04,PM&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark this as Answered if you have found solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lokeshwari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-time-from-3-fields/m-p/733696#M537785</guid>
      <dc:creator />
      <dc:date>2016-01-28T13:33:15Z</dc:date>
    </item>
  </channel>
</rss>

