<?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: Sort by Hour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93199#M753015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; that did it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 12:59:47 GMT</pubDate>
    <dc:creator>brf10043</dc:creator>
    <dc:date>2018-10-31T12:59:47Z</dc:date>
    <item>
      <title>Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93193#M753003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a bar chart that tracks the number of incidents by hour of the day.&amp;nbsp; I am using the following code to convert the IM Arrival &lt;SPAN style="font-size: 10pt;"&gt;Time into an hour with AM/PM for my dimension .&amp;nbsp; I'm thinking that there might be a better way to do this, but I've not found it yet.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Mod&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Hour&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[IM Arrival Time]&lt;/SPAN&gt;),12)&amp;amp;' '&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;time&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[IM Arrival Time]&lt;/SPAN&gt;, 'TT') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now that I have this working, I can't seem to get the chart to sort by hour (Midnight to 11PM) Here's what I currently have.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217128_pastedImage_14.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93193#M753003</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93194#M753004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Frac([IM Arrival Time]), 'hh TT')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93194#M753004</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T19:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93195#M753005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Mod(Hour([IM Arrival Time]),12)&amp;amp;' '&amp;amp;time([IM Arrival Time], 'TT'), Frac([IM Arrival Time]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93195#M753005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T19:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93196#M753006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny, but neither of those ideas work.&amp;nbsp; I end up with multiple bars for a given hour.&amp;nbsp; Not sure if this may help, but here is the code in the load script that creates the Arrival_Time Column&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ARRIVAL_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/ 86400 + 25569),'hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[IM Arrival Time] &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93196#M753006</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2018-10-30T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93197#M753009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, taking a closer look at the results using &lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;Mod&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Hour&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[IM Arrival Time]&lt;/SPAN&gt;),12)&amp;amp;' '&amp;amp;&lt;SPAN style="color: #0000ff;"&gt;time&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[IM Arrival Time]&lt;/SPAN&gt;, 'TT') &lt;/SPAN&gt; I don't think that it's working properly.&amp;nbsp; As 12 noon is showing up as 0 PM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is something I should be doing in the load script to convert the Arrival_Time column to Arrival hours formatted as 12AM through 11 PM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code that creates the Arrival Time column is below.&amp;nbsp; It takes a Remedy date (Date in seconds) and converts it into a time.&amp;nbsp; If I could convert it directly to an hour am/pm in the load script it might be better than trying to convert it in the dimension.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ARRIVAL_TIME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/ 86400 + 25569),'hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[IM Arrival Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 20:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93197#M753009</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2018-10-30T20:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93198#M753012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Time(Floor([IM Arrival Time], 1/24), 'hh TT')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 22:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93198#M753012</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T22:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by Hour</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93199#M753015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!&amp;nbsp; that did it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 12:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-Hour/m-p/93199#M753015</guid>
      <dc:creator>brf10043</dc:creator>
      <dc:date>2018-10-31T12:59:47Z</dc:date>
    </item>
  </channel>
</rss>

