<?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: lookup() or mapping in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733657#M676023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A701*'), 'OldCustomer', NewID) as NewID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And since A70 is superior set data, in the front end create a calculated dimension like:&lt;/P&gt;&lt;P&gt;=If(NewID='OldCustomer' Or WildMatch(NewID, 'A70*'), 'BestCustomer', NewID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 08:33:34 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-24T08:33:34Z</dc:date>
    <item>
      <title>lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733656#M676022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I use the mapping or lookup functions if I have in a database ID which start with letters like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;ID,Date,Amount&lt;/P&gt;&lt;P&gt;A70123,...,...,&lt;/P&gt;&lt;P&gt;A70124,...&lt;/P&gt;&lt;P&gt;A70125,...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;A80999,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I just want to make a relation the the description, which from the ID (A701*) = "OldCustomer"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and selecting all ID which start with A70 is "BestCustomer"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733656#M676022</guid>
      <dc:creator />
      <dc:date>2014-06-24T08:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733657#M676023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A701*'), 'OldCustomer', NewID) as NewID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And since A70 is superior set data, in the front end create a calculated dimension like:&lt;/P&gt;&lt;P&gt;=If(NewID='OldCustomer' Or WildMatch(NewID, 'A70*'), 'BestCustomer', NewID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733657#M676023</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-24T08:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733658#M676024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can save the same in a variable and call the variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733658#M676024</guid>
      <dc:creator />
      <dc:date>2014-06-24T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733659#M676025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A701*'), 'OldCustomer',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A70*'), 'Best Customers',&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but as per requirement&amp;nbsp; A701*&amp;nbsp; as old customer and A70* as Best Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;so old customer is part best customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you can use below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A701*')&amp;nbsp; , 'OldCustomer',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(ID, 'A70*') and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WildMatch(ID, 'A701*') =0 &lt;/SPAN&gt;, 'Best Customers'&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 08:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733659#M676025</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-06-24T08:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733660#M676026</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;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; If(WildMatch(ID, 'A701*'), 'OldCustomer', If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WildMatch(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ID&lt;/SPAN&gt;, 'A70*'), 'BestCustomer', 'N/A')) AS NewDim&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733660#M676026</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-24T09:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733661#M676027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I select A70100 - A70150 ?&lt;/P&gt;&lt;P&gt;Maybe this?: If(Wildmatch(ID, A701??) and Wildmatch(ID,A7015?), 'ImportantCust')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733661#M676027</guid>
      <dc:creator />
      <dc:date>2014-06-24T09:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733662#M676028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you have six-digit IDs preceded by a character, try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Num(Mid(ID,2))&amp;gt;=70100 and Num(Mid(ID,2))&amp;lt;=70150 , 'ImportantCust')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733662#M676028</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-24T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: lookup() or mapping in script</title>
      <link>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733663#M676029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If( mid(ID,2 ,len(ID))&amp;gt;='70100' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;mid(ID,2 ,len(ID))&lt;/SPAN&gt;&amp;lt;='70150' , 'ImportantCust')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 10:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/lookup-or-mapping-in-script/m-p/733663#M676029</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-06-24T10:46:35Z</dc:date>
    </item>
  </channel>
</rss>

