<?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: Can anyone help me with Set Analysis Problem on calculating the monthly total? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054629#M936404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample qvw file with some representative data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Feb 2016 09:45:55 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-02-18T09:45:55Z</dc:date>
    <item>
      <title>Can anyone help me with Set Analysis Problem on calculating the monthly total?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054627#M936402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks for taking time to look at my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I want to calculate the monthly total quotes(for insurance) based on different areas.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First. I was trying to calculate the MTD (Month to Date) total quotes by using the expression as follow, I think it works.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({&amp;lt;Month = {$(=Month(Today()))}, Year = {$(=Year(Today()))},QuoteDate=&amp;gt;}QuoteCount)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then, I want to calculate the total quotes for previous two months separately(dynamic month): Dec( from Dec.1.2015--Dec.31.2015) and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; last year Novenmer,but I don't know how to do it.&amp;nbsp; The data structure is as follow picture:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114986_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Can anybody help me with it? Thanks for all your help. Appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054627#M936402</guid>
      <dc:creator />
      <dc:date>2016-02-17T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with Set Analysis Problem on calculating the monthly total?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054628#M936403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054628#M936403</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-02-18T09:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with Set Analysis Problem on calculating the monthly total?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054629#M936404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post a sample qvw file with some representative data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054629#M936404</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-18T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with Set Analysis Problem on calculating the monthly total?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054630#M936405</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;are you calculating Month and Year field or it is already available in Database???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering you are calculating Month and Year field from QuoteDate&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Expression for MTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;=sum({&amp;lt;QuoteDate={"&amp;gt;=$(=date(monthStart(max(QuoteDate))))&amp;lt;=$(=date(max(QuoteDate)))"}&amp;gt;}QuoteCount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;MTD-1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;=sum({&amp;lt;QuoteDate={"&amp;gt;=$(=date(monthStart(addMonths(max(QuoteDate),-1))))&amp;lt;=$(=date(addMonths(max(QuoteDate),-1)))"}&amp;gt;}QuoteCount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.8px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;MTD-2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;=sum({&amp;lt;QuoteDate={"&amp;gt;=$(=date(monthStart(addMonths(max(QuoteDate),-2))))&amp;lt;=$(=date(addMonths(max(QuoteDate),-2)))"}&amp;gt;}QuoteCount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Use &lt;STRONG&gt;AddMonths()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-with-Set-Analysis-Problem-on-calculating-the/m-p/1054630#M936405</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-02-18T09:50:45Z</dc:date>
    </item>
  </channel>
</rss>

