<?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: How to use addmonths in set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298220#M404955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What format is the field [Resolved_RTC Month]?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It looks like you are comparing a month field with a date field (from AddMonths()).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 07:13:41 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-05-19T07:13:41Z</dc:date>
    <item>
      <title>How to use addmonths in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298218#M404953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Referred to CPS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolved_RTC Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=addmonths(today(),-1))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolved_RTC Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=year(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BizvsNonBiz_Impact_Incidents&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Business Impacting Incidents'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Resolved_RTC'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolution Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"*Select Resolution Code*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Id) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But my addmonths in expression is not working correctly. I need to calculate the tickets resolved only for the previous month at any given point in time..can somebody please tell me whats going wrong with my set analysis? When i add the addmonths expression my expression stops working completely.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298218#M404953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T07:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use addmonths in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298219#M404954</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;What I can make out from your set analysis is you are using a Month field "[Resolved_RTC Month]" to get the month and the search parameter you have passed is "{"$(=addmonths(today(),-1))"}", which will return a date and not the month and that is the reason why your set analysis is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your set analysis should be as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(DISTINCT {1&amp;lt;[Referred to CPS]={'Y'},[Resolved_RTC Month] ={"$(=Month(addmonths(today(),-1)))"},[Resolved_RTC Year]={"$(=year(today()))"},BizvsNonBiz_Impact_Incidents={'Business Impacting Incidents'},DateType ={'Resolved_RTC'},[Resolution Code]-={"*Select Resolution Code*"}&amp;gt;}Id)&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;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298219#M404954</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-05-19T07:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use addmonths in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298220#M404955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What format is the field [Resolved_RTC Month]?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It looks like you are comparing a month field with a date field (from AddMonths()).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298220#M404955</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-05-19T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use addmonths in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298221#M404956</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;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Referred to CPS]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolved_RTC Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Monthname(addmonths(today(),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolved_RTC Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=year(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BizvsNonBiz_Impact_Incidents&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Business Impacting Incidents'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Resolved_RTC'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resolution Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"*Select Resolution Code*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Id) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks it worked but i used monthname instead of month&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298221#M404956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use addmonths in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298222#M404957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using an incorrect format of month while comparing and rectified it by the above solution..thanks for the suggestion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 07:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-addmonths-in-set-analysis/m-p/1298222#M404957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-19T07:20:26Z</dc:date>
    </item>
  </channel>
</rss>

