<?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 ApplyMapping using values in two fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362132#M134596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I use values from two fields in the mapping, (that is if the value from a field meets a certain criteria then it should pick the value from another field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SQL statement it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE when WWHS = "IT' then LLOC ELSE WWHS END&lt;/P&gt;&lt;P&gt;(where WWHS was the warehouse field and if the warehouse was 'IT" then it would be substituted with a value in the Location field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jul 2012 22:13:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-21T22:13:00Z</dc:date>
    <item>
      <title>ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362132#M134596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I use values from two fields in the mapping, (that is if the value from a field meets a certain criteria then it should pick the value from another field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SQL statement it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE when WWHS = "IT' then LLOC ELSE WWHS END&lt;/P&gt;&lt;P&gt;(where WWHS was the warehouse field and if the warehouse was 'IT" then it would be substituted with a value in the Location field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 22:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362132#M134596</guid>
      <dc:creator />
      <dc:date>2012-07-21T22:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362133#M134597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may use the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;If(WWHS = "IT', LLOC, WWHS) as newWWHS &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 22:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362133#M134597</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-21T22:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362134#M134598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnamoorthy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, what would happen in cases there are like 10 or more values to be used (like in my example instead of just IT if I need to use CT, RT, LT,XT and s on) the if statements become too much nested and was looking for a more neater way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 22:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362134#M134598</guid>
      <dc:creator />
      <dc:date>2012-07-21T22:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362135#M134599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishnamoorthy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, what would happen in cases there are like 10 or more values to be used (like in my example instead of just IT if I need to use CT, RT, LT,XT and s on) the if statements become too much nested and was looking for a more neater way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 22:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362135#M134599</guid>
      <dc:creator />
      <dc:date>2012-07-21T22:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362136#M134600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;If(Match(WWHS,'IT','CT','RT','LT','XT')=1, LLOC, WWHS) as newWWHS&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2012 23:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362136#M134600</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-21T23:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362137#M134601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Krishnamoorthy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responce, I used the formulae as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(match(WWHS,'IT','CT','RT','LT','XT')&amp;lt;&amp;gt;0,LLOC,WWHS) and it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 00:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362137#M134601</guid>
      <dc:creator />
      <dc:date>2012-07-22T00:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMapping using values in two fields?</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362138#M134602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Krishnamoorthy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responce, I used the formulae as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(match(WWHS,'IT','CT','RT','LT','XT')&amp;lt;&amp;gt;0,LLOC,WWHS) and it worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 00:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMapping-using-values-in-two-fields/m-p/362138#M134602</guid>
      <dc:creator />
      <dc:date>2012-07-22T00:03:24Z</dc:date>
    </item>
  </channel>
</rss>

