<?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 Previous year for Pivot Table with Year/Month dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786049#M278076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running into an issue where I have a table with a yearmonth dimension (ie, 2014-Nov,2014-Dec etc).&amp;nbsp; I have a column that is simply Sum(Sales) for the month sales.&amp;nbsp; I need a second column showing the sales for the same month of the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't work out how to achieve this.&amp;nbsp; What I want to do is use set analysis to change the YearMonth dimension to be one year previous. Something like: Sum( {$ &amp;lt;YearMonth={'$(=(Left(YearMonth,4)-1)&amp;amp;'-'&amp;amp;Right(YearMonth,3))'} &amp;gt; } Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that doesn't work because the dollar sign expansion is done across the whole table, but I can't work out how to achieve the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is driving me nuts because it seems straight forward!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2014 06:58:59 GMT</pubDate>
    <dc:creator>shanemichelon</dc:creator>
    <dc:date>2014-12-24T06:58:59Z</dc:date>
    <item>
      <title>Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786049#M278076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running into an issue where I have a table with a yearmonth dimension (ie, 2014-Nov,2014-Dec etc).&amp;nbsp; I have a column that is simply Sum(Sales) for the month sales.&amp;nbsp; I need a second column showing the sales for the same month of the previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't work out how to achieve this.&amp;nbsp; What I want to do is use set analysis to change the YearMonth dimension to be one year previous. Something like: Sum( {$ &amp;lt;YearMonth={'$(=(Left(YearMonth,4)-1)&amp;amp;'-'&amp;amp;Right(YearMonth,3))'} &amp;gt; } Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that doesn't work because the dollar sign expansion is done across the whole table, but I can't work out how to achieve the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is driving me nuts because it seems straight forward!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 06:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786049#M278076</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786050#M278077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Sum( {$ &amp;lt;YearMonth={'$(=Date(addmonths(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YearMonth&lt;/SPAN&gt;,-1)),'YYYY-MMM')''} &amp;gt; } Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786050#M278077</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-12-24T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786051#M278078</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;Create a Month and Year field separately like Jan, Feb, Mar............. and use this as dimension.&amp;nbsp; Now create two expression for Current and Previous year like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Left(MonthYear, 4) AS Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Right(MonthYear, 3) AS Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum( {$ &amp;lt;Year={'$(=Year(Today()))'} &amp;gt; } Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;For previous Year:&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;"&gt;Sum( {$ &amp;lt;Year={'$(=Year(Today()) - 1)'} &amp;gt; } Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786051#M278078</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-24T07:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786052#M278079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the prompt reply. Unfortunately, it doesn't work.&amp;nbsp;&amp;nbsp; I will try to work out how to add the sample app I am using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786052#M278079</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786053#M278080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan.&amp;nbsp; Unfortunately, I need the YearMonth for the year previous to each row of the table, not the current year.&amp;nbsp; In my real app, I have a calendar table with date, year, etc.&amp;nbsp; But for this table I really need to get the data for the same dimension being from the previous year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786053#M278080</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786054#M278081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach some sample data and your expected output?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786054#M278081</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-24T07:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786055#M278082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;Create a Month and Year field separately like Jan, Feb, Mar............. and use this as dimension. Now create two expression for Current and Previous year like below&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Left(MonthYear, 4) AS Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Right(MonthYear, 3) AS Month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; vMaxyear=Max(year);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMaxMonth=Max(Month);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Year and Month:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum( {$ &amp;lt;Year={'$(vMaxyear)'}, Month={'$(vMaxMonth)'} &amp;gt; } Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;For previous Year and Month:&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;"&gt;Sum( {$ &amp;lt;Year={'$(vMaxyear)-1'}, Month={'$(vMaxMonth)'} &amp;gt; } Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786055#M278082</guid>
      <dc:creator />
      <dc:date>2014-12-24T07:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786056#M278083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the sample app I have attached.&amp;nbsp; In the real app, I have many calendar dimensions such as Fiscal Year, Date, Fiscal Month etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786056#M278083</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786057#M278084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have modified the app to add the year,month fields.&amp;nbsp; Please see attached (Still not working)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786057#M278084</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786058#M278085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the method mentioned in attached sample application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 07:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786058#M278085</guid>
      <dc:creator />
      <dc:date>2014-12-24T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786059#M278086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but the dimension needs to be YearMonth and when changed to that it no longer works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have the columns wrong.&amp;nbsp; The first column is for the displayed month (ie 2014-Dec), the second column is for the same month, but the previous year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786059#M278086</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T08:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786060#M278087</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;If you use YearMonth dimension it is difficult to achieve this, since the dimension values are displayed based on the result of the expression.&amp;nbsp; Since you have to use current and previous year data so, you will get YearMonth values of both the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just display the Month in dimension and create two expressions for current and previous year.&amp;nbsp; For current and previous year give dynamic cacptions as Year like Year(Today()) and Year(Today()) - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786060#M278087</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-24T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786061#M278088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try whether you have monthYear as num&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.222222328186035px;"&gt;MonthYear).if it show number then it will work definelty&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: 12.222222328186035px;"&gt;but if not then try to make it as number and then try formulas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786061#M278088</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-12-24T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786062#M278089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works see in the image below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="snap2.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74144_snap2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you want to show this in better format means you want to remove 0&amp;nbsp; try the expression in text object and design some UI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786062#M278089</guid>
      <dc:creator />
      <dc:date>2014-12-24T08:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786063#M278090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that the user could select any set of dates, not just the current year. The user could select Jul-Sep 2014, and therefore the LY column would be for Jul, Aug, Sep 2013&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786063#M278090</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T08:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786064#M278091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The columns you are using are not what is required. I need column 1 to be for the month shown, and column 2 for the same month of the previous year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786064#M278091</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T08:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786065#M278092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share a snap shot of your requirement,Because I didnt get you, what exactly your requirement,&lt;/P&gt;&lt;P&gt;there are multiple ways to do the thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786065#M278092</guid>
      <dc:creator />
      <dc:date>2014-12-24T08:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786066#M278093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales for 2014-July would be 150, sales for 2013-July would be 277&lt;/P&gt;&lt;P&gt;Sales for 2014-Aug would be 32, Sales for 2013-Aug would be 353&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user could select anything as the date range.&amp;nbsp; It could be 2011-Sep, 2011-Oct-2011-Nov.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 08:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786066#M278093</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-24T08:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786067#M278094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a seperate field for last year data in the script itself. Hope, the blog post: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/03/ytd"&gt;Year Over Comparison&lt;/A&gt; would give you an idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 09:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786067#M278094</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-12-24T09:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Previous year for Pivot Table with Year/Month dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786068#M278095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have this all sorted out now.&amp;nbsp; The first issue is that Set analysis is done before the table is calculated.&amp;nbsp; That means that effectively the set being used by the column is set in stone when it is calculated.&amp;nbsp; Therefore the row level dimension cannot be considered as part of the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, that means that what is happening is that the set analysis was correctly limiting the results to the previous year data.&amp;nbsp; But then the row level dimension further restricted it to the monthyear of the current year.&amp;nbsp; This resulted in the calculation being on an empty set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution I can think of is to set it up to that the table is restricted to a single year only.&amp;nbsp; Then use months for the dimension.&amp;nbsp; The LY column can then use the set analysis to select only the previous year instead of the current year.&amp;nbsp; The dimension then restricts this only to the month, which is what we want.&amp;nbsp; To make it work correctly add a calculation condition and message to only show the table if there is only a single year selected.&amp;nbsp; Finally, make the label for the dimension be Max(FYear).&amp;nbsp; Now the table shows the year and the rows are the month:&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;IMG alt="TYLYSample.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/74265_TYLYSample.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Attached is the completed sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 04:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-year-for-Pivot-Table-with-Year-Month-dimension/m-p/786068#M278095</guid>
      <dc:creator>shanemichelon</dc:creator>
      <dc:date>2014-12-27T04:51:37Z</dc:date>
    </item>
  </channel>
</rss>

