<?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: Month, Week, etc. and Year chart dimensions sorting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648095#M677664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please attached your qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 08:33:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-10T08:33:39Z</dc:date>
    <item>
      <title>Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648094#M677663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody.&lt;/P&gt;&lt;P&gt;I have an issue with a very easy task, please help.&lt;/P&gt;&lt;P&gt;I can't get correct sorting in bar charts with 2 separate dimensions (1st dim - Week, Month, Quarter) and 2nd dim - Year for last Quarters or 6 Months or etc.&lt;/P&gt;&lt;P&gt;It's easy to do through 1 year, but when data goes to the next year, I get full mess on chart (e.g. Nov-Dec-Jan-Feb transforms into Jan-Feb-Nov-Dec). I thought, that its a natural sort thing for Qlikview, but I spent now more than week to make it happen and still no luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in attached file with 3 examples.&lt;/P&gt;&lt;P&gt;I need sorting in chronological way. Now is june 2014, I compare this value with June 2013, then previous 6 or more months in chronological way, so it should look like this:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Previous year 2013 - Nov(comparing 2012 and 2013, there is no data for Nov 2014)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Previous year 2013 - Dec(2012 and 2013)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This Year 2014 - Jan(2013 and 2014)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Feb(2013 and 2014)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;......&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jun(2013 and 2014)&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For Quarters: Prev.Year 2013- Q4 (2012 and 2013), then this year 2014 - Q1, Q2 (2013 and 2014), because there is still no data for Q4 2014.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For weeks: prev. year - 46,47,49...52, this year - 1,2,3,4...24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master calendar with different synthetic sort fields, but when I'm trying to apply it in sort tab nothing happens (e.g. for Months):&lt;/P&gt;&lt;P&gt;12*(Year(Today())-Year(date_wb_start)) + Month(Today()) - Month(date_wb_start) as MonthsAgo,&lt;/P&gt;&lt;P&gt;Month(date_wb_start)+Year(date_wb_start)-Year($(vMinDate))+($(vQYears)-1)*(Month(date_wb_start)-1) as MonthSort&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="60351" alt="Sort.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/60351_Sort.jpg" style="width: 620px; height: 267px;" /&gt;&lt;/P&gt;&lt;P&gt;I'm doing something wrong, but can't understand what exactly.&lt;/P&gt;&lt;P&gt;Thank you all beforehand for your tips&amp;amp;tricks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648094#M677663</guid>
      <dc:creator />
      <dc:date>2014-06-10T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648095#M677664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please attached your qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648095#M677664</guid>
      <dc:creator />
      <dc:date>2014-06-10T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648096#M677665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris. Added qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 08:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648096#M677665</guid>
      <dc:creator />
      <dc:date>2014-06-10T08:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648097#M677666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use MonthNum instead of MonthAgo in your expression sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648097#M677666</guid>
      <dc:creator />
      <dc:date>2014-06-10T11:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648098#M677667</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;May be like his&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 11:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648098#M677667</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-06-10T11:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648099#M677668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick answers!&lt;/P&gt;&lt;P&gt;I've modified my qvw for better understanding what I'm trying to do. Sorry my English is not good.&lt;/P&gt;&lt;P&gt;This kind of sorts (ascending numeric values or months or weeks, etc.) can be done without sort expressions, but I need sorting in chronological way. Now is june 2014, I compare this value with June 2013, then previous 6 or more months in chronological way, so it should look like this:&lt;/P&gt;&lt;P&gt;Previous year 2013 - Nov(comparing 2012 and 2013, there is no data for Nov 2014)&lt;/P&gt;&lt;P&gt;Previous year 2013 - Dec(2012 and 2013)&lt;/P&gt;&lt;P&gt;This Year 2014 - Jan(2013 and 2014)&lt;/P&gt;&lt;P&gt;Feb(2013 and 2014)&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;Jun(2013 and 2014)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Quarters: Prev.Year 2013- Q4 (2012 and 2013), then this year 2014 - Q1, Q2 (2013 and 2014), because there is still no data for Q4 2014.&lt;/P&gt;&lt;P&gt;For weeks: prev. year - 46,47,49...52, this year - 1,2,3,4...24&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648099#M677668</guid>
      <dc:creator />
      <dc:date>2014-06-10T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648100#M677669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will sort in numeric order, but I need chronological order. Previous year, then this year (2013Y weeks or months then 2014 weeks, months, quarters, days, etc.).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648100#M677669</guid>
      <dc:creator />
      <dc:date>2014-06-10T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648101#M677670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the sort has to be on value "Week-Year" in your script then load it ascending and sort it by Load order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 09:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648101#M677670</guid>
      <dc:creator />
      <dc:date>2014-06-12T09:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Month, Week, etc. and Year chart dimensions sorting</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648102#M677671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dmitry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One quick way is to add the below Inline table with 2 columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthSort:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;MonthSort, Month&lt;/P&gt;&lt;P&gt;1, Jan&lt;/P&gt;&lt;P&gt;2, Feb&lt;/P&gt;&lt;P&gt;3, Mar&lt;/P&gt;&lt;P&gt;4, Apr&lt;/P&gt;&lt;P&gt;5, May&lt;/P&gt;&lt;P&gt;6, Jun&lt;/P&gt;&lt;P&gt;7, Jul&lt;/P&gt;&lt;P&gt;8, Aug&lt;/P&gt;&lt;P&gt;9, Sep&lt;/P&gt;&lt;P&gt;10, Oct&lt;/P&gt;&lt;P&gt;11, Nov&lt;/P&gt;&lt;P&gt;12, Dec&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month Column points to the main data table like in the attached table.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Month Sorting.jpeg" class="jive-image image-1" src="/legacyfs/online/83405_Month Sorting.jpeg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Main Data Table will be like the below one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Year, Month, NoOfIncidents, Quarter, Severity, Severity_Level&lt;/P&gt;&lt;P&gt;2013, Jan, 5, Q1, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Feb, 3, Q1, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Mar, 3, Q1, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Apr, 10, Q2, Critical, 4&lt;/P&gt;&lt;P&gt;2013, May, 3, Q2, Critical, 4&lt;/P&gt;&lt;P&gt;2013, Jun, 1, Q2, Critical, 4&lt;/P&gt;&lt;P&gt;2013, Jul, 1, Q3, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Aug, 7, Q3, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Sep, 10, Q3, Critical, 4&lt;/P&gt;&lt;P&gt;2013, Oct, 5, Q4, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Nov, 10, Q4, Very Important, 5&lt;/P&gt;&lt;P&gt;2013, Dec, 3, Q4, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Jan, 5, Q1, Very Important, 5&lt;/P&gt;&lt;P&gt;2014, Feb, 1, Q1, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Mar, 9, Q1, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Apr, 3, Q2, Very Important, 5&lt;/P&gt;&lt;P&gt;2014, May, 3, Q2, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Jun, 10, Q2, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Jul, 4, Q3, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Aug, 7, Q3, Critical, 4&lt;/P&gt;&lt;P&gt;2014, Sep, 1, Q3, Very Important, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Month Sorting with Expression under Sort Page.jpeg" class="jive-image image-2" height="364" src="/legacyfs/online/83408_Month Sorting with Expression under Sort Page.jpeg" style="height: 363.546391752577px; width: 608px; float: none;" width="608" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should automatically sort the months on the charts without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 19:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Week-etc-and-Year-chart-dimensions-sorting/m-p/648102#M677671</guid>
      <dc:creator />
      <dc:date>2015-04-10T19:35:44Z</dc:date>
    </item>
  </channel>
</rss>

