<?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 left or right function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577486#M214774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with:&lt;/P&gt;&lt;P&gt;if(wildmatch(station,'*North*'), 'N',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*north*'),'N',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*South*'),'S',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*south*'),'S')))) as StationLink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesen't give me the result I want. I have a field with many stations end I want to "wash" the field so that every station have a N or a S if they have two (or more) ways to exit the station.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 13:07:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-27T13:07:15Z</dc:date>
    <item>
      <title>IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577483#M214771</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;What is the best way in the script to do some string functions like this,&lt;/P&gt;&lt;P&gt;if some places are with &lt;STRONG&gt;N&lt;/STRONG&gt;orth or &lt;STRONG&gt;n&lt;/STRONG&gt;orth (like london north or Dublin south) I would like to have the result "N" or "S".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577483#M214771</guid>
      <dc:creator />
      <dc:date>2014-02-27T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577484#M214772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Capitalize(Left(Subfield(YourFieldName,'&amp;nbsp; ',2),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Capitalize(Left(Subfield('Dublin&amp;nbsp; south','&amp;nbsp; ',2),1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577484#M214772</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T08:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577485#M214773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Björn,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wildmatch&lt;/STRONG&gt;() could suit you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 08:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577485#M214773</guid>
      <dc:creator />
      <dc:date>2014-02-27T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577486#M214774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with:&lt;/P&gt;&lt;P&gt;if(wildmatch(station,'*North*'), 'N',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*north*'),'N',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*South*'),'S',&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(station,'*south*'),'S')))) as StationLink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesen't give me the result I want. I have a field with many stations end I want to "wash" the field so that every station have a N or a S if they have two (or more) ways to exit the station.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 13:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577486#M214774</guid>
      <dc:creator />
      <dc:date>2014-02-27T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577487#M214775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give us some example of your station field...&lt;/P&gt;&lt;P&gt;If my solution is not working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 13:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577487#M214775</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-27T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577488#M214776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577488#M214776</guid>
      <dc:creator />
      <dc:date>2014-02-27T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577489#M214777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(wildmatch(Station, '*Norra*', '*Södra*')+1, Station, 'N', 'S')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't sure what do to do if the name didn't have either north or south in it, so if it didn't it just returns the station name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577489#M214777</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-27T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577490#M214778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That one is not working. I'm looking for the station name and the N or S as London N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577490#M214778</guid>
      <dc:creator />
      <dc:date>2014-02-27T14:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577491#M214779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to try and understand your requirements a little more, you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Bergshamra Norra' to be 'Bergshamra N'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;'Bergshamra S&lt;SPAN style="font-family: sans-serif; font-size: 13px;"&gt;ödra&lt;/SPAN&gt;' to be 'Bergshamra S'&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about if there is no South or North, you want just:&lt;/P&gt;&lt;P&gt;'Duvbo' to be 'Duvbo'&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if there is a North in the middle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Gardet Norra AU 1' to be 'Gardet AU 1 N'&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you want a field with just station and no directions, and then another field with either N, S, or null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe it a little more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577491#M214779</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-27T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577492#M214780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you have understand the requirement right. If the station have a direction it should be N or S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 20:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577492#M214780</guid>
      <dc:creator />
      <dc:date>2014-02-27T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577493#M214781</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;I think it's not hard to adopt the solution provided above by jerem1234.&lt;/P&gt;&lt;P&gt;Replace function can help you to omit the direction word in the station name and then you can add it as a symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 20:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577493#M214781</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-02-27T20:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF left or right function</title>
      <link>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577494#M214782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try a mapping like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map1:&lt;/P&gt;&lt;P&gt;Mapping load * Inline [&lt;/P&gt;&lt;P&gt;x, y&lt;/P&gt;&lt;P&gt;Norra, N&lt;/P&gt;&lt;P&gt;S&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 13px;"&gt;ö&lt;/SPAN&gt;dra, S&lt;/P&gt;&lt;P&gt;norra, N&lt;/P&gt;&lt;P&gt;s&lt;SPAN style="color: #000000; font-family: sans-serif; font-size: 13px;"&gt;ö&lt;/SPAN&gt;dra, S&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for your field do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapSubString('map1', Station) as Station&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 20:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-left-or-right-function/m-p/577494#M214782</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-27T20:37:19Z</dc:date>
    </item>
  </channel>
</rss>

