<?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: Extracting substring from record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494969#M185131</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;SubField(YourField, '/', 1) &amp;amp; '&amp;nbsp; Or&amp;nbsp; ' &amp;amp; Letf(YourField,2) &amp;amp; '&amp;nbsp; ' &amp;amp; SubField(YourField, '/', 2) as NewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 07:20:18 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-10-21T07:20:18Z</dc:date>
    <item>
      <title>Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494965#M185127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into an issue that I need help with.&lt;/P&gt;&lt;P&gt;I have a &lt;STRONG&gt;categories&lt;/STRONG&gt; column that displays text in German and English as one string. Instead of showing both languages I would like to use a language switch to only display one language at a time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The field records look like this:&lt;/P&gt;&lt;P&gt;"01 Text in German / Text in English"&lt;/P&gt;&lt;P&gt;"02 Text in German / Text in English"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show either &lt;STRONG&gt;01 Text in German&lt;/STRONG&gt; or &lt;STRONG&gt;01 Text in English&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already use a Translation-Table coming from Excel but only for column names. And here I already have the names but I don't know how I could switch a field record based on language selection.&lt;/P&gt;&lt;P&gt;My only guess is to create another column that is shown or hidden based on the language selection.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I extract the languages in above format?&lt;/P&gt;&lt;P&gt;I can use subfield(categories, '/') but then I loose the numbering in the front.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 06:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494965#M185127</guid>
      <dc:creator />
      <dc:date>2013-10-21T06:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494966#M185128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you upload some of the possible values of the Categories Column? So that we can find some pattern to achieve your goal.&lt;/P&gt;&lt;P&gt;If all the possible values are in your above given example format then you can use like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left(Categories,2) &amp;amp; SubField(Mid(Categories,4),'/') as Category&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 06:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494966#M185128</guid>
      <dc:creator />
      <dc:date>2013-10-21T06:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494967#M185129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is one of those multi-language tricks. Follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Split your language strings into two colums, e.g. instead of '01 Deutsch / English', make it into a column called DE that contains '01 Deutsch" and another column EN that contains '01 English'&lt;/LI&gt;&lt;LI&gt;Define a standalone table with a single field called LangSel that contains just the values 'EN' and 'DE'. Put this field on a sheet like you would do with a selector for a series of months, e.g. listbox without caption or frame and single line with two columns. IMPORTANT: enable Properties-&amp;gt;General-&amp;gt;Always One Selected Value&lt;/LI&gt;&lt;LI&gt;Define a variable called vTexts that is set to the expression '&lt;EM&gt;=LangSel&lt;/EM&gt;'&lt;/LI&gt;&lt;LI&gt;Now create a listbox that shows values from expression '&lt;EM&gt;=[$(vTextst)]&lt;/EM&gt;'. You can use &lt;EM&gt;='Texts in ' &amp;amp; Only(LangSel)&lt;/EM&gt; as Caption.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No click the different languages and see what happens in the listbox. You can apply the same trick to columns in straight tables or table boxes as well. See example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494967#M185129</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-21T07:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494968#M185130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW the same example above contains the necessary text-splitting-code for your strings. Have a look at the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494968#M185130</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-10-21T07:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494969#M185131</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;SubField(YourField, '/', 1) &amp;amp; '&amp;nbsp; Or&amp;nbsp; ' &amp;amp; Letf(YourField,2) &amp;amp; '&amp;nbsp; ' &amp;amp; SubField(YourField, '/', 2) as NewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494969#M185131</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-21T07:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494970#M185132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Subfield(categories, '/', 1) for German&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;Subfield(categories, ' ', 1) &amp;amp; ' ' &amp;amp;&lt;/SPAN&gt; Subfield(categories, '/', 2) for English&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 08:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494970#M185132</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-10-21T08:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494971#M185133</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;You can try like below in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(Field,' ', 1) as LanguageID,&lt;/P&gt;&lt;P&gt;Right( SubField(Text,'/', 1), Len(SubField(Text,'/', 1))- len(SubField(Text,' ', 1))) as GermanText,&lt;/P&gt;&lt;P&gt;SubField(Text,'/', 2) as EnglishText.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494971#M185133</guid>
      <dc:creator />
      <dc:date>2013-10-21T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting substring from record</title>
      <link>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494972#M185134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you everyone for your posts. Give me a day or two to play with those different possibilities.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 12:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extracting-substring-from-record/m-p/494972#M185134</guid>
      <dc:creator />
      <dc:date>2013-10-21T12:23:25Z</dc:date>
    </item>
  </channel>
</rss>

