<?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 Mapping load with IF statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209110#M1209254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about using this instead of applymap?&lt;/P&gt;&lt;P&gt;from the help text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;mapsubstring&lt;A id="mapsubstring" name="mapsubstring"&gt;&lt;/A&gt;( 'mapname', expr )&lt;/H4&gt;&lt;P&gt;This function can be used for mapping parts of any expression on a previously loaded mapping table. The mapping is case sensitive and non-recursive. The substrings are mapped from the left to the right. Mapname is the name of a mapping table previously read by a &lt;A&gt;mapping&lt;/A&gt; load or a mapping select statement. The name must be enclosed by single straight quotation marks. Expr is the expression whose result should be mapped by substrings.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;// Assume the following mapping table:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;map1:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;mapping load * inline [&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;x, y&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;1, &amp;lt;one&amp;gt;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;aa, XYZ&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;x, b ] ;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="margin-top:14pt;border-spacing:0px;width:450px;margin-left:80px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'A123' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' A&amp;lt;one&amp;gt;23'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'baaar' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' bXYZar'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'xaa1' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' bXYZ&amp;lt;one&amp;gt;'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Apr 2010 22:48:35 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2010-04-17T22:48:35Z</dc:date>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209106#M1209250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a mapping load on a QVD to add a missing category based on a substring from another field. It soon gets messy.&lt;/P&gt;&lt;P&gt;ProductGroup:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt; fdProduct,&lt;BR /&gt; if(substringcount(lower(fdProduct),'aa')&amp;lt;&amp;gt;0,'group a',&lt;BR /&gt; if(substringcount(lower(fdProduct),'bb')&amp;lt;&amp;gt;0,'group b',&lt;BR /&gt; if(substringcount(lower(fdProduct),'bbb')&amp;lt;&amp;gt;0,'group b'...&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD&lt;BR /&gt; fdID as CaseID,&lt;BR /&gt;&lt;BR /&gt; applymap('ProductGroup',fdProduct) as fdProductGroup..&lt;/P&gt;&lt;P&gt;I have around 30 different sub strings I need to handle. Even though it works doing as in my example above - is there a more clever way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 10:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209106#M1209250</guid>
      <dc:creator />
      <dc:date>2010-01-19T10:40:54Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209107#M1209251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try in this way,what u had done is correct except that while applying applymap fn u need to give the mapping value like &lt;STRONG&gt;FdproductGrp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now try in this manner hope ur problem is solved..............&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ProductGroup:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt; fdProduct,&lt;BR /&gt; if(substringcount(lower(fdProduct),'aa')&amp;lt;&amp;gt;0,'group a',&lt;BR /&gt; if(substringcount(lower(fdProduct),'bb')&amp;lt;&amp;gt;0,'group b',&lt;BR /&gt; if(substringcount(lower(fdProduct),'bbb')&amp;lt;&amp;gt;0,'group C))) as &lt;STRONG&gt;FdproductGrp'&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD&lt;BR /&gt; fdID as CaseID,&lt;BR /&gt;&lt;BR /&gt; applymap('ProductGroup',&lt;STRONG&gt;FdproductGrp&lt;/STRONG&gt;) as fdProductGroup..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 13:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209107#M1209251</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-01-19T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209108#M1209252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but I do have it like that - and I know that it works. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;I just wondered if there's a smarter way to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 13:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209108#M1209252</guid>
      <dc:creator />
      <dc:date>2010-01-19T13:13:28Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209109#M1209253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can think of a pattern that does this, you can replace the mapping load with a formula, but otherwise ...&lt;/P&gt;&lt;P&gt;Say you always check for two characters and each next check is the following character (like 'aa', 'bb', 'cc', ...). Then you would be able to create a formula to do this. But your third check indicates a lack of an apparent pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps create a table (inline or external) that contains the patterns you like to check on (like 'aa', 'bb', 'cc', ...) and then use that field as a checking mechanism. The rest of your statement seems to be the same anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209109#M1209253</guid>
      <dc:creator />
      <dc:date>2010-01-20T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209110#M1209254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about using this instead of applymap?&lt;/P&gt;&lt;P&gt;from the help text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;mapsubstring&lt;A id="mapsubstring" name="mapsubstring"&gt;&lt;/A&gt;( 'mapname', expr )&lt;/H4&gt;&lt;P&gt;This function can be used for mapping parts of any expression on a previously loaded mapping table. The mapping is case sensitive and non-recursive. The substrings are mapped from the left to the right. Mapname is the name of a mapping table previously read by a &lt;A&gt;mapping&lt;/A&gt; load or a mapping select statement. The name must be enclosed by single straight quotation marks. Expr is the expression whose result should be mapped by substrings.&lt;/P&gt;&lt;H2&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:40px;"&gt;// Assume the following mapping table:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;map1:&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;mapping load * inline [&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;x, y&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;1, &amp;lt;one&amp;gt;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;aa, XYZ&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;x, b ] ;&lt;/P&gt;&lt;P style="margin-left:40px;"&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" style="margin-top:14pt;border-spacing:0px;width:450px;margin-left:80px;" width="450"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'A123' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' A&amp;lt;one&amp;gt;23'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'baaar' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' bXYZar'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding:7px;width:51%;" valign="top" width="51%"&gt;&lt;P style="margin-bottom:0px;"&gt;MapSubstring ( 'map1', 'xaa1' )&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:23%;" valign="top" width="23%"&gt;&lt;P style="margin-bottom:0px;"&gt;returns&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding:7px;width:26%;" valign="top" width="26%"&gt;&lt;P style="margin-bottom:0px;"&gt;' bXYZ&amp;lt;one&amp;gt;'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 22:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209110#M1209254</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-04-17T22:48:35Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209111#M1209255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapsubstring will actual modify the Product ID - I don't believe that was the intent...&lt;/P&gt;&lt;P&gt;The smarter way of doing it lies outside of QlikView boundaries. In smart systems, product Groups are listed as Attributes for Products and not as a substring of the Product Code... The rest of the "mess" is caused by this fundamental problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 00:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209111#M1209255</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-18T00:26:19Z</dc:date>
    </item>
    <item>
      <title>Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209112#M1209256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Qlikview Cookbook sample named "Mapping with a table using wildcards" shows a way to use a pseudo mapping table that utilizes wildcards. May be just what you need.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 01:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209112#M1209256</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-04-18T01:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping load with IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209113#M1209257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a same kind of problem.I have to map two fields from two different tables which are already joined..I want to do it because if i dont map them properly they are showing me redundant data&amp;nbsp; even if the tables are joined.please help me..the mapping table should be based on some conditions.There are two kinds of fuel type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203875_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is all the fuel type like DMA to DMC can be classifyed as 2 groups HSDO and LSDO on basis of sulphur content.If Fuel type is RMA TO RMG it can be classified as HSFO OR LSFO if sulphur content is more than 0.01 and less than 0.01 rspectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the two fields sounding correction fuel type and summary fuel type should be joined together on the basis of sounding correction.sulphur content..I want to map them because with conditional logic they are still showing redundant data&lt;/P&gt;&lt;P&gt;I want to implement this in my mapping table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this syntax be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAP&lt;/STRONG&gt;1:&lt;BR /&gt;MAPPING LOAD&lt;BR /&gt;&amp;nbsp; SURVEYID,&lt;BR /&gt; if(WildMatch([Fuel Type], 'DM*') and [Sulphur Content] = '&amp;gt;.01','HSDO',&lt;/P&gt;&lt;P&gt; if(WildMatch([Fuel Type], 'DM*') and [Sulphur Content] = ' &amp;lt;:01','LSDO',&lt;/P&gt;&lt;P&gt; if(WildMatch([Fuel Type], 'RM*') and [Sulphur Content] = '&amp;gt;.01','HSFO',&lt;/P&gt;&lt;P&gt;if(WildMatch([Fuel Type], 'RM*') and [Sulphur Content] = ' &amp;lt;01' ,'ULSFO'))))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; as &lt;STRONG&gt;&amp;nbsp; NIFuelType&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [&lt;/STRONG&gt;mo_bun_sur_survey_view.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SURVEY_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('&lt;STRONG&gt;MAP&lt;/STRONG&gt;1',&lt;STRONG&gt;&lt;STRONG&gt;NIFuelType&lt;/STRONG&gt;, 'Unknown'&lt;/STRONG&gt;) as ActualFueltype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;mo_purch_sounding_correction_view.qvd]&lt;/P&gt;&lt;P&gt; (qvd);&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 11:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-load-with-IF-statements/m-p/209113#M1209257</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-05-30T11:08:57Z</dc:date>
    </item>
  </channel>
</rss>

