<?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: Calculate YTD for Month using Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18232#M2990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you select April, you need data from dec17 to Mar 18? Do you have Month Year field too in your model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 04:46:24 GMT</pubDate>
    <dc:creator>shiveshsingh</dc:creator>
    <dc:date>2018-05-29T04:46:24Z</dc:date>
    <item>
      <title>Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18227#M2985</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 need to calculate YTD for month using Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example for month of October-17, i need to calculate YTD for October, i.e. all month from Oct-16 to Oct-17 upon selection of Oct date from date filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 06:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18227#M2985</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-28T06:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18228#M2986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this document out. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6163"&gt;YTQ, QTD, MTD and WTD&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 06:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18228#M2986</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2018-05-28T06:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18229#M2987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can fetch the answer from the above document.&lt;/P&gt;&lt;P&gt;They have converted the date field into numbers first using floor function.&lt;/P&gt;&lt;P&gt;I want to implement it using date field only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 07:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18229#M2987</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-28T07:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18230#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your date field format? What object are you doing this in? Does it have Year, MonthYear as dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 13:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18230#M2988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-28T13:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18231#M2989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Date is in DD-MMM-YYYY format.&lt;/P&gt;&lt;P&gt;i&amp;nbsp; need&amp;nbsp; to calculate this YTD for a specific month which is basically a&amp;nbsp; previous month of selected date from date filter.&lt;/P&gt;&lt;P&gt;I m showing this in a graph (as below ) which basically have a month as dimension fetched from date only.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203750_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;i need to calculate YTD for Dec-17 which basically is 4th previous month of Apr-18 as shown above in the graph.&lt;/P&gt;&lt;P&gt;I just have a date field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 04:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18231#M2989</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-29T04:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18232#M2990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you select April, you need data from dec17 to Mar 18? Do you have Month Year field too in your model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 04:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18232#M2990</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-05-29T04:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18233#M2991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No,&lt;/P&gt;&lt;P&gt;I need a YTD for Dec month i.e &lt;/P&gt;&lt;P&gt;Since the recent month is coming out be April-18 and all other previous months are reflecting accordingly.&lt;/P&gt;&lt;P&gt;what i want is that for Dec-17 month, i need to calculate YTD for this month i.e for Dec YTD the month should come out to be from April-17 to Dec-17 as our financial year starts from April of every year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 05:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18233#M2991</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-29T05:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18234#M2992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you mean to say, basis on your selection, result should be of previous month till Dec 17?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 05:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18234#M2992</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-05-29T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18235#M2993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have calculated YTD for month and stored in variable called $(&lt;STRONG&gt;Month_YTD)&lt;/STRONG&gt; using below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(distinct {1&amp;lt;fiscal_year={"$(=$(year))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;accounting_period={"$(='&amp;gt;=' &amp;amp; 1 &amp;amp; '&amp;lt;=' &amp;amp; $(v_accounting_period))"}&amp;gt;}Date,',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Where $(year) is as&lt;STRONG&gt; concat(distinct {$&amp;lt;Date={"$(=$(prev_month4))"}&amp;gt;}fiscal_year,',') &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and $(v_accounting_period) is as&amp;nbsp; &lt;STRONG&gt;concat(distinct {$&amp;lt;Date={"$(=$(prev_month4))"}&amp;gt;} accounting_period,',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value of this Month_YTD variable is coming out to be 30-Nov-2017,31-Dec-2017 which is correct.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But when i m using this variable $(Month_YTD) in the below expression i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count({$&amp;lt;Date={"$(=$(Month_YTD))"}&amp;gt;} distinct emp_id) ,&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333px;"&gt;i am not getting the answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Although when i m manually feeding the dates in place of this Variable i.e&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;count({$&amp;lt;Date={'30-Nov-2017','31-Dec-2017'}&amp;gt;} distinct emp_id)&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;,then i m getting the answer .&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong with this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 05:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18235#M2993</guid>
      <dc:creator>pooja821</dc:creator>
      <dc:date>2018-05-30T05:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD for Month using Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18236#M2994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change Month_YTD to this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Chr(39) &amp;amp; Concat(DISTINCT {1&amp;lt;fiscal_year = {"$(=$(year))"}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;accounting_period = {"$(='&amp;gt;=' &amp;amp; 1 &amp;amp; '&amp;lt;=' &amp;amp; $(v_accounting_period))"}&amp;gt;} Date, Chr(39) &amp;amp; ',' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and then the main expression to this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({$&amp;lt;Date = {$(=$(Month_YTD))}&amp;gt;} DISTINCT emp_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({$&amp;lt;Date = {$(Month_YTD)}&amp;gt;} DISTINCT emp_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 09:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-for-Month-using-Date/m-p/18236#M2994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-30T09:00:14Z</dc:date>
    </item>
  </channel>
</rss>

