<?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: Sorting Trailing 12 Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175900#M519962</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;As in your first chart, Add the Legend for Year that will give you the Bar color description. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 14:20:48 GMT</pubDate>
    <dc:creator>krishnacbe</dc:creator>
    <dc:date>2016-09-09T14:20:48Z</dc:date>
    <item>
      <title>Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175899#M519961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to sort a table for Trailing 12 months but I am having issues getting it to show the correct order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our fiscal year begins in October and ends in September, so we are at the end of our Fiscal Year. The problem is, it wants to show September last on the chart and it makes it look like this is the count of the current Sept, but really it is Sept 2015, last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have liked to have it show the Years below the Months to show where the current year and last fiscal year begins and ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had accomplished a similar set up in another table and it looked like this.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136962_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;But the problem is, this was just comparing one measurement across the current fiscal year and last year, or the last year and the one before that (2 years ago)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my chart currently looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/136967_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;But there is no way to let the user know just by looking at it that the September in the chart is the September from last year, making it look like those are our current numbers for this September, which are very off since we are only 9 days into the month, and that is showing the ENTIRE month from last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically its a formatting or sorting issue and I cant figure out a "pretty" way to&amp;nbsp; make it work. Adding the year (15 or 16) to the end of each month just makes the entire chart look cluttered and is difficult to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has had this issue or has an idea of how to solve it, I would appreciate any tips to tricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175899#M519961</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2016-09-09T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175900#M519962</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;As in your first chart, Add the Legend for Year that will give you the Bar color description. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175900#M519962</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2016-09-09T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175901#M519963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no Year in the Dimension, just the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't add the year to the dimension because I have two expressions and it makes it look like this. I don't want the bars stacked, I need them side by side for comparison.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136968_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175901#M519963</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2016-09-09T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175902#M519964</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 your qvw that will help to debug/explore more options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 14:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175902#M519964</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2016-09-09T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175903#M519965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Crystle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you use a master calender? If so you could add FinYear to your calendar script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinYear = Text(Year(Date) + Floor(num(month(Date))/10)-1) &amp;amp; ' / ' &amp;amp;&amp;nbsp; Text(Year(Date) + Floor(num(month(Date))/10))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 15:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175903#M519965</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-09T15:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175904#M519966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating the legends in text box/or a block chart with the year as dimension &amp;amp; '1' as expression and adjusting its width that it just looks like legend and place them over the chart might be one of the sol'n..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 15:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175904#M519966</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-09T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175905#M519967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I do have a master calendar and I tried adding the expression you described but I'm not sure how I could apply it as a solution to my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175905#M519967</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2016-09-12T17:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175906#M519968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could, but the data isn't really important I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is Fiscal Months&lt;/P&gt;&lt;P&gt;The two Expressions are Sums of two fields. And one expression that is the division of the other two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is my sorting of the bar charts without them being stacked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 17:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175906#M519968</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2016-09-12T17:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175907#M519969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Crystle,&lt;/P&gt;&lt;P&gt;If you add this field to your calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;FinYear = Text(Year(Date) + Floor(num(month(Date))/10)-1) &amp;amp; ' / ' &amp;amp;&amp;nbsp; Text(Year(Date) + Floor(num(month(Date))/10))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;then if you select the current financial year '2015 / 2016' in the UI or in the expression set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;FinYear = {'2015 / 2016'}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will exclude Sept 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An improvement might be to define FinYear as a Dual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;FinYear = Dual(Text(Year(Date) + Floor(num(month(Date))/10)-1) &amp;amp; ' / ' &amp;amp;&amp;nbsp; Text(Year(Date) + Floor(num(month(Date))/10)),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Year(Date) + Floor(num(month(Date))/10)-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;so we have a text string to display '2015 / 2016' and a numeric value 2015. Then you can use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;FinYear = {$(=max(FinYear))}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 09:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175907#M519969</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-13T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Trailing 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175908#M519970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Crystal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using&amp;nbsp;&amp;nbsp; FY 2015-16,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FY 2016-17,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FY 2017-18 and so on in the Year Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dual('FY '&amp;amp;Date(FiscalYear,'YY') &amp;amp;'-'&amp;amp; Date(AddYears(FiscalYear,1),'YY'),FiscalYear)&amp;nbsp; as&amp;nbsp;&amp;nbsp; DisplayFiscalYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 10:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Trailing-12-Months/m-p/1175908#M519970</guid>
      <dc:creator>chetansehgal</dc:creator>
      <dc:date>2016-09-13T10:42:24Z</dc:date>
    </item>
  </channel>
</rss>

