<?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 sorting a time dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312871#M1191835</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 can use num function to get zero .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg :&amp;nbsp; Num(Month,'00') wil give you 01,02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The YearMonth which we will create will be used at sort tab function for sorting . It will not be displayed in front of the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On front of Chart it will be Q1-2010 , Q2-2010 and Sort tab--&amp;gt;Expression it will be =YearMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got my point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 03:50:34 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2011-07-28T03:50:34Z</dc:date>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312868#M1191832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;hi guys, this is a follow-up from a previous discussion here &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/136417#136417"&gt;http://community.qlik.com/message/136417#136417&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i currently am not sure how i can sort the fields in my cyclic group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my cyclic group has these fields: year, quarter-year, quarter, month, week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the charts look fine if u look at a single year, so the months will sort themselves numerically from 1 to 12 and quarter-year will appear from Q1-2011 to Q2-2011 and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, if i choose 2010 and 2011, i see quarter-year Q1-2010 Q1-2011 Q2-2010 Q2-2011 Q3-2010 Q3-2011 Q4-2010 in this order...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i make it appear in this order? Q1-2010 Q2-2010 Q3-2010 Q4-2010 Q1-2011 Q2-2011 Q3-2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the order does not change if i include the date field in the Sort tab under expression...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 02:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312868#M1191832</guid>
      <dc:creator />
      <dc:date>2011-07-28T02:26:24Z</dc:date>
    </item>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312869#M1191833</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;One way to achieve it would be. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create YearMonth field like 201001, 201002, 201003...... etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use it in the sort tab expresion =YearMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 02:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312869#M1191833</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-28T02:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312870#M1191834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Deepak thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i understand your method but i realised my month/weeks are 1 2 3 4 5 instead of 01 02 03 04 05 for those that are below 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so eventually the concatenated number may be incorrect in values already&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how could i add a 0 without affecting the appearance of 1 2 3 4 5 (i don't want to see 01 02 03 04 05 on the charts) or is there another workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 03:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312870#M1191834</guid>
      <dc:creator />
      <dc:date>2011-07-28T03:26:44Z</dc:date>
    </item>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312871#M1191835</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 can use num function to get zero .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg :&amp;nbsp; Num(Month,'00') wil give you 01,02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The YearMonth which we will create will be used at sort tab function for sorting . It will not be displayed in front of the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On front of Chart it will be Q1-2010 , Q2-2010 and Sort tab--&amp;gt;Expression it will be =YearMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got my point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 03:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312871#M1191835</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-28T03:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312872#M1191836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm i thought it would work but it still didnt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the order becomes Q1-2011 Q3-2011 Q2-2011 Q4-2010 Q3-2010 Q1-2010 Q42-2010 when i select year 2010 and 2011 from list boxes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've also added a week field but it shouldnt affect the order right...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312872#M1191836</guid>
      <dc:creator />
      <dc:date>2011-07-28T06:16:46Z</dc:date>
    </item>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312873#M1191837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Axon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a sample file. In general scenario&amp;nbsp; it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312873#M1191837</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-07-28T06:48:48Z</dc:date>
    </item>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312874#M1191838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code in the Sort &amp;gt;&amp;gt; Expression Tab and select Ascending, remove all other checkboxes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=mid(QuarterYearField,2,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312874#M1191838</guid>
      <dc:creator>rahulgupta</dc:creator>
      <dc:date>2011-07-28T06:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312875#M1191839</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;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In sort&amp;nbsp; tab you&amp;nbsp; just select the load order and deselect every other selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312875#M1191839</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-28T06:52:20Z</dc:date>
    </item>
    <item>
      <title>sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312876#M1191840</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 always use the dual function in het load statement. With it you can combine text and a number or date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dual('Q1 2010',201001) as fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you sort the numeric value will be used and in the display the text will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original article where I first read about dual:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2010/12/27/creating-a-custom-sort-order-load-order-dual/"&gt;http://www.qlikfix.com/2010/12/27/creating-a-custom-sort-order-load-order-dual/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another expample of using dual:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.qvapps.com/2010/09/10/qlikview-tutorial-vertical-labels-inside-bars/"&gt;http://blog.qvapps.com/2010/09/10/qlikview-tutorial-vertical-labels-inside-bars/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312876#M1191840</guid>
      <dc:creator />
      <dc:date>2011-07-28T06:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312877#M1191841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, thanks for the help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the order works fine when i use YEARQUARTER instead of YEARMONTH in the new field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm not really sure why, can any of you enlighten me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i shall describe the situation again:&lt;/P&gt;&lt;P&gt;- i have a calendar table other than the data tables&lt;/P&gt;&lt;P&gt;- the calendar table is necessary since we operate on a different week system as QV&lt;/P&gt;&lt;P&gt;- the calendar table has WEEK, MONTH, QUARTER, YEAR integers and other fields include the DATE&lt;/P&gt;&lt;P&gt;- i made a new field QUARTER-YEAR in order to achieve my objective as stated in the link in my 1st post&lt;/P&gt;&lt;P&gt;- i have a cyclic group for all charts, the cyclic group has YEAR, QUARTER, QUARTER-YEAR, MONTH and WEEK as its dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312877#M1191841</guid>
      <dc:creator />
      <dc:date>2011-07-28T07:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312878#M1191842</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;&amp;nbsp;&amp;nbsp; How you have created a quarter-year field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you used the concate function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Or it is created at the time of creating the calander?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312878#M1191842</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-28T07:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312879#M1191843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i concatenated the QUARTER and YEAR fields of my calendar table in load script to form the new QUARTER-YEAR field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312879#M1191843</guid>
      <dc:creator />
      <dc:date>2011-07-28T07:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: sorting a time dimension</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312880#M1191844</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then istead of using any other formula you can select the load order in sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This way the order in which it is loaded in qlikview, that will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 07:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-a-time-dimension/m-p/312880#M1191844</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-28T07:19:14Z</dc:date>
    </item>
  </channel>
</rss>

