<?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: Logic at script end -Derive Day level using MTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122003#M919380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add Date and Sales in a table box you will see the day level sales. If this is not what you want, may be elaborate and provide a sample with expected output &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 13:34:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-11T13:34:23Z</dc:date>
    <item>
      <title>Logic at script end -Derive Day level using MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122000#M919377</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 derive day level data using MTD. Below is the scenario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- We were having only MTD data.&lt;/P&gt;&lt;P&gt;2- To get day level data we need to do arithmetic calculation as MTD sales count on today - MTD sales count&amp;nbsp; on Yesterday will get Sales for today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: 5/11/2016 sales = MTD 5/11/2016 sale - MTD 5/10/2016 sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we have to implement this logic at Script level.&lt;/P&gt;&lt;P&gt;May i know logic to write at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: DATE = SYSDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122000#M919377</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic at script end -Derive Day level using MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122001#M919378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(Date) as MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date, MTDSales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/01/2016, 50&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/02/2016, 80&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/03/2016, 90&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/01/2016, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/02/2016, 40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;02/03/2016, 70&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(MonthYear = Peek('MonthYear'), MTDSales - Peek('MTDSales'), MTDSales) as Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 12:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122001#M919378</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Logic at script end -Derive Day level using MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122002#M919379</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;This haven't gave day level data.Please find below image.&lt;/P&gt;&lt;P&gt;I need to derive one day data from MTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124246_Untitled.png" style="height: 170px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122002#M919379</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-05-11T13:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logic at script end -Derive Day level using MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122003#M919380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add Date and Sales in a table box you will see the day level sales. If this is not what you want, may be elaborate and provide a sample with expected output &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122003#M919380</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Logic at script end -Derive Day level using MTD</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122004#M919381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOad * INline [&lt;/P&gt;&lt;P&gt;Date, Amount&lt;/P&gt;&lt;P&gt;05/11/2016, 250&lt;/P&gt;&lt;P&gt;05/10/2016, 220&lt;/P&gt;&lt;P&gt;05/09/2016, 200&lt;/P&gt;&lt;P&gt;05/08/2016, 150&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;Final:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount-Previous(Amount) as NewAmount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Temp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order by Date Asc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Drop table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124255_Capture.PNG" style="height: 384px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 13:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-at-script-end-Derive-Day-level-using-MTD/m-p/1122004#M919381</guid>
      <dc:creator />
      <dc:date>2016-05-11T13:52:14Z</dc:date>
    </item>
  </channel>
</rss>

