<?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 Trouble with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141904#M505682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pover for clearing that up... any ideas how to get inmonth({1}...)&lt;/P&gt;&lt;P&gt;Would something like this work (taking your example)??&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={"=aggr({1} max(Year),SalesRep)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 11:13:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-21T11:13:36Z</dc:date>
    <item>
      <title>Trouble with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141902#M505680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone tell me the difference between these two expressions because i can't work it out &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; BUT they give me different figures &lt;STRONG&gt;(the 2nd one gives me the correct figure)&lt;/STRONG&gt;. What i'm trying to get is the sales for the company regardless of a selection (in this case the sales rep). The first expression seems to take into account the reps figures somehow...&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;InvoiceDate={"=inmonth(InvoiceDate,Today(),0,7)"}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SalesRep=&amp;gt;} if(inmonth(InvoiceDate,Today(),0),Value))&lt;/P&gt;&lt;P&gt;The data structure is very simple with a sales table (InvoiceDate) and a customer table (SalesRep)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 09:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141902#M505680</guid>
      <dc:creator />
      <dc:date>2009-04-21T09:21:00Z</dc:date>
    </item>
    <item>
      <title>Trouble with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141903#M505681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The nested expression inmonth is over the filtered selection even though sum is over the whole universe. For example,&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={"=max({1} Year)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;will not change regardless of the selection, but&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={"=max(Year)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;will change when certain selections are made that filter the Year indirectly.&lt;/P&gt;&lt;P&gt;Now, it's just a matter of seeing how to apply the function inmonth over the whole universe of datos.&lt;/P&gt;&lt;P&gt;Pover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 10:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141903#M505681</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2009-04-21T10:20:27Z</dc:date>
    </item>
    <item>
      <title>Trouble with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141904#M505682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pover for clearing that up... any ideas how to get inmonth({1}...)&lt;/P&gt;&lt;P&gt;Would something like this work (taking your example)??&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Year={"=aggr({1} max(Year),SalesRep)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 11:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141904#M505682</guid>
      <dc:creator />
      <dc:date>2009-04-21T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Trouble with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141905#M505683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;It should be simpler than using a aggr. Taking your example again and given you have or can create an additional field in the data cloud that looks something like the following:&lt;/P&gt;&lt;P&gt;month(InvoiceDate) as InvoiceMonth;&lt;/P&gt;&lt;P&gt;the following formula should work and be completely independent of the selections you make:&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;InvoiceMonth={$(=month(today()))}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;Tell me how it goes.&lt;/P&gt;&lt;P&gt;Pover&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 00:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-Set-Analysis/m-p/141905#M505683</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2009-04-23T00:44:24Z</dc:date>
    </item>
  </channel>
</rss>

