<?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 YTD in a Graphic Table Simple in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184445#M503066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;for me the easiest (fastest, safest) way is to adapt your load script to do the calculations once and for all:&lt;BR /&gt;&amp;gt; renamed your import to "TempMesos" to use as a temporary table&lt;BR /&gt;&amp;gt; then use a load of the temp data, with a formula to keep a running count YTD while in the same year; not the sort &amp;amp; the peek() to get the previous value&lt;BR /&gt;&amp;gt; totals per year via a second grouping load&lt;BR /&gt;&amp;gt; delete temporary table&lt;BR /&gt;TempMesos:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;TheYear,TheMonth,Value&lt;BR /&gt;2008,1,1387394&lt;BR /&gt;2008,2,1376844&lt;BR /&gt;2008,3,1309404&lt;BR /&gt;2008,4,1366188&lt;BR /&gt;2008,5,1309275&lt;BR /&gt;2008,6,1253805&lt;BR /&gt;2008,7,1351683&lt;BR /&gt;2008,8,829485&lt;BR /&gt;2008,9,1214027&lt;BR /&gt;2008,10,1398640&lt;BR /&gt;2008,11,1311982&lt;BR /&gt;2008,12,1365247&lt;BR /&gt;2009,1,1288279&lt;BR /&gt;2009,2,1259527&lt;BR /&gt;2009,3,1356829&lt;BR /&gt;2009,4,1210463&lt;BR /&gt;2009,5,1259276&lt;BR /&gt;2009,6,1228695&lt;BR /&gt;2009,7,1315699&lt;BR /&gt;2009,8,807569&lt;BR /&gt;2009,9,1196796&lt;BR /&gt;2009,10,1334510&lt;BR /&gt;2009,11,1283482&lt;BR /&gt;2009,12,1309258&lt;BR /&gt;2010,1,1257022&lt;BR /&gt;2010,2,1248634&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Mesos:&lt;BR /&gt;Load&lt;BR /&gt;TheYear,TheMonth,Value,&lt;BR /&gt;&lt;STRONG&gt;If(TheYear = Previous(TheYear),&lt;/STRONG&gt; Value + &lt;STRONG&gt;Peek('YTD',-1,'Data'), Value&lt;/STRONG&gt;) As YTD&lt;BR /&gt;Resident&lt;BR /&gt;TempMesos&lt;BR /&gt;&lt;STRONG&gt;Order by TheYear,TheMonth&lt;/STRONG&gt;;&lt;BR /&gt;MesosT:&lt;BR /&gt;Load&lt;BR /&gt;TheYear, sum(Value) AS YTotal&lt;BR /&gt;Resident&lt;BR /&gt;TempMesos&lt;BR /&gt;Group by&lt;BR /&gt;TheYear;&lt;BR /&gt;Drop Table TempMesos;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Greetings,&lt;BR /&gt;Piet&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Mar 2010 14:38:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-21T14:38:01Z</dc:date>
    <item>
      <title>YTD in a Graphic Table Simple</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184444#M503065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I'm Jordi Santos and I'm a Beginner in QlikView program.&lt;BR /&gt;&lt;BR /&gt;I'm trying to calculate the accumulate value of YTD and the accumulate of 12 month to day.&lt;BR /&gt;I can calculate this values with above expression, and that's right.&lt;BR /&gt;But when I select one month, I get a wrong value for YTD and 12M, only appear the value of the current month not the accumulate.&lt;BR /&gt;What expression I have to use?&lt;BR /&gt;I attach an example.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 16:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184444#M503065</guid>
      <dc:creator />
      <dc:date>2010-03-17T16:27:37Z</dc:date>
    </item>
    <item>
      <title>YTD in a Graphic Table Simple</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184445#M503066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;for me the easiest (fastest, safest) way is to adapt your load script to do the calculations once and for all:&lt;BR /&gt;&amp;gt; renamed your import to "TempMesos" to use as a temporary table&lt;BR /&gt;&amp;gt; then use a load of the temp data, with a formula to keep a running count YTD while in the same year; not the sort &amp;amp; the peek() to get the previous value&lt;BR /&gt;&amp;gt; totals per year via a second grouping load&lt;BR /&gt;&amp;gt; delete temporary table&lt;BR /&gt;TempMesos:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;TheYear,TheMonth,Value&lt;BR /&gt;2008,1,1387394&lt;BR /&gt;2008,2,1376844&lt;BR /&gt;2008,3,1309404&lt;BR /&gt;2008,4,1366188&lt;BR /&gt;2008,5,1309275&lt;BR /&gt;2008,6,1253805&lt;BR /&gt;2008,7,1351683&lt;BR /&gt;2008,8,829485&lt;BR /&gt;2008,9,1214027&lt;BR /&gt;2008,10,1398640&lt;BR /&gt;2008,11,1311982&lt;BR /&gt;2008,12,1365247&lt;BR /&gt;2009,1,1288279&lt;BR /&gt;2009,2,1259527&lt;BR /&gt;2009,3,1356829&lt;BR /&gt;2009,4,1210463&lt;BR /&gt;2009,5,1259276&lt;BR /&gt;2009,6,1228695&lt;BR /&gt;2009,7,1315699&lt;BR /&gt;2009,8,807569&lt;BR /&gt;2009,9,1196796&lt;BR /&gt;2009,10,1334510&lt;BR /&gt;2009,11,1283482&lt;BR /&gt;2009,12,1309258&lt;BR /&gt;2010,1,1257022&lt;BR /&gt;2010,2,1248634&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Mesos:&lt;BR /&gt;Load&lt;BR /&gt;TheYear,TheMonth,Value,&lt;BR /&gt;&lt;STRONG&gt;If(TheYear = Previous(TheYear),&lt;/STRONG&gt; Value + &lt;STRONG&gt;Peek('YTD',-1,'Data'), Value&lt;/STRONG&gt;) As YTD&lt;BR /&gt;Resident&lt;BR /&gt;TempMesos&lt;BR /&gt;&lt;STRONG&gt;Order by TheYear,TheMonth&lt;/STRONG&gt;;&lt;BR /&gt;MesosT:&lt;BR /&gt;Load&lt;BR /&gt;TheYear, sum(Value) AS YTotal&lt;BR /&gt;Resident&lt;BR /&gt;TempMesos&lt;BR /&gt;Group by&lt;BR /&gt;TheYear;&lt;BR /&gt;Drop Table TempMesos;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Greetings,&lt;BR /&gt;Piet&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Mar 2010 14:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184445#M503066</guid>
      <dc:creator />
      <dc:date>2010-03-21T14:38:01Z</dc:date>
    </item>
    <item>
      <title>YTD in a Graphic Table Simple</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184446#M503067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Piet for your time,&lt;/P&gt;&lt;P&gt;Is a good solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 10:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-in-a-Graphic-Table-Simple/m-p/184446#M503067</guid>
      <dc:creator />
      <dc:date>2010-03-22T10:00:23Z</dc:date>
    </item>
  </channel>
</rss>

