<?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: Set Analysis for selecting previous year's December data as base value for all the months? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134800#M753590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't get on my side. Are you selecting the date or the year field?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="images.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217081_images.jpg" style="height: 152px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 12:57:06 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2018-10-30T12:57:06Z</dc:date>
    <item>
      <title>Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134793#M753582</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 want to select December month data of previous year as the baseline value for all the months for &lt;STRONG&gt;As Sold Dec (Updated OEC)&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;as shown in the below image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216676_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this expression is not working as shown in the image below (Snapshot_Date format like 2018-08-31, 2018-09-30, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Month={"$(=max(Snapshot_Date)'}Snapshot_Date(MonthEnd(Max(Snapshot_Date), -1),'MMM-YY'))"}&amp;gt;}As_Sold)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216680_1.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What wrong am I doing here? Any help is greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134793#M753582</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134794#M753583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would you be able to provide a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 15:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134794#M753583</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-24T15:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134795#M753584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this would help , Maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Snapshot_Date&lt;/STRONG&gt; = {"$(='&amp;gt;=' &amp;amp; Date(&lt;STRONG&gt;AddMonths&lt;/STRONG&gt;(Max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Snapshot_Date&lt;/STRONG&gt;), -1), 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&amp;amp; '&amp;lt;=' &amp;amp; Date(Max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Snapshot_Date&lt;/STRONG&gt;), 'YYYY-MM-DD'))"}, Month, Num_Month, Year, Quarter, Week&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}As_Sold)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or shorter version can be&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Num_Month = { '$(=Max(Num_Month)&amp;nbsp; )'},Month, &lt;STRONG&gt; Year = {&amp;nbsp; $(=Max(Year)&amp;nbsp; )}&lt;/STRONG&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}&lt;/STRONG&gt;As_Sold)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Num_Month field is numerics of months, 1, 2, 3...12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think above expression would give you Max of Month of selected Year..&lt;/P&gt;&lt;P&gt;If you just select Year=2017, it would shoe Dec-2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want previous year Dec-16 when you select 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Num_Month = { '$(=Max(Num_Month)&amp;nbsp; )'},Month,&amp;nbsp; &lt;STRONG&gt;Year = {&amp;nbsp; $(=Max(Year)&amp;nbsp; -1 )&lt;/STRONG&gt;} &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}&lt;/STRONG&gt;As_Sold&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 15:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134795#M753584</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2018-10-24T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134796#M753585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the sample qvw in the attachments and the output (&lt;STRONG&gt;Baseline - Updated Sales&lt;/STRONG&gt;) I am trying to get is shown below; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216812_1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Baseline Updated Sales for all the dates must be equal to the December month Updated Sales of the previous year. &lt;/P&gt;&lt;P&gt;(As shown above the Baseline - Updated Sales for all months in 2018 is equal to 2017 December month value = 1605652) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2018 December Baseline - Updated Sales value should be equal to 2018 December Updated Sales Value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134796#M753585</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-25T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134797#M753586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please reference the below comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134797#M753586</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-25T17:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134798#M753587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go -&lt;/P&gt;&lt;P&gt;Aggr(NODISTINCT Sum({&amp;lt;Year = {$(vPreYear)} , Month = {$(vPreYearLastMonth)}, [Cost Area] = {'Mechanical Engineering'}&amp;gt;}Updated_Sales) , [Cost Area])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 19:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134798#M753587</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-25T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134799#M753589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Neelam. But if we select 2018 the expression is null which is incorrect. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 12:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134799#M753589</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134800#M753590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't get on my side. Are you selecting the date or the year field?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="images.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217081_images.jpg" style="height: 152px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 12:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134800#M753590</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-30T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134801#M753592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm selecting the Date field. For April '2018-04-30' the expression is null also for 2018-02-28, 2018-01-31, 2018-03-31&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134801#M753592</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T13:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134802#M753593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to select on date, then modify your expression as&amp;nbsp; -&lt;/P&gt;&lt;P&gt;Aggr(NODISTINCT Sum({&amp;lt;Year = {$(vPreYear)} , Month = {$(vPreYearLastMonth)}, [Cost Area] = {'Mechanical Engineering'}, Date = &amp;gt;}Updated_Sales) , [Cost Area])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134802#M753593</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-30T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis for selecting previous year's December data as base value for all the months?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134803#M753594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you &lt;A href="https://community.qlik.com/qlik-users/210420"&gt;neelamsaroha1575&lt;/A&gt;‌. This expression is working for this table So I am closing this thread. Can you please look into this &lt;A href="https://community.qlik.com/thread/318410"&gt;Expression for getting December month value for previous Year?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-for-selecting-previous-year-s-December-data-as-base/m-p/134803#M753594</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T15:05:34Z</dc:date>
    </item>
  </channel>
</rss>

