<?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 Re: script : add a field based on a condition (if ??) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357995#M132858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code. &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left(account,1)='6','Expense',If(Left(account,1)='7','Product')) as ExpenseOrProduct&lt;/P&gt;&lt;P&gt;From Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 15:22:54 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2012-04-18T15:22:54Z</dc:date>
    <item>
      <title>script : add a field based on a condition (if ??)</title>
      <link>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357994#M132857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account mnt&lt;/P&gt;&lt;P&gt;600000; 300.00&lt;/P&gt;&lt;P&gt;601001; 308.00&lt;/P&gt;&lt;P&gt;606004; 12000.00&lt;/P&gt;&lt;P&gt;700011; 82000.00&lt;/P&gt;&lt;P&gt;780559 ; 12.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a field in my table based :&lt;/P&gt;&lt;P&gt;-field account everything that begins with 6xxxxx (a field expense)&lt;/P&gt;&lt;P&gt;-field account everything that begins with 7xxxxx (a field product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to arrive at this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account ; mnt ; expense/product&lt;/P&gt;&lt;P&gt;600000; 300.00 ; expense&lt;/P&gt;&lt;P&gt;601001; 308.00 ; expense&lt;/P&gt;&lt;P&gt;606004; 12000.00 ; expense&lt;/P&gt;&lt;P&gt;700011; 82000.00 ; product&lt;/P&gt;&lt;P&gt;780559 ; 12.00 ; product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 14:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357994#M132857</guid>
      <dc:creator />
      <dc:date>2012-04-18T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: script : add a field based on a condition (if ??)</title>
      <link>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357995#M132858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below code. &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; account,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Left(account,1)='6','Expense',If(Left(account,1)='7','Product')) as ExpenseOrProduct&lt;/P&gt;&lt;P&gt;From Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 15:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357995#M132858</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-04-18T15:22:54Z</dc:date>
    </item>
    <item>
      <title>script : add a field based on a condition (if ??)</title>
      <link>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357996#M132859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 15:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-add-a-field-based-on-a-condition-if/m-p/357996#M132859</guid>
      <dc:creator />
      <dc:date>2012-04-18T15:30:49Z</dc:date>
    </item>
  </channel>
</rss>

