<?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: subfield using last instance of a character in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115295#M603547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you expecting the output of these two lines to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 15:30:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-08-07T15:30:39Z</dc:date>
    <item>
      <title>subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115294#M603545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im bringing in a list of strings from an xml . It looks something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B22&amp;nbsp; AD Production | (first set) (cn=last set of paranthesis)&lt;/P&gt;&lt;P&gt;B22&amp;nbsp; AD Dev | (Only one set of parenthesis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do a subfield&amp;nbsp; to do a line break after the last ). My end goal is to bring each line as a new line.&amp;nbsp; So, how do I use subfield to do this or is there a better way of separating this lines in to new lines of data? I would really appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I have included additional information.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="210157" alt="sample data.png" class="jive-image image-1" src="/legacyfs/online/210157_sample data.png" style="width: 620px; height: 330px;" /&gt;&lt;/P&gt;&lt;P&gt;This is my script that brings whats to bring that data.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ACTION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Remove Group Access', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ATTRIBUTES&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Removed Entitlements]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So , essentially I am replacing the end string tag with a line break. But all those line are coming in as 1 count of data, even if there is a line break. I want to bring those as separate lines. So when I do a count on removed entitlements, each line of that data will be counted as its own. In this case count([Removed Entitlements]) should be 3. Hope this clarifies things.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;EDIT: After using subfield. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="messed up data.png" class="jive-image image-2" src="/legacyfs/online/210269_messed up data.png" style="height: 281px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the ASAR Revocation Table, if you look at D8VA entitlements [Removed Entitlements] , I have two rows of data. One has a string and another is blank. I did a subfield of that which is displayed in the table below. D8VA now have an additional data. The one ending in TestRBAC5. I dont know where that is coming from. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115294#M603545</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2018-08-07T15:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115295#M603547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you expecting the output of these two lines to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 15:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115295#M603547</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-07T15:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115296#M603548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want any change in the format of the output. I just want those two statements in new line. Currently , the way they are stored in the xml and the way Im extracting it in qlikview. Its coming as a single line or rather single count. Even if they have a line break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a count of the field containing this data, the result is 1 instead of 2. Sorry, if I am sounding confusing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 16:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115296#M603548</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2018-08-07T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115297#M603549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Count(&lt;/STRONG&gt;NewField&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Subfield([Removed Entitlements],chr(10)) as [NewField];&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF (ACTION = 'Remove Group Access', TextBetween(Replace(Replace(Replace(Replace(ATTRIBUTES,chr(10),' '),' ', ''), '&amp;lt;String&amp;gt;', ''), '&amp;lt;/String&amp;gt;', chr(10)), '&amp;lt;entrykey="RemovedAccess"&amp;gt;&amp;lt;value&amp;gt;&amp;lt;List&amp;gt;', '&amp;lt;/List&amp;gt;')) As [Removed Entitlements]&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 17:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115297#M603549</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2018-08-07T17:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115298#M603550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aar Kay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im marking your answer is correct because in usual circumstances your solution should do the trick.&lt;/P&gt;&lt;P&gt;I am storing the new field in [Separated Entitlements]In my case I think it partially did the job. However, when I select a field I have in a listbox which is from the same table where I have the new field [Separated Entitlements] , it shows an additional data in the table box where I am displaying [Separated Entitlements.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I select one more field(which is also from the same table) from a different listbox , data is accurate. &lt;/P&gt;&lt;P&gt;Can you think of why it would behave in such a strange way? Thanks for your help.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 03:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115298#M603550</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2018-08-08T03:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115299#M603551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diwas, &lt;/P&gt;&lt;P&gt;Not really sure of the what is going on in your app. But if you can share the sample, I might be able to help because when you say additional data I have no clue where it is coming from or what it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 14:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115299#M603551</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2018-08-08T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115300#M603552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just included more info on the issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 15:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115300#M603552</guid>
      <dc:creator>diwaskarki</dc:creator>
      <dc:date>2018-08-08T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: subfield using last instance of a character</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115301#M603553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming you are not doing joins here. &lt;/P&gt;&lt;P&gt;From what I am seeing, I am guessing that may be for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;D8VA&lt;/SPAN&gt; -there might be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TestRBAC5 in the next line and you are not able to see in the table ....!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 15:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-using-last-instance-of-a-character/m-p/115301#M603553</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2018-08-08T15:47:56Z</dc:date>
    </item>
  </channel>
</rss>

