<?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 Right, Left, Mid  in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208115#M63616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent! I am glad that you got it working.&lt;/P&gt;&lt;P&gt;Just a quick word of caution! I am very sure you are aware of this... If the number of characters in the &lt;B&gt;Plant&lt;/B&gt; Field changes in coming years, you might have incomplete data. If this is case then I would recommend making the function more robust.&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 10:23:46 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2011-04-11T10:23:46Z</dc:date>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208111#M63612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a KeyField with the Material Number and Plant as below.&lt;/P&gt;&lt;P&gt;999999020-0310&lt;/P&gt;&lt;P&gt;How can I seperate the two Fields. The Material Number length is not fixed. it can be from 3 Digits to more than 10 or more.&lt;/P&gt;&lt;P&gt;I can get the Plant Number with this code&lt;/P&gt;&lt;P&gt;right(Field,4) as Plant&lt;/P&gt;&lt;P&gt;Somecombination of right() ands left() shoould give me result. Can anyone help&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208111#M63612</guid>
      <dc:creator />
      <dc:date>2011-04-11T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208112#M63613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can get it using below exp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(Field,len(Field)-right(Field,5))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Reagrds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208112#M63613</guid>
      <dc:creator />
      <dc:date>2011-04-11T09:44:44Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208113#M63614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sravan - Use the SUBFIELD function and split by delimiter.&lt;/P&gt;&lt;P&gt;=SubField(FieldName, '-')&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208113#M63614</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208114#M63615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upendra,&lt;/P&gt;&lt;P&gt;with little correction, your code worked. Thanks:)&lt;/P&gt;&lt;P&gt;left(field,len(field)-len(right(field,5)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ deepak,&lt;/P&gt;&lt;P&gt;with Subfield I get the field split in to Material and Plant but I cant apply left() or right() to get the fields&lt;/P&gt;&lt;P&gt;Anyway thanks&lt;/P&gt;&lt;P&gt;sravan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208114#M63615</guid>
      <dc:creator />
      <dc:date>2011-04-11T10:18:21Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208115#M63616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent! I am glad that you got it working.&lt;/P&gt;&lt;P&gt;Just a quick word of caution! I am very sure you are aware of this... If the number of characters in the &lt;B&gt;Plant&lt;/B&gt; Field changes in coming years, you might have incomplete data. If this is case then I would recommend making the function more robust.&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208115#M63616</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T10:23:46Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208116#M63617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Deepak,&lt;/P&gt;&lt;P&gt;I know that but I hope that there is a better solution than this! For Now I will take this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208116#M63617</guid>
      <dc:creator />
      <dc:date>2011-04-11T10:32:39Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208117#M63618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DV is correct. You should use the SubField function. It's much easier and also more robust:&lt;/P&gt;&lt;P&gt;SubField(Field,'-',1) AS MaterialNumber&lt;/P&gt;&lt;P&gt;SubField(Field,'-',2) AS Plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208117#M63618</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-11T10:37:47Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208118#M63619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sravan - Just thought this might be more robust solution.&lt;/P&gt;&lt;P&gt;To get the Material Number use this expression:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=Left(UniqueNumber, FindOneOf(UniqueNumber, '-') - 1)&lt;/P&gt;&lt;P&gt;To get the Plant Number use this expression:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=Right(UniqueNumber, Len(UniqueNumber) - FindOneOf(UniqueNumber, '-'))&lt;/P&gt;&lt;P&gt;With these expressions you don't have to worry about the number of characters. I mean you are not dependant on the number of characters in the field, rather you will be using the properties of the Field.&lt;/P&gt;&lt;P&gt;I hope this is clear enough for your understanding. Let me know if you need further explanation.&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208118#M63619</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208119#M63620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks NathanFurby.&lt;/P&gt;&lt;P&gt;I thought the same! It is good practice to use these kind of expression in the Load Script compared to the Field expressions.&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208119#M63620</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-11T10:45:34Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208120#M63621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep - no need for complicated string functions. Subfield will do the job &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208120#M63621</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2011-04-11T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Right, Left, Mid  in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208121#M63622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Guys:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 13:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Right-Left-Mid-in-the-script/m-p/208121#M63622</guid>
      <dc:creator />
      <dc:date>2011-04-12T13:47:19Z</dc:date>
    </item>
  </channel>
</rss>

