<?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 Rolling 12 Month Sales using Set Analysis Chart Sort? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327088#M586877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think more easy is to add a drill down for Year &amp;amp; Month ... may b this is useful for all &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 06:22:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-01T06:22:01Z</dc:date>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327083#M586872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with the following problem, i have a chart that need to compare over months this years sales and the previous years sales however the graph needs to be dynamic in that it changes in accordance with the users selections, the following is my current expression;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Sales: &lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;"&amp;gt;=$(=addmonths(monthend(max(OrderDate))+1,-12)) &amp;lt;=$(=max(OrderDate))"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Previous Sales: &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;"&amp;gt;=$(=addmonths(monthend(max(OrderDate),)+1,-24)) &amp;lt;=$(=addmonths(max(OrderDate),-12))"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% difference: &lt;STRONG style="color: #ff8000; font-size: 9pt; font-family: 'Arial','sans-serif'; text-decoration: underline;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(1)-&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(2)&lt;/SPAN&gt;&lt;STRONG style="color: #ff8000; font-size: 9pt; font-family: 'Arial','sans-serif'; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;(1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&lt;IMG __jive_id="4719" alt="12 months rolling.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/4719_12+months+rolling.jpg" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;This works fine when a year is selected however when i select a month for example if the Fiscal Year 08/09 is selected as above and i click the month of May what i would like to see is Jun 08 to May 09 (Current Sales) and Jun 07 to May 08 (Previous Sales), this works with regards the dates but the order of the Month in the chart does not relate properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shay.cooper I have managed to sort this with the help from colleagues at work, basically it involves using the same expression used for the current sales and replacing sales with MonthYear and adding max to the start rather than sum and works like a charm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shay.cooper&#xD;
&#xD;
Added an example of the graph with sample data please excuse percentage change as the data was created using rand function so make no sense really&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 11:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327083#M586872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-25T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327084#M586873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to sort this with the help from colleagues at work, basically it involves using the same expression used for the current sales and replacing sales with MonthYear and adding max to the start rather than sum and works like a charm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 16:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327084#M586873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-26T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327085#M586874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Could you please attach the example of the solution. Sounds good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Konstantins&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 13:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327085#M586874</guid>
      <dc:creator>skaredovs</dc:creator>
      <dc:date>2011-06-13T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327086#M586875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Shay.Cooper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you paste the solution, sounds really interesting. &lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 09:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327086#M586875</guid>
      <dc:creator />
      <dc:date>2011-06-20T09:07:40Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327087#M586876</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;Can you share the solutions? I also desperatly needed this..&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 01:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327087#M586876</guid>
      <dc:creator />
      <dc:date>2011-07-01T01:30:10Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327088#M586877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think more easy is to add a drill down for Year &amp;amp; Month ... may b this is useful for all &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 06:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327088#M586877</guid>
      <dc:creator />
      <dc:date>2011-07-01T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327089#M586878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying use the current sales expression, and its not working for me, any ideas why? It is still summing about both current year and last year... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;"DateType"&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={'Rolling 28 Days'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;"As Of Date"&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;"&amp;gt;=$(=addmonths(monthend(max("&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;As OfDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;"))+1,-12)) &amp;lt;=$(=max("&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;As Of Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: maroon;"&gt;"))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Tahoma','sans-serif'; color: black;"&gt;}&amp;gt;}Cnt) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2012 23:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327089#M586878</guid>
      <dc:creator />
      <dc:date>2012-02-06T23:33:49Z</dc:date>
    </item>
    <item>
      <title>Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327090#M586879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello AlexYour As Of Date is written as "As OfDate" and also "As Of Date" hence the field names dont match and it wont work.I have alos found a more performant function to do this using variables and the inyeartodate function this allows the user to make selections on a date and the function will only pull through the latest year to date info, I will try and quickly write a solution and add up on here when I get the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327090#M586879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-23T14:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327091#M586880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shay,&lt;/P&gt;&lt;P&gt; I"m looking into this again. Thanks for pointing out my error. It's working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make this date specific? I've attached what the want in the Powperpoint file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this as my dimension. date([As of Date], 'MM/DD').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 17:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327091#M586880</guid>
      <dc:creator />
      <dc:date>2012-03-09T17:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327092#M586881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shay, I how did you get your graph to show July then the rest of the months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my calculated dimension. I would like to start with my max "as of date", then show the last 12 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(makedate(1+(month("As of Date")&amp;gt;7),month("As of Date"),day("As of Date")),'MM/DD')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327092#M586881</guid>
      <dc:creator />
      <dc:date>2012-04-25T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327093#M586882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Alex I am currently downloading the app you sent (Slow connection lol) I will take a look, for now you should be able to put your expression for calculating the first date into the sort by expression tab in the properties menu, in my case I changed the sum function for max and it worked like a charm. If that doesn't work you can do a cheeky cheat and load in your created dates with rowno() you can then sort by rowno(),this must be done in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327093#M586882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-25T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 12 Month Sales using Set Analysis Chart Sort?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327094#M586883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Man, I thought i had tried the max(As of Date) before...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, just tried that and it worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-12-Month-Sales-using-Set-Analysis-Chart-Sort/m-p/327094#M586883</guid>
      <dc:creator />
      <dc:date>2012-04-25T16:46:49Z</dc:date>
    </item>
  </channel>
</rss>

