<?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: Formula error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507021#M189576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Rentia, I didn't realize that you can't trim after the only function, it would be better to try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(Trim(&lt;SPAN style="color: #800000;"&gt;Narrative)&lt;/SPAN&gt;,16)&amp;lt;&amp;gt;'FK Mnthly-MAINT-',&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 14:25:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-20T14:25:05Z</dc:date>
    <item>
      <title>Formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507018#M189573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate our Rental Contracts Maintenance Costs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The costs Lies in out General Ledger. In this table we have a field name: Narrative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this Narrative I want the sum of my formula to exclude any entries with FK Mnthly-MAINT-23.&lt;/P&gt;&lt;P&gt;[The 23 at the end indicate how many months this rental has been running].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, it should sum all the enties values, except the values with a Narrative FK Mnthly-MAINT... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am using the following formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Narrative&lt;/SPAN&gt;,16)&amp;lt;&amp;gt;'FK Mnthly-MAINT-',&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)) , but it looks like it is still pulling through the values with this Narrative.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please advice if my formula is incorrect, and what the correct manner will be?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;*R*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:58:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507018#M189573</guid>
      <dc:creator />
      <dc:date>2013-08-20T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507019#M189574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Narrative field must be aggregated somehow, like all the fields in expressions in qlikview. You can do it with the Only function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(Trim(Only(&lt;SPAN style="color: #800000;"&gt;Narrative))&lt;/SPAN&gt;,16)&amp;lt;&amp;gt;'FK Mnthly-MAINT-',&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&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;Anyway, It would be much better (for performance) to create a new field in the script to check what you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507019#M189574</guid>
      <dc:creator />
      <dc:date>2013-08-20T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507020#M189575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try that formula, it gives me zero value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my Edit Expression Window it shows that there is an error in Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expression.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/45735_expression.jpg" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507020#M189575</guid>
      <dc:creator />
      <dc:date>2013-08-20T14:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507021#M189576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Rentia, I didn't realize that you can't trim after the only function, it would be better to try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(Trim(&lt;SPAN style="color: #800000;"&gt;Narrative)&lt;/SPAN&gt;,16)&amp;lt;&amp;gt;'FK Mnthly-MAINT-',&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 14:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-error/m-p/507021#M189576</guid>
      <dc:creator />
      <dc:date>2013-08-20T14:25:05Z</dc:date>
    </item>
  </channel>
</rss>

