<?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 Using IF in load-section in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305467#M112811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Perhaps a simple question but couldnt find any answer how I use IF in load-section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a row of notes, ex.: &lt;/P&gt;&lt;P&gt;1, Table, 299, DAMAGED Missing 2 legs&lt;/P&gt;&lt;P&gt;2, Chair, 99, Includes two small sidetables&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to easy select all "DAMAGED" goods, making a new column with a boolean (DAMAGED=1/0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;﻿IF(left(ANM, 7) ='DAMAGED'), DAMAGED=1, DAMAGED=0) as DAMAGED,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using this I get a error saying "Couldnt find field &amp;lt;DAMAGED&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it Im doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2011 09:26:46 GMT</pubDate>
    <dc:creator>t_hylander</dc:creator>
    <dc:date>2011-06-21T09:26:46Z</dc:date>
    <item>
      <title>Using IF in load-section</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305467#M112811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Perhaps a simple question but couldnt find any answer how I use IF in load-section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with a row of notes, ex.: &lt;/P&gt;&lt;P&gt;1, Table, 299, DAMAGED Missing 2 legs&lt;/P&gt;&lt;P&gt;2, Chair, 99, Includes two small sidetables&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to easy select all "DAMAGED" goods, making a new column with a boolean (DAMAGED=1/0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;﻿IF(left(ANM, 7) ='DAMAGED'), DAMAGED=1, DAMAGED=0) as DAMAGED,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using this I get a error saying "Couldnt find field &amp;lt;DAMAGED&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it Im doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 09:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305467#M112811</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2011-06-21T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF in load-section</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305468#M112812</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;You are very close to the final result. As you are creating a new field based on fields that still not exist in the QlikView model, the assignment of values will look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LOAD ....&lt;/P&gt;&lt;P&gt;IF(left(ANM, 7) ='DAMAGED'), 1, 0) as DAMAGED,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 09:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305468#M112812</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-21T09:57:10Z</dc:date>
    </item>
    <item>
      <title>Using IF in load-section</title>
      <link>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305469#M112813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, works perfect.&lt;/P&gt;&lt;P&gt;Sometimes the answer is right in front of you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 10:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-IF-in-load-section/m-p/305469#M112813</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2011-06-21T10:17:37Z</dc:date>
    </item>
  </channel>
</rss>

