<?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: Current year until last month vs. last year until last month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100430#M6669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but the formula does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2018 10:59:51 GMT</pubDate>
    <dc:creator>pascaldijkshoor</dc:creator>
    <dc:date>2018-07-02T10:59:51Z</dc:date>
    <item>
      <title>Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100428#M6667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a comparison for this year until last month vs. last year until last month. So for today that would mean i would compare January - June 2017 with January - June 2018. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following formula for current year: &lt;/P&gt;&lt;P&gt;Sum ({$&amp;lt;[L_BEGIN_DATE.autoCalendar.MonthsAgo]={"&amp;gt;0"},[L_BEGIN_DATE.autoCalendar.YearsAgo]={"0"}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't figure out how to calculate last year. Who knows the correct formula? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100428#M6667</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-07-02T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100429#M6668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't know what exactly is hidden under your fields with dates, but try using it like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;In your expression for this year use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({$&amp;lt;&lt;STRONG&gt;Month={"&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month(Today(1))&lt;/STRONG&gt;"}&lt;/STRONG&gt;,[L_BEGIN_DATE.autoCalendar.YearsAgo]={"0"}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In your expression for last year use &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({$&amp;lt;&lt;STRONG&gt;Month={"&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month(Today(1))&lt;/STRONG&gt;"}&lt;/STRONG&gt;,[L_BEGIN_DATE.autoCalendar.YearsAgo]={"1"}&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Assumintg that field Month is field with month number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; 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; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100429#M6668</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-07-02T10:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100430#M6669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but the formula does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100430#M6669</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-07-02T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100431#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you just copy it? It should be only suggestion how to do it not the exact formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 11:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100431#M6670</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-07-02T11:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100432#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied it and changed the Month field to my (month) date field &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 11:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100432#M6671</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-07-02T11:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100433#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my bad,&lt;/P&gt;&lt;P&gt;set expression should look like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{$&amp;lt;Month={"&amp;lt;$(=Month(Today(1)))"}&amp;gt;}&lt;/STRONG&gt;...this should take into account all months numbers smaller than current month and the second part of your expression, if I understand well, contains flag about last year?&lt;/P&gt;&lt;P&gt;If not than use the similar for year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year={"$(=Year(Today(1))-1)"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it should look like this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;In your expression for this year use &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum ({$&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month={"&amp;lt;$(=Month(Today(1)))"}&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Year={"$(=Year(Today(1)))"}&lt;/SPAN&gt;&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;In your expression for last year use &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Month={"&amp;lt;$(=Month(Today(1)))"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year={"$(=Year(Today(1))-1)"}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}Revenue)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Now it should be correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 13:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100433#M6672</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-07-02T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Current year until last month vs. last year until last month</title>
      <link>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100434#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I just found a different way of calculating which works as well. But many thanks for your effort anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula I used is: &lt;/P&gt;&lt;P&gt; Sum ({$&amp;lt;MonthNum={"&amp;lt;=$(=Num(Month(today())))"},[L_BEGIN_DATE.autoCalendar.YearsAgo]={"1"}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;With the following formula added in script:&lt;/P&gt;&lt;P&gt;num (month (L_BEGIN_DATE)) as MonthNum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 14:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Current-year-until-last-month-vs-last-year-until-last-month/m-p/100434#M6673</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-07-02T14:20:19Z</dc:date>
    </item>
  </channel>
</rss>

