<?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: Set Analysis with Addmonths in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292621#M108576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didn't see you document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the attachment, you can use the cumulative option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6009" alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/6009_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 12:44:15 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2011-07-20T12:44:15Z</dc:date>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292611#M108566</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;I want below expression in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(if(YearMonth&amp;gt;=Addmonths(CommonMonth,-2) and YearMonth&amp;lt;=Addmonths(CommonMonth,0),Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls find the Sample app attached for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 07:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292611#M108566</guid>
      <dc:creator />
      <dc:date>2011-07-20T07:21:41Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292612#M108567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;why do you want the if clause in set analsys&lt;/P&gt;&lt;P&gt;you shuld know that in the set analsys &lt;/P&gt;&lt;P&gt;the&amp;nbsp; calculation of the condition is out side the table, which means the same result for all the table&lt;/P&gt;&lt;P&gt;i think it's not what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 07:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292612#M108567</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-20T07:39:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292613#M108568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want IF clause in Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replace IF Clause with set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the&amp;nbsp; same OutPut with Set Analysis&amp;nbsp; which&amp;nbsp; i am getting using IF Clause .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried writing expreeion using Set Analysis but&amp;nbsp; the Expression is working only when i Select a CommonMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer my attachment .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 08:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292613#M108568</guid>
      <dc:creator />
      <dc:date>2011-07-20T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292614#M108569</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;You have to do this :&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Sum({&amp;lt;YearMonth={"&amp;gt;=$(=AddMonths(CommonMonth,-2) &amp;lt;=$(=Only(CommonMonth))"}&amp;gt;} Sales)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 08:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292614#M108569</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-07-20T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292615#M108570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;that what i mean&lt;/P&gt;&lt;P&gt;the field Commonmonth in the dimension get a lot of values&lt;/P&gt;&lt;P&gt;a set analsys is for one value&lt;/P&gt;&lt;P&gt;when you use set analsys the condition is calculated out side the table&lt;/P&gt;&lt;P&gt;which mean the condition sees all the commonmonth values&amp;nbsp; and cant calculate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 08:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292615#M108570</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-20T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292616#M108571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using common calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 08:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292616#M108571</guid>
      <dc:creator />
      <dc:date>2011-07-20T08:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292617#M108572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you have to do that and you'll work on the max date (selections or not) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql" style="font-family: monospace;"&gt;&lt;SPAN class="jive-sql-keyword" style="font-size: 12px; color: navy; font-weight: bold;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;YearMonth={"&lt;SPAN class="jive-sql-quote" style="font-size: 12px; color: red;"&gt;&amp;gt;=$(=AddMonths(Max(CommonMonth),-2) &amp;lt;=$(=Max(CommonMonth))&lt;/SPAN&gt;"}&amp;gt;} Sales)&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 09:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292617#M108572</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-07-20T09:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292618#M108573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the result is not coming due to the date format in your expression .i.e the date formats are different when u use the addmonths functions... i changed them and used variables i am getting the result what is expected..&lt;/P&gt;&lt;P&gt;Please find the attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 11:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292618#M108573</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2011-07-20T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292619#M108574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; for ur quick reply.&lt;/P&gt;&lt;P&gt;Still this is not working ...&lt;/P&gt;&lt;P&gt;you can try on sample app which i had attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292619#M108574</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:24:34Z</dc:date>
    </item>
    <item>
      <title>Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292620#M108575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shiva ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For ur Reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Know it is working&amp;nbsp; when I select a CommonMonth,But&amp;nbsp; I want this even when i dont select any thing in common month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which i am able to achieve using if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check my First Charts Expression, which i have return with IF Condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292620#M108575</guid>
      <dc:creator />
      <dc:date>2011-07-20T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292621#M108576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didn't see you document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the attachment, you can use the cumulative option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6009" alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/6009_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 12:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292621#M108576</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2011-07-20T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292622#M108577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please mark the correct answer so it helps others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Addmonths/m-p/292622#M108577</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2017-10-10T13:59:58Z</dc:date>
    </item>
  </channel>
</rss>

