<?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: if function?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403270#M425170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of the IF statement you could also use a Pick and nested Match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(BU,'MONT','OPS','SHOP','NPD'),'MT','WR','WR','NPD') AS [Responsibility Center]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 14:33:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-02T14:33:45Z</dc:date>
    <item>
      <title>if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403266#M425166</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;how do i write in script for example the following scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following field with respective values in it:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;BU&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONT&lt;/P&gt;&lt;P&gt;OPS&lt;/P&gt;&lt;P&gt;SHOP&lt;/P&gt;&lt;P&gt;NPD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a 2nd field called Responsibility Center that should populate as follows.&lt;/P&gt;&lt;P&gt;if BU = MONT;&amp;nbsp; the responsibility center = MT&lt;/P&gt;&lt;P&gt;if BU = OPS or SHOP; the responsibility center = WR&lt;/P&gt;&lt;P&gt;if BU = NPD; responsibility center = NPD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the table will then look as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;BU&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;RESPONSIBILITY CENTER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MONT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MT&lt;/P&gt;&lt;P&gt;OPS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WR&lt;/P&gt;&lt;P&gt;SHOP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WR&lt;/P&gt;&lt;P&gt;NPD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NPD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403266#M425166</guid>
      <dc:creator>ranibosch</dc:creator>
      <dc:date>2017-11-02T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403267#M425167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like a straightforward nested if():&lt;/P&gt;&lt;P&gt;If(BU = 'MONT','MT',if(BU = 'NPD','NPD','WR') as RESPONSIBILITY_CENTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note that I used the ELSE section for the WR combination, but you can write it out in full if you prefer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403267#M425167</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-02T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403268#M425168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1373848"&gt;Re: New field creation using existing fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1373851"&gt;Re: New field creation using existing fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403268#M425168</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-02T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403269#M425169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do a resident load into the table with a nested IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if(BU='MONT','MT',if(BU='OPS' OR BU='SHOP','WR',if(BU='NPD','NPD',0))) AS [Responsibility Center];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;BU&lt;/P&gt;&lt;P&gt;MONT&lt;/P&gt;&lt;P&gt;OPS&lt;/P&gt;&lt;P&gt;SHOP&lt;/P&gt;&lt;P&gt;NPD&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403269#M425169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-02T14:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403270#M425170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of the IF statement you could also use a Pick and nested Match:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(BU,'MONT','OPS','SHOP','NPD'),'MT','WR','WR','NPD') AS [Responsibility Center]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403270#M425170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-02T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403271#M425171</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;another solution could be a mapping table and the ApplyMap() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm"&gt;Mapping ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/MappingFunctions/mapping-functions.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/MappingFunctions/mapping-functions.htm"&gt;Mapping functions ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 22:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403271#M425171</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-11-03T22:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: if function??</title>
      <link>https://community.qlik.com/t5/QlikView/if-function/m-p/1403272#M425172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rani&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Mapping&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; tmp:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; BU,RESPONSIBILITY CENTER&lt;BR /&gt; MONT,MT&lt;BR /&gt; OPS,WR&lt;BR /&gt; SHOP,WR&lt;BR /&gt; NPD,NPD&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; MyTbl:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('tmp',&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;BU&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'N/A') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;RES_CENTER&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; BU&lt;BR /&gt; MONT&lt;BR /&gt; OPS&lt;BR /&gt; SHOP&lt;BR /&gt; NPD&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 22:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-function/m-p/1403272#M425172</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-11-03T22:55:51Z</dc:date>
    </item>
  </channel>
</rss>

