<?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 Set Analysis on year and month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452251#M1158209</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;I have a requirement where in the sheet user select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year and month on the basis of selection the straight table perform and give sum of sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year Selection = 2012 and Current Month Selection = Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Straight table &lt;/P&gt;&lt;P&gt;Dimension -&amp;gt; Dealer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression1 -&amp;gt; Sum of sales of previous year 2011 and month Dec &lt;/P&gt;&lt;P&gt;expression2 -&amp;gt; Sum of sales of current year 2012 and month Oct&lt;/P&gt;&lt;P&gt;expression3 -&amp;gt; Sum of sales of current year 2012 and month Nov&lt;/P&gt;&lt;P&gt;expression4 -&amp;gt; Sum of sales of current year 2012 and month Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem comes when user select month "Jan"&amp;nbsp; then expression will be for&lt;/P&gt;&lt;P&gt;expression1 -&amp;gt; Sum of sales of previous year 2011 and month Dec &lt;/P&gt;&lt;P&gt;expression2 -&amp;gt; Sum of sales of current year 2011 and month Nov&lt;/P&gt;&lt;P&gt;expression3 -&amp;gt; Sum of sales of current year 2011 and month Dec&lt;/P&gt;&lt;P&gt;expression4 -&amp;gt; Sum of sales of current year 2012 and month Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help for this&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, 24 Jan 2013 09:57:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-24T09:57:23Z</dc:date>
    <item>
      <title>Set Analysis on year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452251#M1158209</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;I have a requirement where in the sheet user select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year and month on the basis of selection the straight table perform and give sum of sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year Selection = 2012 and Current Month Selection = Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Straight table &lt;/P&gt;&lt;P&gt;Dimension -&amp;gt; Dealer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression1 -&amp;gt; Sum of sales of previous year 2011 and month Dec &lt;/P&gt;&lt;P&gt;expression2 -&amp;gt; Sum of sales of current year 2012 and month Oct&lt;/P&gt;&lt;P&gt;expression3 -&amp;gt; Sum of sales of current year 2012 and month Nov&lt;/P&gt;&lt;P&gt;expression4 -&amp;gt; Sum of sales of current year 2012 and month Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem comes when user select month "Jan"&amp;nbsp; then expression will be for&lt;/P&gt;&lt;P&gt;expression1 -&amp;gt; Sum of sales of previous year 2011 and month Dec &lt;/P&gt;&lt;P&gt;expression2 -&amp;gt; Sum of sales of current year 2011 and month Nov&lt;/P&gt;&lt;P&gt;expression3 -&amp;gt; Sum of sales of current year 2011 and month Dec&lt;/P&gt;&lt;P&gt;expression4 -&amp;gt; Sum of sales of current year 2012 and month Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help for this&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, 24 Jan 2013 09:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452251#M1158209</guid>
      <dc:creator />
      <dc:date>2013-01-24T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis on year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452252#M1158210</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;Any one help me for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ritul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 15:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452252#M1158210</guid>
      <dc:creator />
      <dc:date>2013-01-25T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis on year and month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452253#M1158211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you show which expressions are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the month before you should use Addmonths() function if using a date type, or get a correlative number for months if using a number type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from mobile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 15:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-on-year-and-month/m-p/452253#M1158211</guid>
      <dc:creator />
      <dc:date>2013-01-25T15:12:08Z</dc:date>
    </item>
  </channel>
</rss>

