<?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 How to create Morning and Afternoon fields in data load based on time of day? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727432#M55438</link>
    <description>&lt;P&gt;My Time field is formatted as follows:&lt;/P&gt;&lt;P&gt;time(Date#(textBetween(observation_time,'Last Updated on ', 'P'),'MMM DD YYYY, hh:mm tt')) as Time&lt;/P&gt;&lt;P&gt;I would like to create another field that can have the values of Morning or Afternoon, depending on the Time field.&amp;nbsp; If the time is between 04:00:00 AM and 11:59:59 AM, then it is morning.&amp;nbsp; If it is between 12:00:00 PM and 5:00:00 PM, then it is evening.&lt;/P&gt;&lt;P&gt;Help is appreciated very much.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:22:40 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2024-11-16T18:22:40Z</dc:date>
    <item>
      <title>How to create Morning and Afternoon fields in data load based on time of day?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727432#M55438</link>
      <description>&lt;P&gt;My Time field is formatted as follows:&lt;/P&gt;&lt;P&gt;time(Date#(textBetween(observation_time,'Last Updated on ', 'P'),'MMM DD YYYY, hh:mm tt')) as Time&lt;/P&gt;&lt;P&gt;I would like to create another field that can have the values of Morning or Afternoon, depending on the Time field.&amp;nbsp; If the time is between 04:00:00 AM and 11:59:59 AM, then it is morning.&amp;nbsp; If it is between 12:00:00 PM and 5:00:00 PM, then it is evening.&lt;/P&gt;&lt;P&gt;Help is appreciated very much.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727432#M55438</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2024-11-16T18:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Morning and Afternoon fields in data load based on time of day?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727464#M55440</link>
      <description>&lt;P&gt;if(Wildmatch(YourTimeField,'*AM*'),'Morning','Afternoon') as "Morning | Afternoon"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ft42_0-1594669084508.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37379i559908D42A54103B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ft42_0-1594669084508.png" alt="ft42_0-1594669084508.png" /&gt;&lt;/span&gt;&amp;nbsp;(example with Now())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727464#M55440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-13T19:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Morning and Afternoon fields in data load based on time of day?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727477#M55442</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp; That looks like it would be great for generic AM/PM filtering but we wanted specific time frames for Morning vs Afternoon.&amp;nbsp; Is there another approach that would provide that functionality?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1727477#M55442</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2020-07-13T21:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Morning and Afternoon fields in data load based on time of day?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1729635#M55634</link>
      <description>&lt;P&gt;You can build this as a master Item or in the data load:&lt;/P&gt;&lt;P&gt;= if( Time(Frac(observation_time))&amp;gt; '4:00:00 AM' and Time(Frac(observation_time))&amp;lt;'11:59:59 AM', 'Morning'&lt;BR /&gt;,if( Time(Frac(observation_time))&amp;gt; '12:00:00 PM' and Time(Frac(observation_time))&amp;lt; '5:00:00 PM', 'Evening','N/A'))&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 17:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1729635#M55634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Morning and Afternoon fields in data load based on time of day?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1729666#M55636</link>
      <description>&lt;P&gt;That works; I was not aware of the Frac function so I learned something new today.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 18:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-Morning-and-Afternoon-fields-in-data-load-based-on/m-p/1729666#M55636</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2020-07-21T18:43:59Z</dc:date>
    </item>
  </channel>
</rss>

