<?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 year-week in graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530473#M508354</link>
    <description>&lt;P&gt;How about if you create your week field like this&lt;/P&gt;&lt;PRE&gt;Dual(Year(inc_create_date)&amp;amp;'-'&amp;amp; Week (inc_create_date), WeekStart(inc_create_date)) as Week,&lt;/PRE&gt;&lt;P&gt;and then sort it numerically&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 13:29:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-01-15T13:29:43Z</dc:date>
    <item>
      <title>Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530469#M508353</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a graph that can present data per month or per week.&lt;/P&gt;&lt;P&gt;For week, this expression is used&lt;BR /&gt;Year(inc_create_date)&amp;amp;'-'&amp;amp; Week (inc_create_date)as Week,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The graph uses this sort expression:&lt;BR /&gt;Sort by expression:&lt;BR /&gt;=Max(Month(inc_create_date))&lt;/P&gt;&lt;P&gt;But the sorting in the graph is not correct.&lt;/P&gt;&lt;P&gt;How can this be solved?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sort week.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3766iB43F05F9DA7603C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sort week.PNG" alt="sort week.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530469#M508353</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-15T13:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530473#M508354</link>
      <description>&lt;P&gt;How about if you create your week field like this&lt;/P&gt;&lt;PRE&gt;Dual(Year(inc_create_date)&amp;amp;'-'&amp;amp; Week (inc_create_date), WeekStart(inc_create_date)) as Week,&lt;/PRE&gt;&lt;P&gt;and then sort it numerically&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530473#M508354</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-15T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530475#M508355</link>
      <description>try sorting with&lt;BR /&gt;&lt;BR /&gt;by expression&lt;BR /&gt;num(weekstart(inc_create_date))&lt;BR /&gt;&lt;BR /&gt;by number/numeric sort&lt;BR /&gt;&lt;BR /&gt;use expression as&lt;BR /&gt;dual(Year(inc_create_date)&amp;amp;'-'&amp;amp; Week (inc_create_date)as Week, num(weekstart(inc_create_date)))&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530475#M508355</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-01-15T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530485#M508356</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;After a closer check I notice that the x-axis dimension uses a Master item object (=[$(vDim)]).&lt;/P&gt;&lt;P&gt;I think is uses Week and Month from this:&lt;BR /&gt;&lt;STRONG&gt;Dims:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RowNo() as DimSort&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Week,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Not sure if your suggestion still can be used?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530485#M508356</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-15T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530489#M508357</link>
      <description>&lt;P&gt;I believe it should work... can you give it a shot.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530489#M508357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-15T13:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530494#M508358</link>
      <description>&lt;P&gt;The result looks a little different but still not OK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sort week2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3773iDFBA129D8639E42B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sort week2.PNG" alt="sort week2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 14:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530494#M508358</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-15T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530502#M508359</link>
      <description>&lt;P&gt;Is this view based on a selection? If it is, do you have set analysis in your expression to ignore selection in Week field or any other date and time field?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 14:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530502#M508359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-15T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530506#M508360</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;The selection used is 'Week'. The graph should be able to show 'Week' or 'Month' data base on a selection.&lt;BR /&gt;That's why the Master item and the &lt;STRONG&gt;Dims&lt;/STRONG&gt; load is used&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 14:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530506#M508360</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-15T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530515#M508361</link>
      <description>&lt;P&gt;I understand that... but I am not sure what all do you select in your dashboard except for selecting Dim.... would you be able to share&amp;nbsp; a sample so that we can see your issue?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 14:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530515#M508361</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-15T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort year-week in graph</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530525#M508362</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Changed the &lt;STRONG&gt;MonthNames&lt;/STRONG&gt; from &lt;STRONG&gt;jan.;feb.;mars;.....&lt;/STRONG&gt;. to &lt;STRONG&gt;1;2;3;....&lt;/STRONG&gt;&lt;BR /&gt;Then sorted the x-axis 'Alphabetically'&lt;BR /&gt;This seems to solve the problem with sorting for both Week and Month&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 15:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-year-week-in-graph/m-p/1530525#M508362</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-15T15:08:31Z</dc:date>
    </item>
  </channel>
</rss>

