<?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: Sorting a list box with months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521462#M553217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my scrpit i do an order by on the field MonthSort, which when you look at the data table puts all the apr first, may second, jun third etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then when I tick the box to sort by original load it does not come back in the order expected. I then try to use the expression to sort by MonthSort, but that does not work either. I would be greatful, if you could look at my current document and try and get it to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 15:30:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-13T15:30:51Z</dc:date>
    <item>
      <title>Sorting a list box with months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521460#M553215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm gonig slightly mad with this problem. I have created the field below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month(&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;,'MMM YYYY'),&lt;SPAN style="color: #800000;"&gt;[Mth Report Period]&lt;/SPAN&gt;)),'MMM YYYY')) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReportMonth1&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MonthYear e.g. 'Apr 2012'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[Mth Report Period] is a number e.g. 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This would give the result Mar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I then use the following field to get a number:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;lookup('ID','Month',&lt;SPAN style="color: #0000ff;"&gt;Text&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;,'MMM YYYY'),&lt;SPAN style="color: #800000;"&gt;[Mth Report Period]&lt;/SPAN&gt;)),'MMM YYYY'))),'MonthLookup') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MonthSort&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the lookup table basically starts with Apr as 1 and ends with Mar as 12, i then sort the data in the script by MonthSort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am then puting the field ReportMonth1 in a list box, but I cant get Apr first and Mar last. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I tick the box to say load order, or do an expression =Only(Data.MonthSort).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can someone please help as this is driving me crazy!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Simon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 14:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521460#M553215</guid>
      <dc:creator />
      <dc:date>2013-09-13T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a list box with months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521461#M553216</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;I use the expression within the sort tab.&amp;nbsp; I see you used a field called ID to create the presentation order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you could order your load and use this to drive the sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps and I haven't missed the point.&amp;nbsp; Let me know how you get on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 15:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521461#M553216</guid>
      <dc:creator />
      <dc:date>2013-09-13T15:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a list box with months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521462#M553217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my scrpit i do an order by on the field MonthSort, which when you look at the data table puts all the apr first, may second, jun third etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then when I tick the box to sort by original load it does not come back in the order expected. I then try to use the expression to sort by MonthSort, but that does not work either. I would be greatful, if you could look at my current document and try and get it to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 15:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521462#M553217</guid>
      <dc:creator />
      <dc:date>2013-09-13T15:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting a list box with months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521463#M553218</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;You just caught me before I went home.&amp;nbsp; I'll just put a little bit of code into the end of your report, this just reloads the Data Table and puts it in order of ID, and then renames the table.&amp;nbsp; Looking at it, it's similar to something you have in the "Main 10" tab but this is using Data.MonthSort which is a field that doesn't look to contain any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't been able to do a quick check due to lack of time and I can't access the source data.&amp;nbsp; Can you reload and let me know how you get on please?&amp;nbsp; Fingers crossed this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 15:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521463#M553218</guid>
      <dc:creator />
      <dc:date>2013-09-13T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a list box with months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521464#M553219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wondered if the above was the correct answer.&amp;nbsp; Did it prove useful at least? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-a-list-box-with-months/m-p/521464#M553219</guid>
      <dc:creator />
      <dc:date>2013-09-16T14:47:25Z</dc:date>
    </item>
  </channel>
</rss>

