<?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 VAT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199439#M58374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Footsie&lt;/P&gt;&lt;P&gt;Will this work on my data table?&lt;/P&gt;&lt;P&gt;I do not have a from / to date on the one record just an AsOfDate.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;TaxCode, TaxRate, AsOfDate&lt;/P&gt;&lt;P&gt;VATSTD, 17.5, 01/01/2001&lt;/P&gt;&lt;P&gt;VATSTD. 15.0, 01/12/2008&lt;/P&gt;&lt;P&gt;If not, is there anyway I can get my table to fit (programatically) i.e. end up with...&lt;/P&gt;&lt;P&gt;TaxCode, TaxRate, AsOfDate, EndDate&lt;/P&gt;&lt;P&gt;VATSTD, 17.5, 01/01/2001, 30/11/2008&lt;/P&gt;&lt;P&gt;VATSTD, 15.0, 01/12/2008, Todays Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 17:04:18 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2009-09-25T17:04:18Z</dc:date>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199436#M58371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have two tables...&lt;/P&gt;&lt;P&gt;Table 1 - Sales Invoice Transactions&lt;/P&gt;&lt;P&gt;Inv #, Date, TAXCode, InvoiceValue&lt;/P&gt;&lt;P&gt;1, 30/11/2008, VATSTD, £117.50&lt;/P&gt;&lt;P&gt;2, 01/12/2008, VATSTD, £115.00&lt;/P&gt;&lt;P&gt;3, 01/01/2009, VAT0, £100&lt;/P&gt;&lt;P&gt;Table 2 - TAXCode Lookup&lt;/P&gt;&lt;P&gt;TAXCode, VATRate, ASOfDate&lt;/P&gt;&lt;P&gt;VATSTD, 17.5, 01/01/2001&lt;/P&gt;&lt;P&gt;VAT0, 0, 01/01/2001&lt;/P&gt;&lt;P&gt;VATSTD, 15.0, 01/12/2008&lt;/P&gt;&lt;P&gt;I want to calculate the goods value (Invoice Value - VAT) for my sales invoice transactions in my script.&lt;/P&gt;&lt;P&gt;I want transactions witha a code of VATSTD between 01/01/2001 and 30/11/2008 to apply a rate 17.5 with transactions after this date to apply a rate of 15.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 16:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199436#M58371</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2009-09-25T16:30:57Z</dc:date>
    </item>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199437#M58372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;You need to use &lt;STRONG&gt;intervalmatch&lt;/STRONG&gt; to get what you are looking for here.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Footsie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 16:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199437#M58372</guid>
      <dc:creator />
      <dc:date>2009-09-25T16:38:02Z</dc:date>
    </item>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199438#M58373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here you will have to generate an intermediate table from your taxcode lookup:&lt;/P&gt;&lt;P&gt;try using following code:-&lt;/P&gt;&lt;P&gt;Lookup_Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Taxcode,&lt;/P&gt;&lt;P&gt;Vatrate,&lt;/P&gt;&lt;P&gt;Asofdate&lt;/P&gt;&lt;P&gt;from TexcodeLookup order by Taxcode,Asofdate DESC;&lt;/P&gt;&lt;P&gt;Lookup:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Taxcode,&lt;/P&gt;&lt;P&gt;Vatrate,&lt;/P&gt;&lt;P&gt;Asofdate as StartDate,&lt;/P&gt;&lt;P&gt;date(if(peek(Taxcode)&amp;lt;&amp;gt;NULL,if(peek(Taxcode)=Taxcode,peek(StartDate)-1,today()+1000),today()+1000)) as EndDate&lt;/P&gt;&lt;P&gt;resident Lookup_Temp;&lt;/P&gt;&lt;P&gt;drop table Lookup_Temp;&lt;/P&gt;&lt;P&gt;Now you will be having taxcode, vatrate and the effective startdate and enddate.&lt;/P&gt;&lt;P&gt;Now you can use an intervalmatch between this new table and your transaction table based on invoice date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199438#M58373</guid>
      <dc:creator />
      <dc:date>2009-09-25T17:01:57Z</dc:date>
    </item>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199439#M58374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Footsie&lt;/P&gt;&lt;P&gt;Will this work on my data table?&lt;/P&gt;&lt;P&gt;I do not have a from / to date on the one record just an AsOfDate.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;TaxCode, TaxRate, AsOfDate&lt;/P&gt;&lt;P&gt;VATSTD, 17.5, 01/01/2001&lt;/P&gt;&lt;P&gt;VATSTD. 15.0, 01/12/2008&lt;/P&gt;&lt;P&gt;If not, is there anyway I can get my table to fit (programatically) i.e. end up with...&lt;/P&gt;&lt;P&gt;TaxCode, TaxRate, AsOfDate, EndDate&lt;/P&gt;&lt;P&gt;VATSTD, 17.5, 01/01/2001, 30/11/2008&lt;/P&gt;&lt;P&gt;VATSTD, 15.0, 01/12/2008, Todays Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199439#M58374</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2009-09-25T17:04:18Z</dc:date>
    </item>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199440#M58375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore the above - Kuldeep obviously read my mind....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199440#M58375</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2009-09-25T17:08:13Z</dc:date>
    </item>
    <item>
      <title>VAT</title>
      <link>https://community.qlik.com/t5/QlikView/VAT/m-p/199441#M58376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Paul,&lt;/P&gt;&lt;P&gt;Please check the code i have given. Using this you will be able to get the desired table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 17:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VAT/m-p/199441#M58376</guid>
      <dc:creator />
      <dc:date>2009-09-25T17:09:37Z</dc:date>
    </item>
  </channel>
</rss>

