<?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: Current Month MTD+Previous Month Calculated YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278233#M401182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample file where you are working on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 12:23:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-05T12:23:37Z</dc:date>
    <item>
      <title>Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278232#M401181</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;We are facing difficulty in implementing below logic. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the logic:&lt;/P&gt;&lt;P&gt;For each month we are receiving the source file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have below source file for &lt;STRONG&gt;Aug 2016:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="267"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="75"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;YTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="75"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Aug-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="75"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Aug-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;35&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="75"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Aug-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;30&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source file for Sep 2016:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="263"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;YTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;30&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Sep 2016:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="263"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;YTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;30&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;65&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Sep-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are not facing any issues in implementing MTD logic as it has different calculation.&lt;/P&gt;&lt;P&gt;But YTD logic we are not getting the desired output.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;For Ex: YTD for Sep = MTD of Sep from source file + YTD of Aug month.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;For the first month the logic works correctly as we are taking YTD value from source file directly. But from the next month onwards it does not works correctly and instead of taking calculated YTD value it take from source file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Source file for OCT 2016:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="263"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;YTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Oct 2016:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="263"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;Entity&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;MTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;STRONG style="color: black;"&gt;YTD&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;40&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;60&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;125&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;ABC&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="71"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;Oct-16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;80&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;140&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;Please help in implementing it. Any help is much appreciated!!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 18.0pt;"&gt;Deepak&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278232#M401181</guid>
      <dc:creator />
      <dc:date>2017-01-05T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278233#M401182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample file where you are working on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278233#M401182</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-05T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278234#M401183</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;Not able to share ....Sorry&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;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278234#M401183</guid>
      <dc:creator />
      <dc:date>2017-01-05T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278235#M401184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278235#M401184</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-05T12:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278236#M401185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the logic to work properly we need to generate a unique row id so we can do a lookup into previous loaded rows using the Lookup() function in the script. This unique row id must be persisted for the table as a new field as long as the script runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148469" alt="2017-01-05 14_24_14-Edit Script [C__Users_psd_Downloads_qlik community - Current Month MTD+Previous .png" class="jive-image image-1" src="/legacyfs/online/148469_2017-01-05 14_24_14-Edit Script [C__Users_psd_Downloads_qlik community - Current Month MTD+Previous .png" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278236#M401185</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278237#M401186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter for reply!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly lookup function do here ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Unique we have one more Column which is Unqiue i.e GLAccount we can use that column for the Unique ID than there is no use of Recno() function.??&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;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278237#M401186</guid>
      <dc:creator />
      <dc:date>2017-01-05T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278238#M401187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right - you should use a column that already is unique instead of the synthetically produced UniqueID that I made - then you will not need to use the RecNo() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Lookup() is to find the old YTD value from previously loaded files or previously loaded values for the same field in the current load statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 14:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278238#M401187</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278239#M401188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Hi Petter,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Thank You for the help!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Above code works fine for first two months. The moment I add other month data, YTD logic does not works fine. Currently we have loaded three month data&amp;nbsp; you can find as attachment...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 16.0pt; font-family: 'Calibri',sans-serif;"&gt;Aug month YTD displayed as blank.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Attached here the source file for three Months and .qvw file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Thanks a lot for the support!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Deepak&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278239#M401188</guid>
      <dc:creator />
      <dc:date>2017-01-06T10:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278240#M401189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that your files are named so they are processed in the right order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic in the load script demands that the ABC* files come in ascending order when it comes to file names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should have files being named like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABC01 - for January&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ABC12 - for December&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just renaming your file ABC1.txt to DATA-08.txt and ABC2.txt to DATA-07.txt will make the load script work without a problem. I just tested it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278240#M401189</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-06T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278241#M401190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Reply !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have data for last 5 years that's why we have used ABC * for loading the files because we want dynamic load for every month.&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;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278241#M401190</guid>
      <dc:creator />
      <dc:date>2017-01-06T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278242#M401191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So making a naming standard/convention for your files would be a useful thing then. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I may - I would suggest something along the lines of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa-YYYY-MM.TXT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES-2016-01.TXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then all files will be read in the right order... After processing the files one could rename or move the files to a history folder og mark them as processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then simply do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * FROM SALES-*.TXT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the wildcard * will get/read the files in sorted order - which means the months and years will be processed in the order they need to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 11:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278242#M401191</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-06T11:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278243#M401192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I answered your question so please mark this thread as answered unless there are specific things in the answer that might be unclear. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 09:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278243#M401192</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-08T09:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current Month MTD+Previous Month Calculated YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278244#M401193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one more condition for YTD , In each month some of new GL account is added in the Current Month File and which is not present in previous Month file, for those GL accounts MTD is equal to YTD. In your solution it is not working because you put the condition on GL accounts which is presents in both the files i.e Current Month File and Previous Month File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example: GL account 800005 is present in July File and which is not present in June than .YTD for this GL account is equal to MTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suugest a way how to put this new condition in Lookup function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Month-MTD-Previous-Month-Calculated-YTD/m-p/1278244#M401193</guid>
      <dc:creator />
      <dc:date>2017-01-10T12:54:51Z</dc:date>
    </item>
  </channel>
</rss>

