<?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 Where function in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-function-in-script/m-p/262418#M1188741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'A', SalesValue, 0) as SalesValueA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'B', SalesValue, 0) as SalesValueB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'C', SalesValue, 0) as SalesValueC&lt;/P&gt;&lt;P&gt;From ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 12:33:16 GMT</pubDate>
    <dc:creator>jedgson</dc:creator>
    <dc:date>2011-08-10T12:33:16Z</dc:date>
    <item>
      <title>Where function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Where-function-in-script/m-p/262417#M1188740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,I am writing a VAT application and&amp;nbsp; i am trying to break down a SalesValue field in my script &lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Value =£1000 which is a total of £200 Vat Code A, £400 Vat Code B and £400 Vat Code C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to break this down in the script and make new fields something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load...&lt;/P&gt;&lt;P&gt;SalesValue Where VATIndicator ='A' AS SalesValueA,&lt;/P&gt;&lt;P&gt;SalesValue Where VATIndicator ='B' AS SalesValueB,&lt;/P&gt;&lt;P&gt;SalesValue Where VATIndicator ='C' AS SalesValueC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i do not know how to do it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i can use set analysis in a chart to total up each VAT Code but i thought it might be quicker to get it done in the script instead (As the script is reloaded out of hours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 12:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-function-in-script/m-p/262417#M1188740</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2011-08-10T12:22:42Z</dc:date>
    </item>
    <item>
      <title>Where function in script</title>
      <link>https://community.qlik.com/t5/QlikView/Where-function-in-script/m-p/262418#M1188741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'A', SalesValue, 0) as SalesValueA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'B', SalesValue, 0) as SalesValueB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( VATIndicator = 'C', SalesValue, 0) as SalesValueC&lt;/P&gt;&lt;P&gt;From ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 12:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-function-in-script/m-p/262418#M1188741</guid>
      <dc:creator>jedgson</dc:creator>
      <dc:date>2011-08-10T12:33:16Z</dc:date>
    </item>
  </channel>
</rss>

