<?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: MTD not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447755#M167114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({$&amp;lt;Date = {"&amp;gt;=$(vMinnDate)&amp;lt;=$(vMaxDate)"}&amp;gt;} QTY)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In ur calendar use below code..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Caltemp:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;num(min(%TranDate)) as MinnDate&lt;/P&gt;&lt;P&gt;resident TRANSACTION_TABLE;&lt;/P&gt;&lt;P&gt;LET vMinnDate = peek('MinnDate',0,'Caltemp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable...&lt;/P&gt;&lt;P&gt;vMaxDate&amp;nbsp; = date(MonthEnd(max(Date)),'DD MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 06:17:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-01T06:17:24Z</dc:date>
    <item>
      <title>MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447736#M167095</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;Iam wroung some where please do let me know&lt;/P&gt;&lt;P&gt;I am just calculation YTD and MTD using set analysis&lt;/P&gt;&lt;P&gt;here is my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category='receivable',sum({&amp;lt;YEAR={'&amp;lt;=$(=MAX(YEAR))'},MONTH={'&amp;lt;=$(=MAX(MONTH))'}&amp;gt;} $(EXP)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here if YTD is working fine,but not MTD ..,&lt;/P&gt;&lt;P&gt;please do let me know where iam wroung&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiruthiga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 07:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447736#M167095</guid>
      <dc:creator />
      <dc:date>2012-09-27T07:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447737#M167096</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;May I know the value of $(EXP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 07:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447737#M167096</guid>
      <dc:creator />
      <dc:date>2012-09-27T07:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447738#M167097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HJanzen,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;$(EXP) = if(val=5,val2,val3)---&amp;gt; I made that as a variable,but there is not problem in this,because,&lt;/P&gt;&lt;P&gt;only if I calculate YTD its working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 07:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447738#M167097</guid>
      <dc:creator />
      <dc:date>2012-09-27T07:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447739#M167098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HJanzen,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;$(EXP) = if(val=5,val2,val3)---&amp;gt; I made that as a variable,but there is not problem in this,because,&lt;/P&gt;&lt;P&gt;only if I calculate YTD its working fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 07:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447739#M167098</guid>
      <dc:creator />
      <dc:date>2012-09-27T07:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447740#M167099</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;Can you give the expression you used for MTD? It should work using this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category='receivable',sum({&amp;lt;YEAR={$(=MAX(YEAR))},MONTH={'&amp;lt;=$(=MAX(MONTH))'}&amp;gt;} $(EXP)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 07:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447740#M167099</guid>
      <dc:creator />
      <dc:date>2012-09-27T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447741#M167100</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 used the same expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as yours which is in the starting of my post..,&lt;/P&gt;&lt;P&gt;is there anything do with the month alone say 1-12 after that 13,14,15..for the next year??&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because I am not getting only MTD..,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 08:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447741#M167100</guid>
      <dc:creator />
      <dc:date>2012-09-27T08:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447742#M167101</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;There is a difference between this expression compared to your earlier post. This is for MTD computation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category='receivable',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;sum({&amp;lt;YEAR={$(=MAX(YEAR))},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONTH={'&amp;lt;=$(=MAX(MONTH))'}&amp;gt;} &lt;/P&gt;&lt;P&gt;$(EXP)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while this one is for YTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category='receivable',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;sum({&amp;lt;YEAR={'&amp;lt;=$(=MAX(YEAR))'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONTH={'&amp;lt;=$(=MAX(MONTH))'}&amp;gt;} &lt;/P&gt;&lt;P&gt;$(EXP)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 08:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447742#M167101</guid>
      <dc:creator />
      <dc:date>2012-09-27T08:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447743#M167102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janzen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry in delay replying ,I tried with MTD but it is showing the exact value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means if i select feb 2011 it is giving only feb 2011 data,&lt;/P&gt;&lt;P&gt;but i need from jan 2010 to feb 2011 value for selecting feb 2011(Data is available from jan 2010 only)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 11:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447743#M167102</guid>
      <dc:creator />
      <dc:date>2012-09-27T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447744#M167103</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;Sorry I was confused with your question. What do you really need? Based on what I know MTD means from the first day of a selected month and last day of a particular month. Example if you choose Feb 2011, MTD means from Feb 1, 2011 up to Feb 28, 2011. YTD means from the first day of a selected year up to the selected day and month. Example if you choose Feb 2011, YTD means from Jan 1, 2011 up to Feb 28, 2011. May I ask for your definition of MTD and YTD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 02:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447744#M167103</guid>
      <dc:creator />
      <dc:date>2012-09-28T02:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447745#M167104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janzen,&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for confusing you,&lt;/P&gt;&lt;P&gt;my requirement is &lt;/P&gt;&lt;P&gt;if you choos Feb ,2011&lt;/P&gt;&lt;P&gt;if the data in database is from say&amp;nbsp; jan 2010 &lt;/P&gt;&lt;P&gt;then it need to display data from Jan 2010 to feb ,2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is if I select only year say 2011,it is givin the sum of data(2010 + 2011 for 2011) correctly,&lt;/P&gt;&lt;P&gt;but if I choose the month after year selection say febafter selecting year -2011,the data is comming wroung&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But YTD is enough for my scenario I think so and my expression below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Category='receivable',sum({$&amp;lt;Year={"&amp;lt;=$(=max(Year))"}&amp;gt;}$(exp))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its very urgent ,i need to completethis by today..,there is some small mistake in my expression which iam not able to deduct..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiruthiga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 06:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447745#M167104</guid>
      <dc:creator />
      <dc:date>2012-09-28T06:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447746#M167105</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 is your common field between tables? Is it by date or month and year only? Sometimes the expression varies. Please try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category='receivable',sum({$&amp;lt;Year = {"&amp;lt;=$(=max(Year))"},Month = {"&amp;lt;=$(=max(Month))"},Month =,Year = &amp;gt;} $(EXP)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 07:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447746#M167105</guid>
      <dc:creator />
      <dc:date>2012-09-28T07:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447747#M167106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use below script for ytd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum({&amp;lt;Year={$(=Max(Year))},AMonth={$(=Max({&amp;lt;Year={$(=Max(Year))}&amp;gt;}AMonth))},ADate={"&amp;lt;=$(Date(Max(ADate)))"}&amp;gt;} Qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It will help you bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 07:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447747#M167106</guid>
      <dc:creator />
      <dc:date>2012-09-28T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447748#M167107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Janzen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not woking,Actually if i try with my expression just in my above post,when i replace the year field to month ,&lt;/P&gt;&lt;P&gt;its not working,&lt;/P&gt;&lt;P&gt;means if i select jan alone with out selecting any year,its displaying nothing..,&lt;/P&gt;&lt;P&gt;but it need to give jan month data field right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 08:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447748#M167107</guid>
      <dc:creator />
      <dc:date>2012-09-28T08:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447749#M167108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kOUSHIK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its nor working...,iam going mad on this issue &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 08:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447749#M167108</guid>
      <dc:creator />
      <dc:date>2012-09-28T08:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447750#M167109</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 dont need to replace the year field to month. For MTD, my last expression should work. Based on your example, you should also choose a year after choosing january as a month to determine the end date. So this means from January 2010 upto January of the selected year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 08:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447750#M167109</guid>
      <dc:creator />
      <dc:date>2012-09-28T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447751#M167110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Janzen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..,&lt;/P&gt;&lt;P&gt;yup its working with the concept of January 2010 uptoJan selected year&lt;/P&gt;&lt;P&gt;sorry confused...a little,&lt;/P&gt;&lt;P&gt;if i select march 2012,&lt;/P&gt;&lt;P&gt;can i get jan 2010 to mar 2012 ?(sum of values from jan 2000 to mar 2012 as an expression value,means a total of last selected month and year from the starting year and month irrespective of month alone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really thanks for your valuable timingssssssss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Keeruthii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447751#M167110</guid>
      <dc:creator />
      <dc:date>2012-09-28T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447752#M167111</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;Yes as long as you have your data up to March 2012. If it gives you the right answer, kindly tag it as the correct answer for future references.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447752#M167111</guid>
      <dc:creator />
      <dc:date>2012-09-28T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447753#M167112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure Janzen,I did ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447753#M167112</guid>
      <dc:creator />
      <dc:date>2012-09-28T09:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447754#M167113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(vMaxYear)'},Month={'$(vMaxMonth)'},Day={'&amp;lt;=$(vMaxDay)'},Date=,MonthYear=&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables:-&lt;/P&gt;&lt;P&gt;vMaxYear=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vMaxMonth=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'MMM') &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;vMaxDay=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't worry.I will help you to become MAD..&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Just Kidding.&lt;/P&gt;&lt;P&gt;Try it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 04:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447754#M167113</guid>
      <dc:creator />
      <dc:date>2012-10-01T04:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: MTD not working</title>
      <link>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447755#M167114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({$&amp;lt;Date = {"&amp;gt;=$(vMinnDate)&amp;lt;=$(vMaxDate)"}&amp;gt;} QTY)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In ur calendar use below code..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Caltemp:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;num(min(%TranDate)) as MinnDate&lt;/P&gt;&lt;P&gt;resident TRANSACTION_TABLE;&lt;/P&gt;&lt;P&gt;LET vMinnDate = peek('MinnDate',0,'Caltemp');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable...&lt;/P&gt;&lt;P&gt;vMaxDate&amp;nbsp; = date(MonthEnd(max(Date)),'DD MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 06:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MTD-not-working/m-p/447755#M167114</guid>
      <dc:creator />
      <dc:date>2012-10-01T06:17:24Z</dc:date>
    </item>
  </channel>
</rss>

