<?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: YTD,MTD,WTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806973#M1028778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be much easier if you could calculate your YTD, MTD, and WTD flags in the script and use them in Set Analysis. Far simpler and faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Oleg Troyansky&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Feb 2015 16:43:25 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2015-02-14T16:43:25Z</dc:date>
    <item>
      <title>YTD,MTD,WTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806971#M1028776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confusion following calculation&lt;/P&gt;&lt;P&gt;I want find out YTD, MTD and WTD Please help me out this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, DateField=, DateNum={"&amp;gt;=$(=Num(YearStart(Max(DateNum))))&amp;lt;=$(=Max(DateNum))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what can i use instead of DateField and DateNum&lt;/P&gt;&lt;P&gt;Please explain to me&lt;/P&gt;&lt;P&gt;I have Date field like "BILLDATE".&lt;/P&gt;&lt;P&gt;Where can i mention in above expression.&lt;/P&gt;&lt;P&gt;I have two variables like (1).vStartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (2).vEndDate&lt;/P&gt;&lt;P&gt;and i have fields like MinOrddate &amp;amp; MaxOrdDate in script&lt;/P&gt;&lt;P&gt;Please help me out this issue.&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;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2015 11:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806971#M1028776</guid>
      <dc:creator />
      <dc:date>2015-02-14T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: YTD,MTD,WTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806972#M1028777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;YTD&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SUM({&amp;lt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year =, Quarter=, Month=, Week=, BILLDATE=,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BILLDATE={"&amp;gt;=$(=Date(YearStart(Max(BILLDATE))))&amp;lt;=$(=Date(Max(BILLDATE)))"}&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;gt;}Sales)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Use MonthStart instead of YearStart for MTD &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;and&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Use WeekStart instead of YearStart for WTD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2015 14:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806972#M1028777</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-14T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: YTD,MTD,WTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806973#M1028778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be much easier if you could calculate your YTD, MTD, and WTD flags in the script and use them in Set Analysis. Far simpler and faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Oleg Troyansky&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2015 16:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-MTD-WTD/m-p/806973#M1028778</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-14T16:43:25Z</dc:date>
    </item>
  </channel>
</rss>

