<?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 Comparing Data by months and Fiscal Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Data-by-months-and-Fiscal-Year/m-p/951126#M467333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I'm trying to create a chart that shows 24 months of data, but only compares the last 2 Fiscal years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I'm using set analysis in my expression to pull back the previous 24 months work of data based on the month selected. Now I want 1 expression for the current FY, and one for the previous FY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I've currently manually put this in simply by adding "&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.UKFYYear&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {'FY15'}&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;" &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;to the expression, and this works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;However, I want to make this maintenance free, and want the "FY15" bit to be calculated based on the month selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have attached the QVW file so you can see what I'm doing.&amp;nbsp; The expression I'm using is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;({&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.MonthName&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;"&amp;gt;=$(=Addmonths(Max(Calendar.MonthName),-24)) &amp;lt;=$(=Max(Calendar.MonthName))"&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.UKFYYear&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {'FY15'}&lt;BR /&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Sent&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any thoughts on how this can be done would be grateful, as I've been playing with this for some time and had no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 12:04:42 GMT</pubDate>
    <dc:creator>nwilliams</dc:creator>
    <dc:date>2015-11-20T12:04:42Z</dc:date>
    <item>
      <title>Comparing Data by months and Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Data-by-months-and-Fiscal-Year/m-p/951126#M467333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I'm trying to create a chart that shows 24 months of data, but only compares the last 2 Fiscal years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I'm using set analysis in my expression to pull back the previous 24 months work of data based on the month selected. Now I want 1 expression for the current FY, and one for the previous FY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I've currently manually put this in simply by adding "&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.UKFYYear&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {'FY15'}&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;" &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;to the expression, and this works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;However, I want to make this maintenance free, and want the "FY15" bit to be calculated based on the month selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have attached the QVW file so you can see what I'm doing.&amp;nbsp; The expression I'm using is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: blue; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;({&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.MonthName&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;"&amp;gt;=$(=Addmonths(Max(Calendar.MonthName),-24)) &amp;lt;=$(=Max(Calendar.MonthName))"&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;},&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Calendar.UKFYYear&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt; = {'FY15'}&lt;BR /&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;Sent&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-ansi-language: EN;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any thoughts on how this can be done would be grateful, as I've been playing with this for some time and had no luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 12:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Data-by-months-and-Fiscal-Year/m-p/951126#M467333</guid>
      <dc:creator>nwilliams</dc:creator>
      <dc:date>2015-11-20T12:04:42Z</dc:date>
    </item>
  </channel>
</rss>

