<?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: replacing string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474660#M1137110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain your exact requirement with a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 09:27:03 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-11-04T09:27:03Z</dc:date>
    <item>
      <title>replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474655#M1137105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;hi guys &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;i have a few formulas one of them&amp;nbsp; look like - (sum(x)+avg(z))/sum(y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I need to change the formula to a set analysis something like - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$( Max1)"}&amp;gt;}+ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$( Max1)"}&amp;gt;}/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$( Max1)"}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I managed to do it with the "replace()" func&amp;nbsp; - &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;String&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'sum(','sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;But I need some kind of “replaceif” condition that will check if the string is&amp;nbsp; ‘sum(‘ or ‘avg(’&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='sum(',&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'sum(','sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}'),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)='Avg(',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'Avg(','Avg({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}'), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX &lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 17:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474655#M1137105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-03T17:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474656#M1137106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume this is in the script?&amp;nbsp; If so you can use MapSubString.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 17:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474656#M1137106</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-11-03T17:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474657#M1137107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope this is in the Gui &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474657#M1137107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-04T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474658#M1137108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't your second expression(with proper braces) working? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='sum(', &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,'sum(','sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}'),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;='Avg(',&amp;nbsp;&amp;nbsp; // Edit: brace removed&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,'Avg(','Avg({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474658#M1137108</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-04T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474659#M1137109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no cause i don't know in advance the index for the 'sum(' or 'avg(' &lt;/P&gt;&lt;P&gt;plus my expression will only work on the sum( it wont work on both sum( + avg(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474659#M1137109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-04T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474660#M1137110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain your exact requirement with a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474660#M1137110</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-04T09:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474661#M1137111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a string field named formula,&amp;nbsp; this field has all kinds of formulas&amp;nbsp; for example :&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;(sum(x)+avg(z))/sum(y)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sum(y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In order to make a certain calculation I need to use set analysis so I used the ‘replace()’ string function for example &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;String&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'sum(','sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My problem is I don’t know in advance how the formula will look. it could have a sum function or avg&amp;nbsp; function or max function&amp;nbsp; or both… &lt;/P&gt;&lt;P&gt;I need to check the string&amp;nbsp; and replace each string that looks like’ &lt;STRONG style="color: #00b050;"&gt;sum&lt;/STRONG&gt;&lt;SPAN style="color: #00b050;"&gt;(&lt;/SPAN&gt;‘ or’ &lt;STRONG style="color: #00b050;"&gt;avg&lt;/STRONG&gt;&lt;SPAN style="color: #00b050;"&gt;(‘ &lt;/SPAN&gt;or ‘&lt;STRONG style="color: #00b050;"&gt;max&lt;/STRONG&gt;&lt;SPAN style="color: #00b050;"&gt;( &lt;/SPAN&gt;‘&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;To :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;'sum&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: red;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;’ or ‘&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;avg&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: red;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;’ or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9.0pt; font-family: 'Courier New';"&gt;max&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: red;"&gt;({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 09:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474661#M1137111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-04T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474662#M1137112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be using REPLACE recursively, like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Courier New'; font-size: 12px;"&gt;replace(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&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; &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;String&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,'avg(','avg({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}'))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&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; 'sum(','sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}')), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&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; &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;'max(','max({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}'))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474662#M1137112</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-04T10:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474663#M1137113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use MapSubstring:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Expressions:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;In,Out&lt;/P&gt;&lt;P&gt;sum(,sum({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;avg(,avg({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;max(,max({&amp;lt;date={"&amp;lt;$(Max2)&amp;gt;$(Max1)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MapSubstring('Map_Expressions',String)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 10:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474663#M1137113</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-11-04T10:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474664#M1137114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you give an example i'm not familiar with this function &lt;/P&gt;&lt;P&gt;thanks alot&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474664#M1137114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-04T21:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474665#M1137115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've given an example in my previous reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474665#M1137115</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-11-04T21:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: replacing string</title>
      <link>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474666#M1137116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i didn't see &lt;/P&gt;&lt;P&gt;Thanks a lot it worked perfect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 10:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replacing-string/m-p/474666#M1137116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-05T10:32:56Z</dc:date>
    </item>
  </channel>
</rss>

