<?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: Dynamic chart comparing previous year month with current year month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176038#M520746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the link.&lt;/P&gt;&lt;P&gt;I was trying the following query:&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-family: inherit;"&gt;&lt;STRONG&gt;MTD Sales (Month To Date)&lt;/STRONG&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;Sum({&amp;lt;Year=, Quarter=, Month=, Week=, Date={‘&amp;gt;=$(=MonthStart(Today()))&amp;lt;=$(=Today())’}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Would it be possible for you to share an example for the shared query.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Akash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 09:17:32 GMT</pubDate>
    <dc:creator>ankurakash</dc:creator>
    <dc:date>2016-07-18T09:17:32Z</dc:date>
    <item>
      <title>Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176036#M520744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community Members,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out solution for a dynamic chart that compare previous year month with current year month and as the counting of &lt;SPAN style="font-size: 13.3333px;"&gt;current year &lt;/SPAN&gt;month grows it automatically showcase the compariosn with respective month of last year. Otherwise it should only show the compariosn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Current Year = 2016;&amp;nbsp;&amp;nbsp; Current available Month data = Jan to July&lt;/P&gt;&lt;P&gt;previous Year = 2015;&amp;nbsp; Previous available Month data = Jan to Dec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart (could be bar chart) should display month compariosn between two years for available Months (Jan to July). It should not display previous year months (Aug to Dec) which don't have compariosn months in the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic behavior required:&lt;/P&gt;&lt;P&gt;If the counting of current year month grows(i.e. Aug and Sep 2016) the chart should include them dynamically and compare it with the respective month of previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution or a guiding approach is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176036#M520744</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-07-18T07:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176037#M520745</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;Look at the link below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9162"&gt;Set Analysis for certain Point in Time&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 08:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176037#M520745</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-07-18T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176038#M520746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the link.&lt;/P&gt;&lt;P&gt;I was trying the following query:&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-family: inherit;"&gt;&lt;STRONG&gt;MTD Sales (Month To Date)&lt;/STRONG&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;Sum({&amp;lt;Year=, Quarter=, Month=, Week=, Date={‘&amp;gt;=$(=MonthStart(Today()))&amp;lt;=$(=Today())’}&amp;gt;} Sales)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Would it be possible for you to share an example for the shared query.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Akash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176038#M520746</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-07-18T09:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176039#M520747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lines something like this in your script:&lt;/P&gt;&lt;P&gt;LET vToday = Today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(DayNumberOfYear(Date)&amp;lt;=DayNumberOfYear($(vToday)),1,0)&amp;nbsp; as YTD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would work well in a date dimension table such as a master calender. Then if you make a year to date comparison you can select YTD = 1 in&amp;nbsp; a listbox or use the YTD field in a set modifier such as &amp;lt;YTD = {1}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176039#M520747</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-07-18T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176040#M520748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176040#M520748</guid>
      <dc:creator />
      <dc:date>2016-07-18T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176041#M520749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saugat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have license edition at present. Can you share the same in a text file to me. Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Akash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176041#M520749</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-07-18T15:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176042#M520750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I presume this will give me comparison between date. If the solution is otherwise, I would request more details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176042#M520750</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-07-18T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176043#M520751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;In the setting--&amp;gt;variable overview create the variable:&lt;/P&gt;&lt;P&gt;vvmaxyear=max(year)&lt;/P&gt;&lt;P&gt;vvmaxmonth=max({&amp;lt;year={$(vvmaxyear)}&amp;gt;}month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;taking year and month as dimensions and in the expressions tab, try this expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;year={"&amp;lt;=$(vvmaxyear) &amp;gt;=$(=$(vvmaxyear)-1)"},month={"=$(=vvmaxmonth)"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 08:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176043#M520751</guid>
      <dc:creator />
      <dc:date>2016-07-19T08:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic chart comparing previous year month with current year month</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176044#M520752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saugat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works exactly as per my requirement. &lt;SPAN style="font-size: 13.3333px;"&gt;Thanks for penning the steps and the expressions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-chart-comparing-previous-year-month-with-current-year/m-p/1176044#M520752</guid>
      <dc:creator>ankurakash</dc:creator>
      <dc:date>2016-07-19T11:22:24Z</dc:date>
    </item>
  </channel>
</rss>

