<?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: null value in selected year vs its previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315252#M408422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a master calendar to handle this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 02:07:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-01T02:07:32Z</dc:date>
    <item>
      <title>null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315246#M408416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about month over month comparison. What I want to do is to compare the total sales amount between selected fiscal year and the previous year of the selected &lt;SPAN style="font-size: 13.3333px;"&gt;fiscal &lt;/SPAN&gt;year, and then further to calculate growth %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I found that if there is null value in some of the months in selected &lt;SPAN style="font-size: 13.3333px;"&gt;fiscal &lt;/SPAN&gt;year, the total sales amount of this months in its previous &lt;SPAN style="font-size: 13.3333px;"&gt;fiscal &lt;/SPAN&gt;year will be ignored in the calculation. For the example in attached qvw, if Client C has no sales in April and June FY17, the sales amt of April and June in FY16 will be ignored. Please see the set analysis below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total Amt in FY16 =&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Fiscal Year Text]=,[Fiscal Year] = {$(=MAX([Fiscal Year])-1)},[Fiscal Month] = p([Fiscal Month]) &amp;gt;} [Amt])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;** April and June sales amt are missed in this set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add {1} to possible function, it will include all months. But for the current &lt;SPAN style="font-size: 13.3333px;"&gt;fiscal &lt;/SPAN&gt;year FY18 (fiscal year start at 1 July), I want to show July data only in the table. It seems the {1} not work for current fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Fiscal Year Text]=,[Fiscal Year] = {$(=MAX([Fiscal Year])-1)},[Fiscal Month] = p({1} [Fiscal Month]) &amp;gt;} [Amt])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, may I ask how can I get the exact total amt for selected year and its previous year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected result:&lt;/P&gt;&lt;P&gt;If select FY18:&lt;/P&gt;&lt;P&gt;total sales amt in FY18: 310&lt;/P&gt;&lt;P&gt;total sales amt in FY17: 310&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If select FY17:&lt;/P&gt;&lt;P&gt;total sales amt in FY17: 3050&lt;/P&gt;&lt;P&gt;total sales amt in FY16: 3660 (include April and June data)&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>Sun, 30 Jul 2017 08:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315246#M408416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-30T08:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315247#M408417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Fiscal Year Text]&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;[Fiscal Year]&lt;/SPAN&gt; = {&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(=MAX([Fiscal Year])-1)&lt;/EM&gt;&lt;/STRONG&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;[Fiscal Month]&lt;/SPAN&gt;={'&amp;gt;=$(=Min([Fiscal Month]))&amp;lt;=$(=Max([Fiscal Month]))'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Amt]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171835_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171842_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/171843_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 10:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315247#M408417</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-30T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315248#M408418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;use this expression for FY16&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Fiscal Year Text]=,[Fiscal Year] = {$(=MAX([Fiscal Year])-1)},[Fiscal Month] = p({&amp;lt;[Fiscal Year Text]=,[Fiscal Year] = {'$(=MAX([Fiscal Year])-1)'}&amp;gt;}[Fiscal Month]) &amp;gt;} [Amt])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 10:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315248#M408418</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2017-07-30T10:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315249#M408419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Antonio, Liron,&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: 13px;"&gt;&lt;BR /&gt;&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: 13px;"&gt;Thanks for your solutions. But i'm afraid I got a mistake when creating this testing QVW (I put an incorrect order to Fiscal Month). So, the issue is still here when I use the set analysis in the revised QVW.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315249#M408419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T09:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315250#M408420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;[Fiscal Year Text]=,[Fiscal Year] = {$(=MAX([Fiscal Year])-1)},[Fiscal Month] = {"$(='&amp;lt;=' &amp;amp; Max([Fiscal Month]))"}&amp;gt;} [Amt])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When FY17 is selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171914_Capture.PNG" style="height: 250px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When FY18 is selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171915_Capture.PNG" style="height: 248px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 12:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315250#M408420</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-31T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315251#M408421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sharing. It seems June data is missing. I think this is because max fiscal month in FY17 is May, so it return May as max fiscal month in set analysis.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 01:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315251#M408421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-01T01:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: null value in selected year vs its previous year</title>
      <link>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315252#M408422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a master calendar to handle this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 02:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/null-value-in-selected-year-vs-its-previous-year/m-p/1315252#M408422</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-01T02:07:32Z</dc:date>
    </item>
  </channel>
</rss>

