<?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 Month/Year vs Month/Prior Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346551#M414314</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;Still working my way through Qlik and could definitely use some help from all the gurus here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a year over year comparison when a user selects a single month from the chart. I would like the selected month to&lt;/P&gt;&lt;P&gt;display alongside that same month 1 year prior (Example: if Jan/2017 is selected, I would like to see Jan/2016 and Jan/2017 display instead of just Jan/2017) . If I can do this in one chart, it would be ideal, but if i need to make a separate chart, that is not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current chart is displaying a count of users from a baseline period (user defined) with the latest 6 months of data.&lt;/P&gt;&lt;P&gt;I have created this using an if statement in the load script assigning 'Baseline' as a value if the user falls between a certain date range, otherwise I use Month/Year in a created field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;I used Henric Cronström's MonthsAgo trick to sort these values as well as to only display the last 6 months of data. I originally thought I could use it again to add 12 to whatever the value is for MonthsAgo when a date is selected, but my knowledge of Qlik is not so advanced currently to write something like that.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Code in load script:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If(Date &amp;gt;= '01/01/2015' and Date &amp;lt;= '12/31/2015', 'Baseline', (CMonth&amp;amp;'/'&amp;amp;CYear)) as BaselineClass,&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;12*(Year(Today())-Year(Date)) + Month(Today()) - Month(Date) as MonthsAgo,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Code for Chart (BaselineClass is my dimension)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(BaselineClass = 'Baseline',Count({$&amp;lt;CYear = {2015}&amp;gt;}User)/12,Count({$&amp;lt;MonthsAgo={"&amp;gt;=1&amp;lt;7"}&amp;gt;} User))&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="164940" alt="" class="jive-image image-1" height="267" src="https://community.qlik.com/legacyfs/online/164940_pastedImage_0.png" style="max-width: 1200px; max-height: 900px; width: 842px; height: 267.335px;" width="842" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 May 2017 23:17:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-27T23:17:41Z</dc:date>
    <item>
      <title>Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346551#M414314</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;Still working my way through Qlik and could definitely use some help from all the gurus here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a year over year comparison when a user selects a single month from the chart. I would like the selected month to&lt;/P&gt;&lt;P&gt;display alongside that same month 1 year prior (Example: if Jan/2017 is selected, I would like to see Jan/2016 and Jan/2017 display instead of just Jan/2017) . If I can do this in one chart, it would be ideal, but if i need to make a separate chart, that is not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current chart is displaying a count of users from a baseline period (user defined) with the latest 6 months of data.&lt;/P&gt;&lt;P&gt;I have created this using an if statement in the load script assigning 'Baseline' as a value if the user falls between a certain date range, otherwise I use Month/Year in a created field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;I used Henric Cronström's MonthsAgo trick to sort these values as well as to only display the last 6 months of data. I originally thought I could use it again to add 12 to whatever the value is for MonthsAgo when a date is selected, but my knowledge of Qlik is not so advanced currently to write something like that.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Code in load script:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If(Date &amp;gt;= '01/01/2015' and Date &amp;lt;= '12/31/2015', 'Baseline', (CMonth&amp;amp;'/'&amp;amp;CYear)) as BaselineClass,&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;12*(Year(Today())-Year(Date)) + Month(Today()) - Month(Date) as MonthsAgo,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-blog-post-subject-stats"&gt;&lt;SPAN class="jiveTT-hover-user jive-username-link"&gt;Code for Chart (BaselineClass is my dimension)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(BaselineClass = 'Baseline',Count({$&amp;lt;CYear = {2015}&amp;gt;}User)/12,Count({$&amp;lt;MonthsAgo={"&amp;gt;=1&amp;lt;7"}&amp;gt;} User))&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="164940" alt="" class="jive-image image-1" height="267" src="https://community.qlik.com/legacyfs/online/164940_pastedImage_0.png" style="max-width: 1200px; max-height: 900px; width: 842px; height: 267.335px;" width="842" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 May 2017 23:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346551#M414314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-27T23:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346552#M414315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear, Atleast you got some information from some one (HIC) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, What was the challenging you are facing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 03:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346552#M414315</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-28T03:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346553#M414316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So currently when I select a single month, i see a single month&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="164941" alt="" class="jive-image image-1" height="152" src="https://community.qlik.com/legacyfs/online/164941_pastedImage_0.png" style="width: 461px; height: 152.427px;" width="461" /&gt;&lt;/P&gt;&lt;P&gt;What I am looking to make (either in the same chart or in a separate chart):&lt;/P&gt;&lt;P&gt;When a month is selected, the previous year for that month is also displayed. Something like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="164996" alt="" class="jive-image image-2" height="345" src="https://community.qlik.com/legacyfs/online/164996_pastedImage_1.png" style="width: 477px; height: 344.671px;" width="477" /&gt;&lt;/P&gt;&lt;P&gt;My issue is I don't know the best way to attack the problem, my chart dimension is a field created in the load script (BaselineClass), which is concatenating the month and the year. So I don't know how to manipulate the year, while holding the month constant to display what i need. I also had hope that I could just utilize the MonthsAgo field to display the month selected and the month selected +12 months ago, but as i said above, I'm not so well versed in qlik expressions to even know where to begin with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 05:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346553#M414316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-28T05:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346554#M414317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to make like below for Next Year Sales of selection. If possible please share sample application so that we can work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear = {'$(=AddMonths(Max(MonthYear), 1))'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 05:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346554#M414317</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-28T05:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346555#M414318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what to do with this. I made a new chart using a calculated dimension: &lt;STRONG&gt;CMonth &amp;amp; '/' &amp;amp; CYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Expression for previous year results in No Data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;CYear= {'$(=AddMonths(Max(CYear), -1))'}&amp;gt;} User)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 05:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346555#M414318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-28T05:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346556#M414319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must create Field instead of Calc. Dimension. Or else please provide sample application to look where you are doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 06:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346556#M414319</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-28T06:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346557#M414320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the sample you requested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 06:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346557#M414320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-28T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346558#M414321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;CYear= {"$(=(Max(CYear) -1))"},&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;CMonth ={"$(=(max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;CMonth&lt;/STRONG&gt;)))"}&lt;/STRONG&gt;&amp;gt;} User)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="jive-acclaim-likelink" data-command="like" data-object-id="1276787" data-object-type="2" href="https://community.qlik.com/thread/261990" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #266fc8;"&gt;Month/Year vs Month/Prior Year&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 06:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346558#M414321</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-05-28T06:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346559#M414322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 May 2017 08:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346559#M414322</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-05-28T08:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Month/Year vs Month/Prior Year</title>
      <link>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346560#M414323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Antonio! It's exactly what I was hoping to do. I appreciate it very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 22:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-Year-vs-Month-Prior-Year/m-p/1346560#M414323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T22:33:39Z</dc:date>
    </item>
  </channel>
</rss>

