<?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 Months Sorting Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150440#M28453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohhhhh I just figured it out...isnt like this?&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; YEARS,&lt;BR /&gt; MONTHS,&lt;BR /&gt; (index('Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec',MONTHS) - 1 ) / 4 + 1 as MonthNum,&lt;BR /&gt; DAYSNUM,&lt;BR /&gt; HOURS,&lt;BR /&gt; TOTAL_TIME,&lt;BR /&gt; SOURCE&lt;BR /&gt; ;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "IPDATASUM_VIEW";&lt;/P&gt;&lt;P&gt;and then use MONTHnum in expression? ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 12:56:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-29T12:56:53Z</dc:date>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150435#M28448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two issues developing a deashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue #1&lt;BR /&gt;------------&lt;BR /&gt;I have a table in which I have data data based on years and months. My structure is the following.&lt;/P&gt;&lt;P&gt;1. Year&lt;BR /&gt;2. Months&lt;BR /&gt;3. Call_time&lt;BR /&gt;4. Call_party&lt;/P&gt;&lt;P&gt;I have 2008 and 2009 year data and in the months field I have data like "Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul","Aug","Sep" ....and I am using MONTHS column as a group (dimension) so on...problem is that I have sorting order problems in my bar chart...It is not sorted properly...the above sequence is correct sequence rather its like "Apr", "Jul", "Mar", "May" and so on...weird.....can u please suggest what to do and how to solve this ...here is my loading script.&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;BR /&gt;UNQUALIFY YEARS, LDI_CD, TERM_CD, SOURCE;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM LDIOPERATORS;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TERMOPERATORS;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM IPDATASUM_VIEW;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM VW_PRE_PROBE_SUMMARY;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM VW_INCOMING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue # 2&lt;BR /&gt;--------------&lt;/P&gt;&lt;P&gt;we are a telecommunication company and its our testing of dashboards so in our database we created summary tables and we get data from capturing device which we process and then add that particular month data into the tables which updates the summary tables. I noticed that it sometimes skips a month data in chart like months are there except JUNE...OR SOMETIME March....what can be the problem?&lt;/P&gt;&lt;P&gt;Please answer as I am stuck.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 16:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150435#M28448</guid>
      <dc:creator />
      <dc:date>2009-07-28T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150436#M28449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for #1 I would suggest to use numerical for months instead. It pretty much depends on what purpose the output is.&lt;/P&gt;&lt;P&gt;just cast the month name via num() (and prepend the months &amp;lt; 10 with 0) to make 01 02 ... 12. Sortable and readable. But if you are in for some pretty things that's probably not a good solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 18:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150436#M28449</guid>
      <dc:creator />
      <dc:date>2009-07-28T18:57:58Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150437#M28450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use a number for the month. Use the formula below:&lt;/P&gt;&lt;P&gt;MonthNum = (index('Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec', Month) - 1 ) / 4 + 1&lt;/P&gt;&lt;P&gt;Use it in an expression field, then sort that, or use it in a load statement as:&lt;/P&gt;&lt;P&gt;(index('Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec', Month) - 1 ) / 4 + 1 as MonthNum&lt;/P&gt;&lt;P&gt;You may like to add it as a preceding load to your SQL statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2009 22:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150437#M28450</guid>
      <dc:creator />
      <dc:date>2009-07-28T22:10:48Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150438#M28451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sorting makes most sense on numerical values, display or formatting is something completely different. Thus you may use the above or - especially if viewing multiple years - use &lt;B&gt;MonthName(YourDate)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 03:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150438#M28451</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-07-29T03:56:12Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150439#M28452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IVANG thank you for the reply...tell me one thing...can u guide me where to put the formula you have mentioned. I mean should I put it in Chart-&amp;gt;Properties-&amp;gt;Sort-&amp;gt;Expression ? or somewhere else...please guide&lt;/P&gt;&lt;P&gt;MonthNum = (index('Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec', Month) - 1 ) / 4 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I would go for LOAD statement then how to write your code or use in the following load script. I want to make change in "IPDATASUM_VIEW" TABLE..can u guide? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Script&lt;BR /&gt;----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO [xxxx;DBQ=TELSU];&lt;BR /&gt;&lt;BR /&gt;QUALIFY *;&lt;BR /&gt;UNQUALIFY YEARS, LDI_CD, TERM_CD, SOURCE;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM LDIOPERATORS;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM TERMOPERATORS;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM IPDATASUM_VIEW;;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM VW_PRE_PROBE_SUMMARY;&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM VW_INCOMING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 11:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150439#M28452</guid>
      <dc:creator />
      <dc:date>2009-07-29T11:55:50Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150440#M28453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ohhhhh I just figured it out...isnt like this?&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; YEARS,&lt;BR /&gt; MONTHS,&lt;BR /&gt; (index('Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec',MONTHS) - 1 ) / 4 + 1 as MonthNum,&lt;BR /&gt; DAYSNUM,&lt;BR /&gt; HOURS,&lt;BR /&gt; TOTAL_TIME,&lt;BR /&gt; SOURCE&lt;BR /&gt; ;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "IPDATASUM_VIEW";&lt;/P&gt;&lt;P&gt;and then use MONTHnum in expression? ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 12:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150440#M28453</guid>
      <dc:creator />
      <dc:date>2009-07-29T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Months Sorting Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150441#M28454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you seem to have got it!&lt;/P&gt;&lt;P&gt;Adding the LOAD section puts the extra field in your table, which you then add to your chart and sort by that.&lt;/P&gt;&lt;P&gt;If you want to use the other way I suggested, use the way you have given ( i.e. sort by an expression and put the formula in the box ) or create a new expression using that formula, and sort on the new expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 15:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Months-Sorting-Problem/m-p/150441#M28454</guid>
      <dc:creator />
      <dc:date>2009-07-29T15:02:40Z</dc:date>
    </item>
  </channel>
</rss>

