<?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 by expression to place same month different year together in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426340#M34076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange - It works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a sample qvf demonstrating it not working ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Aug 2017 15:03:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-19T15:03:23Z</dc:date>
    <item>
      <title>Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426337#M34073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a barchart on two dimensions, an order date and and order source.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The order date is a master item defined as follows:&amp;nbsp; =Date(Monthstart(Received),'MMM-YY')&amp;nbsp; The field "Received" is a datetime field.&lt;/P&gt;&lt;P&gt;I have the sort defined on the master item numerically and it sorts as expected in date order.&lt;IMG alt="Orders by source.JPG" class="jive-image image-1" src="/legacyfs/online/173858_Orders by source.JPG" style="height: 344px; width: 620px;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are instances where someone may want to compare this year to last year or even multiple years for a particular month&amp;nbsp; I can't add year as another dimension so I wanted to make a version that sorted in a way that would group the months together.&amp;nbsp; I thought I could just take my existing chart and sort by expression but I've tried many different things and I cannot get it to do this.&amp;nbsp;&amp;nbsp; Thanks in advance for any suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426337#M34073</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2017-08-18T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426338#M34074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting by an expression like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;= ( num(month(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Received&lt;/SPAN&gt;)) *10000 ) + num(year(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Received&lt;/SPAN&gt;))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426338#M34074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T14:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426339#M34075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill, thanks for the reply but that doesn't seem to work. It behaves like there there is no sorting set when that expression is applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 18:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426339#M34075</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2017-08-18T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426340#M34076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange - It works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post a sample qvf demonstrating it not working ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Aug 2017 15:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426340#M34076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-19T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426341#M34077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill, thanks for the reply.&amp;nbsp; I'll see if I can get a pared down version.&amp;nbsp; This has a lot of data so I may not be able to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put that expression in as field in a table and sort on it it works correctly (see below)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SortTable.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174072_SortTable.JPG" style="height: auto;" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But removing it and making it the sort expression of the Month-Year field gives results like no sorting is being applied at all.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SortWrong.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/174080_SortWrong.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;One thing I did think of is that Month-Year is a master item.&amp;nbsp; Maybe an issue sorting by expression on a maser item?&amp;nbsp; I'll attempt to make it part of the load script and see if that makes a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1426341#M34077</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2017-08-21T14:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by expression to place same month different year together</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1513676#M36581</link>
      <description>&lt;P&gt;I ran into this issue again and looked up this post but it seems I never closed the loop on a solution.&amp;nbsp; What I did was add an additional field in the select sql that did the same thing mentioned above.&amp;nbsp; I then sorted by expression on that field (no formula).&amp;nbsp; Not sure why it won't work when putting the formula in to sort by expression.&amp;nbsp; I suspect this would probably work anywhere in the load script, it was just easiest to add a new column to my sql output.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 14:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-by-expression-to-place-same-month-different-year-together/m-p/1513676#M36581</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2018-11-28T14:45:21Z</dc:date>
    </item>
  </channel>
</rss>

