<?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: Extract a Value from Field after Character in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673623#M1061069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hope the attached file helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 14:34:18 GMT</pubDate>
    <dc:creator>mphekin12</dc:creator>
    <dc:date>2014-09-23T14:34:18Z</dc:date>
    <item>
      <title>Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673620#M1061066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field named QTY where it could be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1,2k1000/3A&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;x&lt;/SPAN&gt;1&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;1,2k100/3&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;x&lt;/SPAN&gt;100&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;1.2KV50/3A&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;X&lt;/SPAN&gt;10&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to extract from that field the number that comes after the x (or it could be an X too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the examples shown, I should get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1&lt;/LI&gt;&lt;LI&gt;100&lt;/LI&gt;&lt;LI&gt;10&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using SUBFIELD(QTY,'x',2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it works, but I'd need to use the logic with SUBFIELD(QTY,'X',2) too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673620#M1061066</guid>
      <dc:creator />
      <dc:date>2014-09-23T14:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673621#M1061067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right('Field',index('Field',or('x','X'),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: not sure for the or('x','X')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673621#M1061067</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-23T14:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673622#M1061068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(SUBFIELD(QTY,'x',2)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBFIELD(QTY,'X',2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBFIELD(QTY,'x',2)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673622#M1061068</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-09-23T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673623#M1061069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hope the attached file helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673623#M1061069</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2014-09-23T14:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673624#M1061070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;QTY &lt;/SPAN&gt;, len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;QTY &lt;/SPAN&gt;) - index(upper(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;QTY &lt;/SPAN&gt;), 'X') )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673624#M1061070</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-23T14:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673625#M1061071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't read the 'X' problem.&lt;/P&gt;&lt;P&gt;I've tryed this:&lt;/P&gt;&lt;P&gt;LET vTEST = '1,2k1000/3Ax1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vRESULT = TextBetween (Replace(vTEST,'x', 'X'),'X','');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve your problem you could 'create' a new field in that table using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;TextBetween&lt;/SPAN&gt; &lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;Replace&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;YourField&lt;/SPAN&gt;,'x', 'X'&lt;STRONG&gt;)&lt;/STRONG&gt;, 'x', '' &lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;AS&lt;/STRONG&gt;&lt;/SPAN&gt; ValueAfterX;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 14:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673625#M1061071</guid>
      <dc:creator />
      <dc:date>2014-09-23T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a Value from Field after Character</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673626#M1061072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 17px;"&gt; SUBFIELD(Upper(QTY),'X',2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-a-Value-from-Field-after-Character/m-p/673626#M1061072</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-23T15:08:55Z</dc:date>
    </item>
  </channel>
</rss>

