<?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 Chart Sort Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185036#M49670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to sort based on the current month's sales figures in descending order. I have both current and previous month's data.&lt;/P&gt;&lt;P&gt;Let' say I have the following data -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Customer, Month, Item, Sales&lt;BR /&gt;Kobe Bryant, 2010/5, Basketball, 25&lt;BR /&gt;Kobe Bryant, 2010/5, Cap, 75&lt;BR /&gt;Kobe Bryant, 2010/6, Shirt, 100&lt;BR /&gt;Kobe Bryant, 2010/6, Basketball Shoes, 200&lt;BR /&gt;Paul Pierce, 2010/5, Towel, 50&lt;BR /&gt;Paul Pierce, 2010/5, Shorts, 200&lt;BR /&gt;Paul Pierce, 2010/6, Basketall, 25&lt;BR /&gt;Paul Pierce, 2010/6, Cap, 50&lt;BR /&gt;Ray Allen, 2010/5 , Basketball, 25&lt;BR /&gt;Ray Allen, 2010/5 , Golf Balls, 25&lt;BR /&gt;Ray Allen, 2010/6 , Towel, 50&lt;BR /&gt;Ray Allen, 2010/6 , Shirt, 100&lt;BR /&gt;Pau Gasol, 2010/5 , Shirt, 100&lt;BR /&gt;Pau Gasol, 2010/5 , Basketball, 250&lt;BR /&gt;Pau Gasol, 2010/6 , Pants, 25&lt;BR /&gt;Pau Gasol, 2010/6 , Shirt, 25&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The sort should be based on the current month's sales data in descending order followed by it's previous month's data.&lt;/P&gt;&lt;P&gt;Desired results below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;Customer Month Sales CurrMonthSales Rank&lt;BR /&gt;-----------+-------+------+---------------+----+&lt;BR /&gt;Kobe Bryant 2010/6 300 300 1&lt;BR /&gt;Kobe Bryant 2010/5 100 300 1&lt;BR /&gt;Ray Allen 2010/6 150 150 2&lt;BR /&gt;Ray Allen 2010/5 50 150 2&lt;BR /&gt;Paul Pierce 2010/6 75 75 3&lt;BR /&gt;Paul Pierce 2010/5 250 75 3&lt;BR /&gt;Pau Gasol 2010/6 50 50 4&lt;BR /&gt;Pau Gasol 2010/5 350 50 4&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Tried using set analysis to get the current month sales and refer to that value per month but can't get the previous month row to line up with the current month's data ie. for Kobe Bryant, I can display CurrMonthSales = 300 for 2010/6 but not 2010/5. I would like to use this expression to create my sort order via ranking. I have attached a sample QVW and the expected result.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jun 2010 01:19:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-11T01:19:14Z</dc:date>
    <item>
      <title>Chart Sort Question</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185036#M49670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to sort based on the current month's sales figures in descending order. I have both current and previous month's data.&lt;/P&gt;&lt;P&gt;Let' say I have the following data -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Customer, Month, Item, Sales&lt;BR /&gt;Kobe Bryant, 2010/5, Basketball, 25&lt;BR /&gt;Kobe Bryant, 2010/5, Cap, 75&lt;BR /&gt;Kobe Bryant, 2010/6, Shirt, 100&lt;BR /&gt;Kobe Bryant, 2010/6, Basketball Shoes, 200&lt;BR /&gt;Paul Pierce, 2010/5, Towel, 50&lt;BR /&gt;Paul Pierce, 2010/5, Shorts, 200&lt;BR /&gt;Paul Pierce, 2010/6, Basketall, 25&lt;BR /&gt;Paul Pierce, 2010/6, Cap, 50&lt;BR /&gt;Ray Allen, 2010/5 , Basketball, 25&lt;BR /&gt;Ray Allen, 2010/5 , Golf Balls, 25&lt;BR /&gt;Ray Allen, 2010/6 , Towel, 50&lt;BR /&gt;Ray Allen, 2010/6 , Shirt, 100&lt;BR /&gt;Pau Gasol, 2010/5 , Shirt, 100&lt;BR /&gt;Pau Gasol, 2010/5 , Basketball, 250&lt;BR /&gt;Pau Gasol, 2010/6 , Pants, 25&lt;BR /&gt;Pau Gasol, 2010/6 , Shirt, 25&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The sort should be based on the current month's sales data in descending order followed by it's previous month's data.&lt;/P&gt;&lt;P&gt;Desired results below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;Customer Month Sales CurrMonthSales Rank&lt;BR /&gt;-----------+-------+------+---------------+----+&lt;BR /&gt;Kobe Bryant 2010/6 300 300 1&lt;BR /&gt;Kobe Bryant 2010/5 100 300 1&lt;BR /&gt;Ray Allen 2010/6 150 150 2&lt;BR /&gt;Ray Allen 2010/5 50 150 2&lt;BR /&gt;Paul Pierce 2010/6 75 75 3&lt;BR /&gt;Paul Pierce 2010/5 250 75 3&lt;BR /&gt;Pau Gasol 2010/6 50 50 4&lt;BR /&gt;Pau Gasol 2010/5 350 50 4&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Tried using set analysis to get the current month sales and refer to that value per month but can't get the previous month row to line up with the current month's data ie. for Kobe Bryant, I can display CurrMonthSales = 300 for 2010/6 but not 2010/5. I would like to use this expression to create my sort order via ranking. I have attached a sample QVW and the expected result.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 01:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185036#M49670</guid>
      <dc:creator />
      <dc:date>2010-06-11T01:19:14Z</dc:date>
    </item>
    <item>
      <title>Chart Sort Question</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185037#M49671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried using set analysis to get the current month sales and refer to that value per month but can't get the previous month row to line up with the current month's data ie. for Kobe Bryant, I can display CurrMonthSales = 300 for 2010/6 but not 2010/5. I would like to use this expression to create my sort order via ranking. I have attached a sample QVW and the expected result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 01:20:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185037#M49671</guid>
      <dc:creator />
      <dc:date>2010-06-11T01:20:53Z</dc:date>
    </item>
    <item>
      <title>Chart Sort Question</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185038#M49672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;I almost got you your expected result. Let's see if somebody can work out the rank column or if I come up with something later. The set analysis I did should be replaced with something dynamic and you can use an if instead of set analysis, too.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 04:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-Sort-Question/m-p/185038#M49672</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-06-11T04:03:53Z</dc:date>
    </item>
  </channel>
</rss>

