<?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: Easy formula error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908514#M991358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BLART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'K1','K2','K3','K4','KR','KA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POSID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={"=len(trim(POSID))&amp;gt;0"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#ProjActualNetSpend_NOK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 16:34:51 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-21T16:34:51Z</dc:date>
    <item>
      <title>Easy formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908513#M991357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am coming across a problem that I am pretty sure has a really simple fix. I have a Straight Table that is listing vendors with total spend towards that vendor. These are based on invoices with a number of lines and I am only wanting it to count the lines where there is a value in the project field (called POSID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My straight table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93531_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My calculation&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BLART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'K1','K2','K3','K4','KR','KA'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#ProjActualNetSpend_NOK&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;I tried the expression below, but it only gave me very wrong values. Does anyone have any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BLART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'K1','K2','K3','K4','KR','KA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POSID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;lt;&amp;gt;0'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#ProjActualNetSpend_NOK&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;For further illustration, what I need is basically only the lines circled in red to be counted, whereas it is counting all lines. So that for example the 224 at the top is counted twice (both for row 1 and for row2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93530_Capture.PNG" style="width: 620px; height: 200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908513#M991357</guid>
      <dc:creator />
      <dc:date>2015-07-21T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Easy formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908514#M991358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BLART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'K1','K2','K3','K4','KR','KA'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;POSID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={"=len(trim(POSID))&amp;gt;0"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;#ProjActualNetSpend_NOK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908514#M991358</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-21T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Easy formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908515#M991359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Espen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;BLART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={'K1','K2','K3','K4','KR','KA'}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;POSID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={'$(=len(POSID)&amp;gt;0)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;#ProjActualNetSpend_NOK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908515#M991359</guid>
      <dc:creator>yura_ratu</dc:creator>
      <dc:date>2015-07-21T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Easy formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908516#M991360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;Sum ({&amp;lt;BLART={'K1','K2','K3','K4','KR','KA'}, POSID={'*?'}&amp;gt;}#ProjActualNetSpend_NOK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908516#M991360</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-21T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Easy formula error</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908517#M991361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Working perfectly now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-formula-error/m-p/908517#M991361</guid>
      <dc:creator />
      <dc:date>2015-07-21T16:40:07Z</dc:date>
    </item>
  </channel>
</rss>

