<?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: purge function- where  error? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711224#M256163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the function returns &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;100000&lt;/STRONG&gt; (1 and 0) as characters to exclude in the string -08.05.2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 15:50:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-28T15:50:37Z</dc:date>
    <item>
      <title>purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711220#M256159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could anyone tell me, plese, why &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(peek(debit_date), SubField(peek(debit_date),'-',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns '-8.5.24',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the incoming string is '100000-08.05.2014'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711220#M256159</guid>
      <dc:creator />
      <dc:date>2014-10-28T15:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711221#M256160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what exactly output you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711221#M256160</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2014-10-28T15:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711222#M256161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'-08.05.2014'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711222#M256161</guid>
      <dc:creator />
      <dc:date>2014-10-28T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711223#M256162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subfield( Debit_Date,'-',2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711223#M256162</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2014-10-28T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711224#M256163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the function returns &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;100000&lt;/STRONG&gt; (1 and 0) as characters to exclude in the string -08.05.2014&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711224#M256163</guid>
      <dc:creator />
      <dc:date>2014-10-28T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711225#M256164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SubField(peek(debit_date),'-',2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711225#M256164</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-28T15:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711226#M256165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgot the leading '-':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'-'&amp;amp;SubField(peek(debit_date),'-',2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 15:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711226#M256165</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-28T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711227#M256166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or simply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;peek(debit_date)&lt;/SPAN&gt;,11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the date format is always the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711227#M256166</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-28T16:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711228#M256167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco, thank you for response.&lt;/P&gt;&lt;P&gt;The problem is that rhe string is not always &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; '100000-08.05.2014' it might be a longer&amp;nbsp; string, containing debt and its start_date.... it might be &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; '100000-08.05.2014-50&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;000-25.04.2014', for example. and i need to evaluate the first subfield (this is the sum of debt to be fully or partly repaid) and leave teh rest part of the string unchanged.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;How can i solve it?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 09:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711228#M256167</guid>
      <dc:creator />
      <dc:date>2014-10-29T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711229#M256168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SubField(peek(debit_date),'-',2)&lt;/SPAN&gt; solution should work for those field values as well:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_139750_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/69958_QlikCommunity_Thread_139750_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711229#M256168</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-29T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711230#M256169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/174509"&gt;Carlo Belletti&lt;/A&gt;, thank you for responce. Can you kindly explain how does it get &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'-8.5.24' in such way? and how to gwet the substring without first substring in such a way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Alexa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711230#M256169</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711231#M256170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is giving correct answer only&lt;/P&gt;&lt;P&gt;here you have&lt;/P&gt;&lt;P&gt;if the incoming string is '100000-08.05.2014'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PurgeChar(peek(debit_date), SubField(peek(debit_date),'-',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns '-8.5.24',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keepChar(peek(debit_date), SubField(peek(debit_date),'-',1))&lt;/P&gt;&lt;P&gt;it will give 100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subfield(peek(debit_date),'-',1))&amp;nbsp; it will give 100000&lt;/P&gt;&lt;P&gt;subfield(peek(debit_date),'-',2))&amp;nbsp; it will give 08.05.2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to your requirement you can use these scenarios&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711231#M256170</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711232#M256171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh, yeah... now I understand my error... I thougth it works like subfielb, but extracts ... didnt mentioned that it takes away all the symbols =(&lt;/P&gt;&lt;P&gt;thanks for explanation/&lt;/P&gt;&lt;P&gt;Only question is why should&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;keepChar(peek(debit_date), SubField(peek(debit_date),'-',1))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;give 100000 and not &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1000000001&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711232#M256171</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711233#M256172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have figured out correctly your problem, i think a possible solution is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1: index the '-' character with the index function&lt;/P&gt;&lt;P&gt;in your specified case index function in debit_date field, for '-' character returns 7&lt;/P&gt;&lt;P&gt;INDEX FUNCTION: index(debit_date,'-')&lt;/P&gt;&lt;P&gt;you have to use this value in the FINAL FUNCTION..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step2&lt;/P&gt;&lt;P&gt;use the result of the first step to select only the string partyou need (in your case date part)&lt;/P&gt;&lt;P&gt;FINAL FUNCTION: mid(debit_date,index(debit_date,'-'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method solve the problem of the debit string lenght.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711233#M256172</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711234#M256173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah you are right that keepchar syntax will give 1000000001 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will keep all the characters what we gave values to keep in the list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711234#M256173</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711235#M256174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;A href="https://community.qlik.com/qlik-users/174509"&gt;Carlo Belletti&lt;/A&gt;, for an interesting solution!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Alexa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 10:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711235#M256174</guid>
      <dc:creator />
      <dc:date>2014-10-29T10:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: purge function- where  error?</title>
      <link>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711236#M256175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you once more &lt;A href="https://community.qlik.com/qlik-users/174509"&gt;Carlo Belletti&lt;/A&gt; because i've just understood, that YOUR answer is correct=)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/purge-function-where-error/m-p/711236#M256175</guid>
      <dc:creator />
      <dc:date>2014-10-29T14:53:25Z</dc:date>
    </item>
  </channel>
</rss>

