<?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 Sales Comparison for current vs prior month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887806#M992046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone please assist me ,i am new in qlikview , set analysis is challenging me , i have data for 2015 from january to july .&lt;/P&gt;&lt;P&gt;i want to compare sales for current month to Prior month e.g July vs June .i tried to use this expressions but its not working sum ::&amp;nbsp; current Month =({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'}&amp;gt;}TranAmt) and Prior month=sum({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vPriorMonth)'}&amp;gt;}TranAmt). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear =max(if(vCalenderType='Fiscal',[Fiscal Year],Year))&lt;/P&gt;&lt;P&gt;vMaxMonth=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;max(if(vCalenderType='Fiscal',[Fiscal Month],Month))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vPriorMonth= &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vMaxMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assist , if anyone has an example please post it , i am working on my first project.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 07:56:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-06T07:56:16Z</dc:date>
    <item>
      <title>Sales Comparison for current vs prior month</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887806#M992046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone please assist me ,i am new in qlikview , set analysis is challenging me , i have data for 2015 from january to july .&lt;/P&gt;&lt;P&gt;i want to compare sales for current month to Prior month e.g July vs June .i tried to use this expressions but its not working sum ::&amp;nbsp; current Month =({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'}&amp;gt;}TranAmt) and Prior month=sum({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vPriorMonth)'}&amp;gt;}TranAmt). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear =max(if(vCalenderType='Fiscal',[Fiscal Year],Year))&lt;/P&gt;&lt;P&gt;vMaxMonth=&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;max(if(vCalenderType='Fiscal',[Fiscal Month],Month))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vPriorMonth= &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vMaxMonth&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assist , if anyone has an example please post it , i am working on my first project.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 07:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887806#M992046</guid>
      <dc:creator />
      <dc:date>2015-07-06T07:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Comparison for current vs prior month</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887807#M992047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a date field? if yes this is (often) a set analysis expression for previous month (d is my date field)&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;d={"&amp;gt;=$(=(addmonths(MonthStart(today()),-1)))&amp;lt;=$(=(MonthEnd(addmonths(MonthStart(today()),-1))))"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TranAmt&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="212" src="https://community.qlik.com/legacyfs/online/91972_1.png" style="height: 212.064777327935px; width: 360px;" width="360" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 16:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887807#M992047</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-06T16:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Comparison for current vs prior month</title>
      <link>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887808#M992048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={$(=max(Month))}&amp;gt;}Tranamt)-sum({$&amp;lt;Month={$(=max(Month)-1)}&amp;gt;}Tranamt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 10:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sales-Comparison-for-current-vs-prior-month/m-p/887808#M992048</guid>
      <dc:creator>subathra</dc:creator>
      <dc:date>2016-08-25T10:27:17Z</dc:date>
    </item>
  </channel>
</rss>

