<?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: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585598#M217310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for your reply. This doesn't seem to be working.. I need to get the monthly amount right above the row I'm in (regardless if the time-dimension being used is Year, Quarter, or month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;H5 style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/H5&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 20:21:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-01T20:21:50Z</dc:date>
    <item>
      <title>Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585594#M217306</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;Please advise if doable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Input : Two tables – Calendar, Facts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Objective : Create a Pivot-Table chart with a &lt;STRONG&gt;Time&lt;/STRONG&gt; Dimension (Year/Quarter/Month) and two expressions:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Sum(Amount)&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Amount of LAST month&lt;/STRONG&gt;&lt;/SPAN&gt; above the current row (regardless if the Dimension is Year, Quarter or month)&lt;/LI&gt;&lt;/OL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; I could NOT figure out how to set the second expression utilizing Set-Analysis. Is it doable ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Please see attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 16:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585594#M217306</guid>
      <dc:creator />
      <dc:date>2014-05-01T16:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585595#M217307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;once try this &lt;/P&gt;&lt;P&gt;sum( aggr(above(sum({1}Amount)),%REPORT_MONTH_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 17:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585595#M217307</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-01T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585596#M217308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use set analysis. The set is calculated per chart, not per dimension value. Try this instead:&lt;/P&gt;&lt;P&gt;FirstSortedValue(aggr(sum(Amount),m.RowId),-m.RowId,2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 18:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585596#M217308</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-01T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585597#M217309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prem Kumar,&lt;/P&gt;&lt;P&gt;Thanks for your reply. It seems to be working &lt;STRONG&gt;ONLY &lt;/STRONG&gt;when the Time dimension is &lt;STRONG&gt;Month&amp;nbsp; (&lt;/STRONG&gt;due to the use of the Above() function.)&amp;nbsp; I need to be able to get the previous month above the current row regardless if it is scope(Year, Quarter, or Month). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaul &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 20:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585597#M217309</guid>
      <dc:creator />
      <dc:date>2014-05-01T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585598#M217310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for your reply. This doesn't seem to be working.. I need to get the monthly amount right above the row I'm in (regardless if the time-dimension being used is Year, Quarter, or month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;H5 style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/H5&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 20:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585598#M217310</guid>
      <dc:creator />
      <dc:date>2014-05-01T20:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using Set-Analysis to obtain Previous Month In a Pivot-Table with Time Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585599#M217311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. You said you wanted "&lt;EM&gt;Amount of &lt;SPAN style="color: #575757;"&gt;LAST &lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; above the current row (&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;regardless if the Dimension is Year, Quarter or month)&lt;/STRONG&gt;&lt;/SPAN&gt;".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;That's exactly what the expression does.If you want sum(Amount) for the previous &lt;STRONG&gt;&lt;EM&gt;Year&lt;/EM&gt;&lt;/STRONG&gt; if the dimension is Year then you need another expression. The easiest is to use &lt;EM&gt;above(sum(Amount))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 05:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Set-Analysis-to-obtain-Previous-Month-In-a-Pivot-Table/m-p/585599#M217311</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-02T05:49:03Z</dc:date>
    </item>
  </channel>
</rss>

