<?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 Revert YTD numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210100#M64833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have a transaction table storing mileage per vehicle posted on a monthly basis (YTD value posted every month) throughout the year what would be the most convinient way to calculate mileage driven per month?&lt;/P&gt;&lt;P&gt;The January value is how many miles the truck ran in January. February value posted is January +February so I need to subtract January from it to get the mileage.&lt;/P&gt;&lt;P&gt;What I want to achieve is a regular bar/line graph with Year Month as dimension, displaying mileage driven per month.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 01:28:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-08T01:28:01Z</dc:date>
    <item>
      <title>Revert YTD numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210100#M64833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have a transaction table storing mileage per vehicle posted on a monthly basis (YTD value posted every month) throughout the year what would be the most convinient way to calculate mileage driven per month?&lt;/P&gt;&lt;P&gt;The January value is how many miles the truck ran in January. February value posted is January +February so I need to subtract January from it to get the mileage.&lt;/P&gt;&lt;P&gt;What I want to achieve is a regular bar/line graph with Year Month as dimension, displaying mileage driven per month.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 01:28:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210100#M64833</guid>
      <dc:creator />
      <dc:date>2009-10-08T01:28:01Z</dc:date>
    </item>
    <item>
      <title>Revert YTD numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210101#M64834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might as well add that I am using above(XXX,1) to deal with it right now when playing around but it's a bit annoying and my expressions tends to be pretty long and complex which I try to avoid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 01:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210101#M64834</guid>
      <dc:creator />
      <dc:date>2009-10-08T01:54:53Z</dc:date>
    </item>
    <item>
      <title>Revert YTD numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210102#M64835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might solve it in the script. See this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpTrucks:&lt;BR /&gt;LOAD Truck,&lt;BR /&gt; DATE,&lt;BR /&gt; Mileage as YTDMileage&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;MILEAGE.xls&lt;BR /&gt;(biff, embedded labels, table is Plan1$);&lt;BR /&gt;&lt;BR /&gt;Trucks:&lt;BR /&gt;LOAD Truck,&lt;BR /&gt; DATE,&lt;BR /&gt; if( month(DATE)&amp;lt;&amp;gt;1,&lt;BR /&gt; (YTDMileage - previous(YTDMileage)),&lt;BR /&gt; YTDMileage ) as Mileage&lt;BR /&gt;resident tmpTrucks&lt;BR /&gt;order by Truck asc, DATE asc;&lt;BR /&gt;drop table tmpTrucks;&lt;/P&gt;&lt;P&gt;When the month if not january I calculated the Mileage as the YTD Mileage minus the previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 02:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Revert-YTD-numbers/m-p/210102#M64835</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2009-10-08T02:06:41Z</dc:date>
    </item>
  </channel>
</rss>

