<?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 Help with Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156680#M32474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of the OR() function you can use Match('Field',value1,value2,etc) If any value is found it will return true.&lt;/P&gt;&lt;P&gt;I would suggest that you cut down the formula into smaller parts. A bit like setting some flags. And then have them all put together in the expression dialog for your charts. It make you code cleaner and more flexible.&lt;/P&gt;&lt;P&gt;Although precalculations is always nice &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 17:51:02 GMT</pubDate>
    <dc:creator>tseebach</dc:creator>
    <dc:date>2010-02-23T17:51:02Z</dc:date>
    <item>
      <title>Help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156678#M32472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;Hi&lt;/P&gt;&lt;P&gt;i am applying the script below but it does not work, please provide me with a solution as it works perfect in excel as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=IF(O2&amp;lt;0,"Expenses",IF(AND(L2="BGC",RIGHT(G2,6)&amp;lt;&amp;gt;"602210"),"Cheques other",IF(AND(G2="MANPOWER UK LTD",LEN(H2)=3),"Cashbook",IF(AND(L2="IBP",I2="Manpower UK LTD"),"Cashbook",IF(AND(OR(L2="CHP",L2="IBP"),LEN(I2)=0),G2,IF(OR(L2="CHP",L2="IBP"),I2,G2))))))&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;if(Amount &amp;lt;= '0', 'Expenses', if (Type = 'BGC' + right([Narrative #1], 6)&amp;lt;&amp;gt; '602210' &lt;P&gt;),&lt;/P&gt;&lt;P&gt;'Cheques Other'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;, if ([Narrative #1] = 'MANPOWER UK LTD' + LEN([Narrative #3]) = '3', 'Cashbook' &lt;P&gt;,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Type = 'IBP' + [Narrative #3] = 'MANPOWER UK LTD'), 'Cashbook', if(&lt;B&gt;or&lt;/B&gt;(Type = 'CHP', Type = 'IBP' &lt;P&gt;)+&lt;/P&gt;&lt;P&gt;len&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;([Narrative #3] = '0', [Narrative #1], if(&lt;B&gt;or&lt;/B&gt;(Type = 'CHP', Type = 'IBP'), [Narrative #3], [Narrative #1]))))) &lt;B&gt;as&lt;/B&gt; [New Narrative] &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;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 16:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156678#M32472</guid>
      <dc:creator>jagjivvt</dc:creator>
      <dc:date>2010-02-23T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156679#M32473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first is Excel and the second is using the same logic in your Load Script?&lt;/P&gt;&lt;P&gt;First, you use and inside if statements.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if (Type = 'BGC' &lt;STRONG&gt;and&lt;/STRONG&gt; right([Narrative #1], 6)&amp;lt;&amp;gt; '602210'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I also don't think there is an or() function, use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if(Type = 'CHP' &lt;STRONG&gt;or&lt;/STRONG&gt; Type = 'IBP'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It would also be a lot easier to read the expression if you pasted it as plain text inside [ code] [ /code] tags (without the spaces).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 17:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156679#M32473</guid>
      <dc:creator />
      <dc:date>2010-02-23T17:17:25Z</dc:date>
    </item>
    <item>
      <title>Help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156680#M32474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of the OR() function you can use Match('Field',value1,value2,etc) If any value is found it will return true.&lt;/P&gt;&lt;P&gt;I would suggest that you cut down the formula into smaller parts. A bit like setting some flags. And then have them all put together in the expression dialog for your charts. It make you code cleaner and more flexible.&lt;/P&gt;&lt;P&gt;Although precalculations is always nice &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 17:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Load-Script/m-p/156680#M32474</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2010-02-23T17:51:02Z</dc:date>
    </item>
  </channel>
</rss>

