<?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: Yearly &amp; Monthly Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830757#M292377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the "MonthName" function that is built in.&amp;nbsp; This displays it in a list box as "May 2015".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my script that creates my calendar table is simply &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;c_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2015 09:32:09 GMT</pubDate>
    <dc:creator>nwilliams</dc:creator>
    <dc:date>2015-07-08T09:32:09Z</dc:date>
    <item>
      <title>Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830752#M292372</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'm trying to compare financial figures from this year against the previous year, both yearly figures, and in month figures.&lt;/P&gt;&lt;P&gt;Ie if I select May 2015, in one column I want to see the figures for May 2015, and in the other column, I want to see May 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following formular to try and go back 12 months, but regardless of if the number is "-1" or "-12" it only goes back one month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-12)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also the need to do YTD.&amp;nbsp; I think this is easy(ish) as already have my FY years setup so can do a bit of set analysis to sum in the current FY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830752#M292372</guid>
      <dc:creator>nwilliams</dc:creator>
      <dc:date>2015-07-08T09:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830753#M292373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use your datefield and the function addmonths and Format to you you want to see&lt;/P&gt;&lt;P&gt;=date(addmonths(yourdatefield,-12),'MMM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830753#M292373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-08T09:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830754#M292374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I put that into set analysis, I get an error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Calendar.MonthName]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {'$(=MonthName(date(addmonths(Calendar.MonthName,-12)))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830754#M292374</guid>
      <dc:creator>nwilliams</dc:creator>
      <dc:date>2015-07-08T09:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830755#M292375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are the values in your MonthName field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830755#M292375</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-08T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830756#M292376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of Calendar.MonthName? The field name implies a string and it will unable to perform date arithmetic. Do you have a normal numeric date field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830756#M292376</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-08T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830757#M292377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the "MonthName" function that is built in.&amp;nbsp; This displays it in a list box as "May 2015".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my script that creates my calendar table is simply &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;c_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830757#M292377</guid>
      <dc:creator>nwilliams</dc:creator>
      <dc:date>2015-07-08T09:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830758#M292378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil, add the following to your master calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming you have a field in your calendar that is Year + Month (= 2015 jan, 2015 feb, ect.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autogenerate(Year + Month) as Period_ID. This will generate a list from 1 to ?? for each found value Year + Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your set analysis add this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Period_ID = {"=$(=max(Period_ID))"}&amp;gt;}&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;) for the month of current year&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;Period_ID = {"=$(=max(Period_ID)-12)"}, Year&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;) for the&amp;nbsp; month of previous year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;and &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;Period_ID = {"&amp;lt;=$(=max(Period_ID))"}&amp;gt;}&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;) for the month to date of current year&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;and&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum({&amp;lt;Period_ID = {"&amp;lt;=$(=max(Period_ID)-12)"}, Year&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6666669845581px;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;) for the&amp;nbsp; month to date of previous year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;the ,Year in&amp;nbsp; in the set analysis will make sure that a year selection is ignored. This is needed because else only the current year is shown.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830758#M292378</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-07-08T09:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830759#M292379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthName(addmonths(Date#(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Calendar.MonthName&lt;/SPAN&gt;,'MMM YYYY'),-12))&amp;nbsp; should give you previous year month name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830759#M292379</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-08T09:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830760#M292380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;[Calendar.MonthName]= {'$(=MonthName(addmonths(Date#([Calendar.MonthName],'MMM YYYY'),-2)))'}&amp;gt;}Finacial_Data_Act.Local_Cost) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 10:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830760#M292380</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-07-08T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Yearly &amp; Monthly Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830761#M292381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Try,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Calendar.MonthName]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= {'$(=monthname(addmonths(max(Calendar.MonthName),-12)))'}, Year=, Month=, Quarter =&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Finacial_Data_Act.Local_Cost&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 10:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Yearly-Monthly-Comparison/m-p/830761#M292381</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-08T10:39:04Z</dc:date>
    </item>
  </channel>
</rss>

