<?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: Remove extra months while doing a TY vs LY analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164659#M898704</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 guess you have created 2 Expression. If yes then your expression should be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Last Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Year = {"$(=Max(Year)-1)"},Month = {"&amp;lt;=$(=Max({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;}Month))"}&amp;gt;}Sales)&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>Thu, 28 Jul 2016 07:28:33 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2016-07-28T07:28:33Z</dc:date>
    <item>
      <title>Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164656#M898701</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 have to compare this year sales with last year sales in a pivot with month as dimension. &lt;/P&gt;&lt;P&gt;when i try to get the results it will show me negative values for the missing months in the current year. &lt;/P&gt;&lt;P&gt;i used formula (this year - last year). i want to show only the months which are present in the max(year). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164656#M898701</guid>
      <dc:creator>amithmurali</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164657#M898702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Variable at script level:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vCurrMonth = Num(MonthEnd(Today(1)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a flag with Sales date:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Num(SALEDATE)&amp;lt;= $(vCurrMonth),1,0) as HistDataFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Chart:&lt;/P&gt;&lt;P&gt;Add the &lt;STRONG&gt;HistDataFlag={1}&lt;/STRONG&gt; in your Set Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nimesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164657#M898702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-28T06:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164658#M898703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If values or correct then try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to --&amp;gt; Number Tab --&amp;gt; Select That expression and choose Integer then Format Pattern should be &lt;STRONG&gt;(#,##0); (#,##0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR Else, In fact, if you want to help try to post either expression / Application which demonstrates the Issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- ANIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164658#M898703</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-07-28T07:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164659#M898704</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 guess you have created 2 Expression. If yes then your expression should be like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Last Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Year = {"$(=Max(Year)-1)"},Month = {"&amp;lt;=$(=Max({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;}Month))"}&amp;gt;}Sales)&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>Thu, 28 Jul 2016 07:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164659#M898704</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-07-28T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164660#M898705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the reply. but my issue here is, the diff may be either +ve or negative and for rest all months which is not present in the max(year) it is always -ve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to filter the months which is present in the max(Year). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164660#M898705</guid>
      <dc:creator>amithmurali</dc:creator>
      <dc:date>2016-07-28T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164661#M898706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Month &amp;lt;= Month(MaxDate), Your Expression, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than Suppress Zero-Values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164661#M898706</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-07-28T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove extra months while doing a TY vs LY analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164662#M898707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;Add Calculated Dimension for Month Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(MonthField &amp;lt;= Month(MAXDATE), &lt;SPAN style="font-size: 13.3333px;"&gt;MonthField &lt;/SPAN&gt;, ' ')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click Suppress When Value is Null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-extra-months-while-doing-a-TY-vs-LY-analysis/m-p/1164662#M898707</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-07-28T07:53:40Z</dc:date>
    </item>
  </channel>
</rss>

