<?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 YTD/MTD set analysis calculation required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268463#M100789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community, I just wanted MTD and YTD calculation for sales value and trade date using set analysis Can anyone from experts help me out. Thanks in&amp;nbsp; advance Regards Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 04:25:59 GMT</pubDate>
    <dc:creator>rajtechnocraft</dc:creator>
    <dc:date>2012-01-12T04:25:59Z</dc:date>
    <item>
      <title>YTD/MTD set analysis calculation required</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268463#M100789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community, I just wanted MTD and YTD calculation for sales value and trade date using set analysis Can anyone from experts help me out. Thanks in&amp;nbsp; advance Regards Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 04:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268463#M100789</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2012-01-12T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: YTD/MTD set analysis calculation required</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268464#M100790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=max(Year ))}, Month= {"&amp;lt;=$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Month))"}&amp;gt;} distinct sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=max(Year ))}, Month= {$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Month)},Date= {"&amp;lt;=$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Date)"}&amp;gt;} distinct sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember month should be in numeric and date in date format or number format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 06:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268464#M100790</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-01-12T06:16:50Z</dc:date>
    </item>
    <item>
      <title>YTD/MTD set analysis calculation required</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268465#M100791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you just put it otherwise. &lt;/P&gt;&lt;P&gt;For MTD it should be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;sum({$&amp;lt;Year = {$(=max(Year ))}, Month= {$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Month)},Date= {"&amp;lt;=$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Month)"}&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;and For YTD it should be :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;sum({$&amp;lt;Year = {$(=max(Year ))}, Month= {"&amp;lt;=$(=max({&amp;lt;Year ={$(=max(Year ))}&amp;gt;} Month))"}&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Ashutosh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 06:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268465#M100791</guid>
      <dc:creator />
      <dc:date>2012-01-12T06:46:08Z</dc:date>
    </item>
    <item>
      <title>YTD/MTD set analysis calculation required</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268466#M100792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;While the above expressions will work but just to make it a little simpller, You can also try this also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year={$(=Max(Year))},Month={"&amp;lt;=$(=max(Month))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD:&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Year={$(=Max(Year))},Month={$(=max(Month))},Date={"&amp;lt;=$(=max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to disregard selections in all other fields then just use 1 in place of $, so the same will be as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={$(=Max(Year))},Month={"&amp;lt;=$(=max(Month))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD:&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={$(=Max(Year))},Month={$(=max(Month))},Date={"&amp;lt;=$(=max(Date))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&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;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 08:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-set-analysis-calculation-required/m-p/268466#M100792</guid>
      <dc:creator />
      <dc:date>2012-01-12T08:05:09Z</dc:date>
    </item>
  </channel>
</rss>

