<?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: Repeated Replace in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1695250#M592628</link>
    <description>&lt;LI-CODE lang="markup"&gt;ts:
LOAD RowNo() As RowID,* INLINE [
    transcript
    09:00:56 infoYou are now chatting with Nathan.
    09:01:08 Nathan:Hi you're through to Nathan how can I help?
    09:01:08 David: Hi i have sold my car so would like to cancel my breakdown cover please
    09:01:59 Nathan: Hello David. Not a problem. For security can you please confirm your full name and vehicle registration?
    09:02:16 David: David *** ******
    09:03:00 Nathan: Perfect, thank you. What date are you wanting me to cancel from?
    09:03:08 David: Today please
]
(delimiter is '\t');

tabAgent:
LOAD TextBetween(transcript, 'infoYou are now chatting with ','.') As AgentStr Resident ts
Where transcript Like '*infoYou are now chatting with *';

Let vAgent = Peek('AgentStr', 0, 'tabAgent');

Trace *** vAgent=$(vAgent);

tabCust:
First 1
LOAD SubField(Mid(transcript,10,25), ':',1) As CustStr Resident ts
Where Not transcript Like '*infoYou are now chatting with *'
And   Not transcript Like '??:??:?? $(vAgent):*'
And 	  transcript Like '??:??:?? *:*'
;

Let vCust = Peek('CustStr', 0, 'tabCust');

Trace *** vCust=$(vCust);

CustTS:
NoConcatenate
LOAD * Resident ts
Where transcript Like '??:??:?? $(vCust):*';

Drop Table ts, tabAgent, tabCust;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 21 Apr 2020 13:14:06 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-04-21T13:14:06Z</dc:date>
    <item>
      <title>Repeated Replace</title>
      <link>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1678613#M592626</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a chat string which I am wanting to trim down so that only the customers words are contained. See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;09:00:56 infoYou are now chatting with Nathan.&lt;BR /&gt;09:01:08 Nathan:David: Hi i have sold my car so would like to cancel my breakdown cover please&lt;BR /&gt;09:01:59 Nathan: Hello David. Not a problem. For security can you please confirm your full name and vehicle registration?&lt;BR /&gt;09:02:16 David: David *** ******&lt;BR /&gt;09:03:00 Nathan: Perfect, thank you. What date are you wanting me to cancel from?&lt;BR /&gt;09:03:08 David: Today please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nathan is the agent and David is the customer. So far I have used the function -&lt;/P&gt;&lt;P&gt;'replace(Transcript,Textbetween(Transcript,Name,Visitor),'') as TEST2'&lt;/P&gt;&lt;P&gt;which works but only for the first occurrence, you can see this looking at the timestamp in the above&amp;nbsp;&amp;nbsp;09:01:08, this previously said '09:01:08 Nathan: Hi you're through to Nathan how can I help?' I have managed to delete out Nathans first sentence in the string but I am wanting to delete out everything Nathan says. Basically I want to repeat this function across all of the string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name field is Agent name&lt;/P&gt;&lt;P&gt;Visitor field is Customer name&lt;/P&gt;&lt;P&gt;Transcript field is the long text string that contains the conversation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been at this all day so any help will be much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1678613#M592626</guid>
      <dc:creator>garethct89</dc:creator>
      <dc:date>2024-11-16T19:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Replace</title>
      <link>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1695078#M592627</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV02.PNG" style="width: 632px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32158i2AB760487E10089E/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV02.PNG" alt="commQV02.PNG" /&gt;&lt;/span&gt;Are you looking something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ts:
LOAD RowNo() As RowID,* INLINE [
    transcript
    09:00:56 infoYou are now chatting with Nathan.
    09:01:08 Nathan:Hi you're through to Nathan how can I help?
    09:01:08 David: Hi i have sold my car so would like to cancel my breakdown cover please
    09:01:59 Nathan: Hello David. Not a problem. For security can you please confirm your full name and vehicle registration?
    09:02:16 David: David *** ******
    09:03:00 Nathan: Perfect, thank you. What date are you wanting me to cancel from?
    09:03:08 David: Today please
]
(delimiter is '\t');

tabAgent:
LOAD SubField(transcript, 'infoYou are now chatting with ',-1) As AgentStr Resident ts
Where transcript Like '*infoYou are now chatting with *';

Let vAgent = SubField(Peek('AgentStr', 0, 'tabAgent'), '.',1);

Trace *** vAgent=$(vAgent);

tabCust:
First 1
LOAD SubField(Mid(transcript,10,25), ':',1) As CustStr Resident ts
Where Not transcript Like '*infoYou are now chatting with *'
And Not transcript Like '??:??:?? $(vAgent):*'
And transcript Like '??:??:?? *:*'
;

Let vCust = Peek('CustStr', 0, 'tabCust');

Trace *** vCust=$(vCust);

CustTS:
NoConcatenate
LOAD * Resident ts
Where transcript Like '??:??:?? $(vCust):*';

Drop Table ts, tabAgent, tabCust;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Apr 2020 02:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1695078#M592627</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-21T02:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated Replace</title>
      <link>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1695250#M592628</link>
      <description>&lt;LI-CODE lang="markup"&gt;ts:
LOAD RowNo() As RowID,* INLINE [
    transcript
    09:00:56 infoYou are now chatting with Nathan.
    09:01:08 Nathan:Hi you're through to Nathan how can I help?
    09:01:08 David: Hi i have sold my car so would like to cancel my breakdown cover please
    09:01:59 Nathan: Hello David. Not a problem. For security can you please confirm your full name and vehicle registration?
    09:02:16 David: David *** ******
    09:03:00 Nathan: Perfect, thank you. What date are you wanting me to cancel from?
    09:03:08 David: Today please
]
(delimiter is '\t');

tabAgent:
LOAD TextBetween(transcript, 'infoYou are now chatting with ','.') As AgentStr Resident ts
Where transcript Like '*infoYou are now chatting with *';

Let vAgent = Peek('AgentStr', 0, 'tabAgent');

Trace *** vAgent=$(vAgent);

tabCust:
First 1
LOAD SubField(Mid(transcript,10,25), ':',1) As CustStr Resident ts
Where Not transcript Like '*infoYou are now chatting with *'
And   Not transcript Like '??:??:?? $(vAgent):*'
And 	  transcript Like '??:??:?? *:*'
;

Let vCust = Peek('CustStr', 0, 'tabCust');

Trace *** vCust=$(vCust);

CustTS:
NoConcatenate
LOAD * Resident ts
Where transcript Like '??:??:?? $(vCust):*';

Drop Table ts, tabAgent, tabCust;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Repeated-Replace/m-p/1695250#M592628</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-21T13:14:06Z</dc:date>
    </item>
  </channel>
</rss>

