<?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: How to substring value from field value mapping sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35482#M6016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the script you can use wildmatch function&lt;/P&gt;&lt;P&gt;if(wildmatch(sector,'*AMD*','*BBI*','*BHO*'),'International', 'Domestic') as sector_flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 11:10:41 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2018-02-01T11:10:41Z</dc:date>
    <item>
      <title>How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35481#M6015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find solution for the above mentioned in tittle, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:1) AMD/BOM-DLR-HNK/FRA/CHN (International)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .2) BOM-CHN (Domestic)&lt;/P&gt;&lt;P&gt;Here are the two field value I need to&amp;nbsp; find wheather its International or Domestic&lt;/P&gt;&lt;P&gt;if there is single international value in whole string then its International else its Domestic&lt;/P&gt;&lt;P&gt;note :- BOM(Bombay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached all the international&amp;nbsp; sectors in excel and the raw QVD of sectors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me with a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhana Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 10:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35481#M6015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35482#M6016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the script you can use wildmatch function&lt;/P&gt;&lt;P&gt;if(wildmatch(sector,'*AMD*','*BBI*','*BHO*'),'International', 'Domestic') as sector_flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 11:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35482#M6016</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2018-02-01T11:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35483#M6017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a list of all the airport call signs (both domestic and international), then you can load them into a Mapping table with a special translation value for all international airports (for example, a '#' character) and the original call sign for all domestic airports. Using function MapSubString, you can then translate ALL call signs in a single string into a new string&amp;nbsp; A single international airport will introduce at least one '#' into the string, and the Index() or SubStringCount() functions can then be used to tell you whether there are 0 or more international airports in your field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code as an example of what I mean:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MapCS2Type:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAPPING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CallSign, Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AMD, #&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;BOM, BOM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DLR, #&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HNK, #&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FRA, #&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CHN, CHN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlightPath,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (Index(MapSubString('MapCS2Type', FlightPath), '#') &amp;gt; 0, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'International', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Domestic') AS FlightType,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM ... (options);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To better tag all those call signs when loading your mapping table, it might be better to check for domestic ones which is a shorter list. All the others get a '#' marker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 11:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35483#M6017</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-01T11:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35484#M6018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Peter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have only International codes in mapping sheet. I need to map them to Sector field and check if any international codes are present in the record and mark them as International. Rest are domestic by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chintan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35484#M6018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T12:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35485#M6019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem. Only load those international codes with a '#' tag in your Mapping table, and it will still work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW your Excel contains only three values AMD, BBI and BHQ. Does that mean that sectors like FRA or HKG are not international?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35485#M6019</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-01T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35486#M6020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's just AMD, BBI and BHO (always those three and nothing more. They're all in India, just like BOM) you want to detect, then Ali Hijazi's solution will be perfect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35486#M6020</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-01T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35487#M6021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I get using the technique described above. I did eliminate the 26 NULL values in field SECTOR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35487#M6021</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-01T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to substring value from field value mapping sheet</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35488#M6022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter , we are able to get the desired output using your share scenario.&lt;/P&gt;&lt;P&gt;Appreciate your quick help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 07:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substring-value-from-field-value-mapping-sheet/m-p/35488#M6022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T07:41:29Z</dc:date>
    </item>
  </channel>
</rss>

