<?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: Selecting a variable length string from field. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127892#M917995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also check out the help section:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/TextBetween.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/TextBetween.htm"&gt;TextBetween ‒ QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124505_Capture.PNG" style="height: 273px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 09:06:08 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-13T09:06:08Z</dc:date>
    <item>
      <title>Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127888#M917991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to come up with a way to extract a variable length string from a field.&amp;nbsp; They are always defined within '&amp;lt;&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example;&lt;/P&gt;&lt;P&gt;&amp;lt;VOICE&amp;gt; Issues w....&lt;/P&gt;&lt;P&gt;&amp;lt;MBK&amp;gt; can't...&lt;/P&gt;&lt;P&gt;&amp;lt;OTHER&amp;gt; unable to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are always located at the start of the string.&amp;nbsp; Just need to extract content from between '&amp;lt;&amp;gt;'.&amp;nbsp; Any ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127888#M917991</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127889#M917992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use Text between function here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TextBetween(Example, '&amp;lt;', '&amp;gt;') to extract the stuff between &amp;lt;...&amp;gt;. Check out the sample below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; TextBetween(Example, '&amp;lt;', '&amp;gt;') as Requirement,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Len(TextBetween(Example, '&amp;lt;', '&amp;gt;')) as Len,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Len(TextBetween(Example, '&amp;lt;', '&amp;gt;')) + 2 as [Len_Inc_&amp;lt;&amp;gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;VOICE&amp;gt; Issues w....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;MBK&amp;gt; can't...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;OTHER&amp;gt; unable to...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124486_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 08:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127889#M917992</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T08:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127890#M917993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If accidentally you get the Data like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;VOICE&amp;gt; Issues.. &amp;lt;something&amp;gt; then &lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;TextBetween(YourField, '&amp;lt;', '&amp;gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;) will give you the wrong result, so use the below logic which will always pick the values from first string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #0f0f0f; font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;TextBetween(YourField, '&amp;lt;', '&amp;gt;',&lt;STRONG&gt;1&lt;/STRONG&gt;) as TextBetween,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;len(TextBetween(YourField, '&amp;lt;', '&amp;gt;',&lt;/SPAN&gt;&lt;STRONG style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;)) as Len_TextBetween&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 08:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127890#M917993</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-13T08:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127891#M917994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kush I think by default it is 1. Check the attached image&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124489_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127891#M917994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127892#M917995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also check out the help section:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/TextBetween.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/TextBetween.htm"&gt;TextBetween ‒ QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124505_Capture.PNG" style="height: 273px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127892#M917995</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127893#M917996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both Sunny and Kushal.&amp;nbsp; This worked a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You learn something every day.&amp;nbsp; Wasn't even aware this command existed!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;Jason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2016 23:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127893#M917996</guid>
      <dc:creator />
      <dc:date>2016-05-15T23:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a variable length string from field.</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127894#M917997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 769px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="769"&gt;first you have to assign TextBetween(Example, '&amp;lt;', '&amp;gt;') to extract the stuff between &amp;lt;...&amp;gt;. &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="80" width="769"&gt;&amp;lt;HAMMER&amp;gt; Issues.. &amp;lt;ANYTHING&amp;gt; then TextBetween(YourField, '&amp;lt;', '&amp;gt;') and&amp;nbsp; &lt;A href="https://goo.gl/fJU04B"&gt;https://goo.gl/fJU04B&lt;/A&gt;&amp;nbsp;&amp;nbsp; &amp;lt;HAMMER&amp;gt; Issues w....&lt;BR /&gt; &amp;lt;MBK&amp;gt;&lt;BR /&gt; &amp;lt;OTHER&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 10:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-a-variable-length-string-from-field/m-p/1127894#M917997</guid>
      <dc:creator />
      <dc:date>2016-05-16T10:32:21Z</dc:date>
    </item>
  </channel>
</rss>

