<?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 aggr Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160167#M34535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shideh,&lt;/P&gt;&lt;P&gt;glad to help you.&lt;/P&gt;&lt;P&gt;The term "Material_ID1 -= P(Material_ID2)" is the short form of "Material_ID1 = Material_ID1 - P(Material_ID2)" where the '-' (minus) is a Set Operator and the P() function returns the set (list) of all indirectly (implicit) selected Material_ID2s. The set-members are recognizeably in a listbox normally with a white background color. Please see help for further details.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jan 2011 15:54:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-12T15:54:04Z</dc:date>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160159#M34527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;attached my Question as QVW.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 16:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160159#M34527</guid>
      <dc:creator />
      <dc:date>2011-01-07T16:29:39Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160160#M34528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shideh,&lt;/P&gt;&lt;P&gt;as far as I understand your question you should proof the contents of your vars. According to your selection the values of your vars are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;varDat = &amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;&amp;lt;=Jan-2010&amp;gt;=Jan-2010&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;table&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;varDat2 = &amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;&amp;lt;=Dec-2009&amp;gt;=Dec-2009&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;which means varDat is exactly(!) Jan-2010 and varDat2 is exactly Dez-2009. And logical consistent your sums() have two different results. This is correct. Or am I completly wrong?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 17:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160160#M34528</guid>
      <dc:creator />
      <dc:date>2011-01-07T17:17:19Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160161#M34529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;It is correct. both formel are right, I like to build new (Dimension or Formel )? i don't no, which is correct ?&lt;/P&gt;&lt;P&gt;I have 2 tables (Article_KPM1 and Article_KPM2).&lt;BR /&gt;I would like a (formel or Deminsion) to add to this on this Diagramm with the following criteria:&lt;BR /&gt;for all Articlenr in Article_KPM1 on selected date in MonthYearFrom(varDat) that are not in Article_KPM2 on selected MonthYearTo (varDat2), ,Amount of Sales from Article_KPM1&lt;/P&gt;&lt;P&gt;user selects the two CalenderBox and get the first sum (sales) from the Article-KPM1 and for the second calendar are the sum (sales) from the second file (Article-KPM2)&lt;/P&gt;&lt;P&gt;varDat is the selected "MonthYearFrom"&lt;/P&gt;&lt;P&gt;varDat2 is the selected "MonthYearTo"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am now at home and I have no QlikView, so I will write an example&lt;BR /&gt;It may be that the field names are different than in QVW.&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;for Example:&lt;BR /&gt;Article_KPM1&lt;/P&gt;&lt;P&gt;ArticleNr "111111" sales "5" varDat "Jan-2010"&lt;/P&gt;&lt;P&gt;ArticleNr 111112 sales 6 varDat "Jan-2010"&lt;/P&gt;&lt;P&gt;ArticleNr 111113 sales 4 varDat "Jan-2010"&lt;/P&gt;&lt;P&gt;Article_KPM2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ArticleNr "111111" sales "15" varDat2 "Dec-2009"&lt;/P&gt;&lt;P&gt;ArticleNr "111112" sales "1" varDat2 "Dec-2009"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;result: sume(sales) =4&lt;BR /&gt;\]&lt;/P&gt;&lt;P&gt;I have created a small example as QVW, my QVW has several of Diagrame and tables.&lt;BR /&gt;Sorry for my bad Englich.&lt;BR /&gt;Thanks&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 21:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160161#M34529</guid>
      <dc:creator />
      <dc:date>2011-01-07T21:29:50Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160162#M34530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;took some time looking into your app on sunday evening (TV wasn't very interresting ;-)). This is the &lt;I&gt;dimension&lt;/I&gt; I used in a chart to get only these Articles with a sum() &amp;gt; 0 in the first timerange. Perhaps I used the wrong time-variable, sorry if so.But I think it points anyway in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=if( aggr(sum({&amp;lt;Date_MonthYear= {"$(=varDat2)"}&amp;gt;} Sales1), %Material_ID1) &amp;gt; 0,%Material_ID1)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The filter above you can also use in an expression, but you need to think about the second var then. For ex.like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;= sum( if( aggr(sum({&amp;lt;Date_MonthYear= {"$(=varDat2)"}&amp;gt;} Sales1), %Material_ID1) &amp;gt; 0 and Date_MonthYear . . . , Sales2)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: expressions (=english; formel is german) are not syntax-checked.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 12:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160162#M34530</guid>
      <dc:creator />
      <dc:date>2011-01-10T12:50:52Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160163#M34531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;Hello Roland,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;Thank you for your efforts. I was not yesterday on Office&lt;BR /&gt;It is unfortunately not what I look for it. In the Article KPM1 is Article that is not included in Artikel_kPM2. For this article, I would like to Sum (Sales). "Jan2010" and Select MonthYearto "Feb 2010". exist Material_ID1 "111139" with Sales 8. would like no products number, just only sum (sales) of this article as expressions.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;Select MonthYearFrom&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;In Article_KPM1&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;For this Material is not any entry's in the Arikel_KPM2.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;I&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;vertical-align:top;"&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;Regards&lt;BR /&gt;Shideh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 09:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160163#M34531</guid>
      <dc:creator />
      <dc:date>2011-01-11T09:48:25Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160164#M34532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shideh,&lt;/P&gt;&lt;P&gt;now watch your chart , I added a third expression. Same as in the chart "SUM RK". This was my "development-chart".&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 21:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160164#M34532</guid>
      <dc:creator />
      <dc:date>2011-01-11T21:52:09Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160165#M34533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Hi Roland,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Thank you very much. That works perfectly. Can you please explain me the -=P ? and the Expression.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Thanks again&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Regards&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 08:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160165#M34533</guid>
      <dc:creator />
      <dc:date>2011-01-12T08:30:02Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160166#M34534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Hi Roland,&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Thank you very much. That works perfectly. Can you please explain me the -=P ? and the Expression.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Thanks again&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Regards&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 10:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160166#M34534</guid>
      <dc:creator />
      <dc:date>2011-01-12T10:55:13Z</dc:date>
    </item>
    <item>
      <title>aggr Problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160167#M34535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shideh,&lt;/P&gt;&lt;P&gt;glad to help you.&lt;/P&gt;&lt;P&gt;The term "Material_ID1 -= P(Material_ID2)" is the short form of "Material_ID1 = Material_ID1 - P(Material_ID2)" where the '-' (minus) is a Set Operator and the P() function returns the set (list) of all indirectly (implicit) selected Material_ID2s. The set-members are recognizeably in a listbox normally with a white background color. Please see help for further details.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-Problem/m-p/160167#M34535</guid>
      <dc:creator />
      <dc:date>2011-01-12T15:54:04Z</dc:date>
    </item>
  </channel>
</rss>

