<?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: Help with extracting data from field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728637#M261110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was very brilliant. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 19:05:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-22T19:05:11Z</dc:date>
    <item>
      <title>Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728632#M261105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a database field called message that contains the following type of descriptive information below.&amp;nbsp; I loaded it into QlikView, but I only need the text that says Reason: and the text after that word.&amp;nbsp; The rest of the data is not relevant.&amp;nbsp; As you can see the length is variable so you cannot precisely extract it. Any ideas how to do this?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;MessageTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 47541 was deleted by user SUNIS.&amp;nbsp; Reason: qa&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 144775 was deleted by user SUNIS.&amp;nbsp; Reason: rels&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 66728 was deleted by user SUNIS.&amp;nbsp; Reason: resd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728632#M261105</guid>
      <dc:creator />
      <dc:date>2014-07-22T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728633#M261106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the below give you food for thought ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = mid (&amp;nbsp; 'User SUNIS.&amp;nbsp; Reason: qa', index('User SUNIS.&amp;nbsp; Reason: qa', 'Reason') )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can text it is a Text Box, and then replace 'User SUNIS.&amp;nbsp; Reason: qa' with your field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 17:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728633#M261106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728634#M261107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MessageTable: &lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;field&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 47541 was deleted by user SUNIS.&amp;nbsp; Reason: qa&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 144775 was deleted by user SUNIS.&amp;nbsp; Reason: rels&lt;/P&gt;&lt;P&gt;Order 28315349: Vendor assignment to vendor 66728 was deleted by user SUNIS.&amp;nbsp; Reason: resd&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression&lt;/P&gt;&lt;P&gt;Right(field, len(field) -index(field, 'Reason') +1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62886_1.png" style="width: 620px; height: 131px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 18:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728634#M261107</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-22T18:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728635#M261108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo, thank you again for your help.&amp;nbsp; Can you briefly explain how this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 18:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728635#M261108</guid>
      <dc:creator />
      <dc:date>2014-07-22T18:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728636#M261109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62887_1.png" style="width: 620px; height: 177px;" /&gt;&lt;/P&gt;&lt;P&gt;in the image you can see the original field, then 3 columns:&lt;/P&gt;&lt;P&gt;c1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index(field, 'Reason')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; position of 'Reason' in field&lt;/P&gt;&lt;P&gt;c2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; len(field) -.c1 +1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length of the string I want as result &lt;/P&gt;&lt;P&gt;c3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rigth(field, c2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; substring of field,&amp;nbsp; consisting of the last c2 characters of field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728636#M261109</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-22T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728637#M261110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was very brilliant. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728637#M261110</guid>
      <dc:creator />
      <dc:date>2014-07-22T19:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728638#M261111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Bill answer is better, mid with 2 parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728638#M261111</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-22T19:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with extracting data from field</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728639#M261112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I didn't fully understand your answer.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 19:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-extracting-data-from-field/m-p/728639#M261112</guid>
      <dc:creator />
      <dc:date>2014-07-22T19:47:35Z</dc:date>
    </item>
  </channel>
</rss>

