<?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 If condition in a load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376294#M140268</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;I would like to calculate and add a field in&amp;nbsp; a load script to avoid doing it in a dimension. So I would like to take the following and where it meets the following then add FTE.FTEYearEnd2011 to FTEYearEnd2011CurrentView. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the following but I get erros in the script load. Can someone give me the proper syntax. I appreciate any assistance in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'OBG'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'MFM'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'GST'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'ORE'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'PED'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'PDS'&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;FTE.FTEYearEnd2011&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;FTEYearEnd2011CurrentView&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 16:00:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-08T16:00:23Z</dc:date>
    <item>
      <title>If condition in a load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376294#M140268</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;I would like to calculate and add a field in&amp;nbsp; a load script to avoid doing it in a dimension. So I would like to take the following and where it meets the following then add FTE.FTEYearEnd2011 to FTEYearEnd2011CurrentView. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the following but I get erros in the script load. Can someone give me the proper syntax. I appreciate any assistance in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'OBG'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'MFM'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'GST'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'ORE'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'PED'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'PDS'&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;FTE.FTEYearEnd2011&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;FTEYearEnd2011CurrentView&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376294#M140268</guid>
      <dc:creator />
      <dc:date>2012-08-08T16:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in a load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376295#M140269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;IF(&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'OBG'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 8pt; background-color: #eef4f9; font-family: Arial;"&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'MFM'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 8pt; background-color: #eef4f9; font-family: Arial;"&gt; or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'GST' or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'ORE'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 8pt; background-color: #eef4f9; font-family: Arial;"&gt; or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'PED'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-size: 8pt; background-color: #eef4f9; font-family: Arial;"&gt; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;[EmployeeDirectory.Team]&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;'PDS'&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;FTE.FTEYearEnd2011&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;) &lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;FTEYearEnd2011CurrentView&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376295#M140269</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2012-08-08T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in a load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376296#M140270</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;I suggest this:&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 _jivemacro_uid_1344449007550734" jivemacro_uid="_1344449007550734"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Match(EmployeeDirectory.Team, 'OBG','MFM','GST','ORE','PED','PDS'), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FTE.FTEYearEnd2011, 0) As FTEYearEnd2011CurrentView&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;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 18:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-a-load-script/m-p/376296#M140270</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-08T18:02:07Z</dc:date>
    </item>
  </channel>
</rss>

