<?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 IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370298#M137697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi All&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;What I want the following IF statement to do is, IF the APPSilo field is blank, return the PInstallTeam, otherwise just use the APPSilo field. &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;IF(IsNull(APPSilo),PInstallTeam,APPSilo) &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Nothing wrong with the logic there of course. The problem I am having is the PInstall team is in another table (created previously in the script). The tables are linked via a key field. How do I get the script to return the PInstallTeam field - the error is Field not Found. Thanks. &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2012 13:55:48 GMT</pubDate>
    <dc:creator>stuwannop</dc:creator>
    <dc:date>2012-04-26T13:55:48Z</dc:date>
    <item>
      <title>Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370298#M137697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi All&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;What I want the following IF statement to do is, IF the APPSilo field is blank, return the PInstallTeam, otherwise just use the APPSilo field. &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;IF(IsNull(APPSilo),PInstallTeam,APPSilo) &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Nothing wrong with the logic there of course. The problem I am having is the PInstall team is in another table (created previously in the script). The tables are linked via a key field. How do I get the script to return the PInstallTeam field - the error is Field not Found. Thanks. &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 13:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370298#M137697</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-04-26T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370299#M137698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are running the script which doesn't have PInstallTeam feild from particular dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've data in my dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If i want to load this dataset in qvw. I can use the code as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load A,B,C&lt;/P&gt;&lt;P&gt;From dataset;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i use the below code, it show the error. B' coz D,E fields are not existing in the datset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load A,B,C,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D,E&lt;/P&gt;&lt;P&gt;From dataset;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370299#M137698</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-04-26T14:05:24Z</dc:date>
    </item>
    <item>
      <title>Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370300#M137699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Jagan - I have the logic and I know why it is showing the error. My question is how do I load the PInstallTeam into the existing data table from another one so I can run my IF statement. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370300#M137699</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-04-26T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370301#M137700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you should have a common key between two tables. With help of common key we can combine two tables. There are different number of ways to combine the two tables, it all depends on the data what we want. From the combination of two tables we can make a calcualation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load key, A,B,C from Dataset1;&lt;/P&gt;&lt;P&gt;Left Join (Table1)&lt;/P&gt;&lt;P&gt;Load key,D,E from Dataset2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(IsNull(C),A,E) as NewField&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it may helps you understand. Otherwise provide sample file with data. It helps me and others to solve the issue of yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370301#M137700</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-04-26T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370302#M137701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'm pretty sure it's the lookup command but can't figure it beyond there. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370302#M137701</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-04-26T14:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370303#M137702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following example and adapt it to meet your needs:&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;Table1:&lt;/P&gt;&lt;P&gt;LOAD CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Address,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZipCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;FROM Customers.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// take all customer IDs and return codes&lt;/P&gt;&lt;P&gt;IDCodeMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerCode&lt;/P&gt;&lt;P&gt;RESIDENT Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Replace empty CustomerID with Customer Code&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD InvoiceID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(CustomerCode) = 0, ApplyMap('IDCodeMap', CustomerID, CustomerCode), CustomerCode) AS CustomerCode&lt;/P&gt;&lt;P&gt;FROM Invoices.qvd (qvd);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 14:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-Statement/m-p/370303#M137702</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-04-26T14:54:31Z</dc:date>
    </item>
  </channel>
</rss>

