<?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: sum() with many filter with which function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736027#M675999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO Navision; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TT:&lt;/P&gt;&lt;P&gt;Load *&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 1 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 2 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Posting Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "G_L Account No_"&lt;/P&gt;&lt;P&gt;FROM "DBase".dbo."DB9"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Front view:&lt;/P&gt;&lt;P&gt;Create a chart by using "Global Dimension 1 Code" as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;"Global Dimension 1 Code"={'&amp;gt;=400000&amp;lt;=599999','677000','688000'}-{'494500','494700','494800'}&amp;gt;} Amount)&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;Load * where not match ("Global Dimension 1 Code", '494500','494700','494800)&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 1 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 2 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Posting Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "G_L Account No_"&lt;/P&gt;&lt;P&gt;FROM "DBase".dbo."DB9"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Front view:&lt;/P&gt;&lt;P&gt;Create a chart by using "Global Dimension 1 Code" as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum(Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 13:05:06 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2014-06-24T13:05:06Z</dc:date>
    <item>
      <title>sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736021#M675993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've many IDs with Amount like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, Amount&lt;/P&gt;&lt;P&gt;400000, 4500&lt;/P&gt;&lt;P&gt;...,...&lt;/P&gt;&lt;P&gt;999999,4000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to sum() all the ID from: &lt;STRONG&gt;400000 - 59999 AND &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;STRONG&gt;677000&amp;nbsp; AND &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;&lt;STRONG&gt;688000&lt;/STRONG&gt;, except &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;494500, &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;494700,494800&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;How can I express this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Do you have an idea &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736021#M675993</guid>
      <dc:creator />
      <dc:date>2014-06-24T12:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736022#M675994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this and let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$ &amp;lt;ID={'&amp;gt;=&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;400000&amp;lt;=&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;59999&lt;/STRONG&gt;&lt;/STRONG&gt;', '&amp;gt;=&lt;STRONG style="font-family: Arial, sans-serif; color: #000000;"&gt;677000&amp;lt;=&lt;STRONG style="font-family: Arial, sans-serif; color: #000000;"&gt;688000&lt;/STRONG&gt;&lt;/STRONG&gt;'}-{'&lt;SPAN style="color: #000000; font-family: Arial, sans-serif;"&gt;494500','&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: black;"&gt;494700','494800&lt;/SPAN&gt;'}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736022#M675994</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-24T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736023#M675995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum($ &amp;lt;ID={'&amp;gt;=400000&amp;lt;=599999','677000','688000'}-{'494500','494700','494800'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;-&amp;gt; I get a crash of the project..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736023#M675995</guid>
      <dc:creator />
      <dc:date>2014-06-24T12:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736024#M675996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you sent it to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736024#M675996</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-24T12:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736025#M675997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u cant test it, because the database is local .. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736025#M675997</guid>
      <dc:creator />
      <dc:date>2014-06-24T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736026#M675998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis can't be used in the script. You should try the expression in the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736026#M675998</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-24T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736027#M675999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO Navision; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TT:&lt;/P&gt;&lt;P&gt;Load *&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 1 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 2 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Posting Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "G_L Account No_"&lt;/P&gt;&lt;P&gt;FROM "DBase".dbo."DB9"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Front view:&lt;/P&gt;&lt;P&gt;Create a chart by using "Global Dimension 1 Code" as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;"Global Dimension 1 Code"={'&amp;gt;=400000&amp;lt;=599999','677000','688000'}-{'494500','494700','494800'}&amp;gt;} Amount)&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;Load * where not match ("Global Dimension 1 Code", '494500','494700','494800)&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 1 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Global Dimension 2 Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Posting Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "G_L Account No_"&lt;/P&gt;&lt;P&gt;FROM "DBase".dbo."DB9"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Front view:&lt;/P&gt;&lt;P&gt;Create a chart by using "Global Dimension 1 Code" as dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum(Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736027#M675999</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-06-24T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736028#M676000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How could the expression looks like?&lt;/P&gt;&lt;P&gt;Is it possible to sum() alle the values that I need, and at least subtract the sum() of the values that I want to except ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;sum(amount) as sum1&lt;/P&gt;&lt;P&gt;sum(amount) as sum2&lt;/P&gt;&lt;P&gt;sum(amount) as subtractiom1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum1+sum2) -subtraction1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be solved ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736028#M676000</guid>
      <dc:creator />
      <dc:date>2014-06-24T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum() with many filter with which function?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736029#M676001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do the same at the back end and front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-with-many-filter-with-which-function/m-p/736029#M676001</guid>
      <dc:creator />
      <dc:date>2014-06-24T13:17:49Z</dc:date>
    </item>
  </channel>
</rss>

