<?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: Set Analysis aggregate with date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74877#M458032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the start and end date differ, you won't really be able to use set analysis... you might need to use if statement with aggr function. In case you need help with a specific expression, would you be able to share a sample to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2018 15:35:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-08T15:35:52Z</dc:date>
    <item>
      <title>Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74876#M458031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis which works fine until I have got one company group selected. If I select more company groups or clear the filter it doesn't show any figures. Just a bit explanation for the data set. Every group has got different start and end date it is like a membership expiration date. I would like to get the sales within their time of membership status. When selecting a month it nicely accumulate month by month and when it reaches the end date it will not show accumulation further only the sales up to the end date. As I said it works perfectly until I have got one company group selected. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; Any idea what is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(AGGR(SUM({&amp;lt;Event = {'Sales'}, GroupAccountType = {'National'}, New_Renewal={'Re-opened','New'}, DateKeyNum = {"&amp;gt;=$(=StartDateNum)&amp;lt;=$(=EndDateNum)"}&amp;gt;} TotalExcVAT),Zone,GroupName,MonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 10:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74876#M458031</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-08T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74877#M458032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the start and end date differ, you won't really be able to use set analysis... you might need to use if statement with aggr function. In case you need help with a specific expression, would you be able to share a sample to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 15:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74877#M458032</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-08T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74878#M458033</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;what's the result ? a null value ?&lt;/P&gt;&lt;P&gt;if it's the case surely because sseveral aggr(&amp;nbsp;&amp;nbsp; ) give same result,&lt;/P&gt;&lt;P&gt;try add nodistinct after aggr and before sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2018 06:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74878#M458033</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-06-09T06:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74879#M458034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;you can try including the "company group" as one of the dimenions in the existing chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If&amp;nbsp; you have multiple Group Names with the varying dates then definitely you have to include the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"company group" as a&amp;nbsp; dimension in case you need to compare the data for themusing your current set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;====&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can cross check your data by creating a straight table by&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Adding these expressions&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM({&amp;lt;Event = {'Sales'}, GroupAccountType = {'National'}, New_Renewal={'Re-opened','New'}, DateKeyNum = {"&amp;gt;=$(=StartDateNum)&amp;lt;=$(=EndDateNum)"}&amp;gt;} TotalExcVAT)&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Maxstring(Date(Date#(StartDateNum))) ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Maxstring(Date(Date#(EndDateNum))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and check the result in a straight table to oserve what is causing your issue.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;With Dimensions&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Event , GroupAccountType , New_Renewal, ,Zone,GroupName, MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;====&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2018 19:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74879#M458034</guid>
      <dc:creator>vikramv</dc:creator>
      <dc:date>2018-06-09T19:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74880#M458035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values are zeros as it shows below. If I select one of the companies from the straight table chart then gets the real figures. And with selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture No selection.PNG" class="jive-image image-1" src="/legacyfs/online/204906_Capture No selection.PNG" style="height: 337px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture With Selection.PNG" class="jive-image image-2" src="/legacyfs/online/204907_Capture With Selection.PNG" style="height: 243px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74880#M458035</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-12T10:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74881#M458036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it and I still cannot see the issue. Max functions probably won't work as every company has got their separate start and end. With max I will pick the highest of all. I do not want that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74881#M458036</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-12T10:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74882#M458037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delayed reply I got busy. I am not sure how I can upload a sample dashboard. I will try to figure out and update the topic shortly. Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74882#M458037</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-12T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74883#M458038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found help in one of your previous post "Upload Sample file" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; lol. You already helped! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;Please see the sample file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 10:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74883#M458038</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-12T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74884#M458039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(DateKeyNum &amp;gt;= StartDateNum and DateKeyNum &amp;lt;= EndDateNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Event = {'Sales'}, GroupAccountType = {'National'}, New_Renewal={'Re-opened','New'}&amp;gt;} TotalExcVAT)),Zone, GroupName, MonthYear, DateKeyNum))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/204898_Capture.PNG" style="height: 375px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 11:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74884#M458039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-12T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74885#M458040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It marked. It works perfectly. I have tried before with IF but I used outside of the AGGR function so it hasn't worked for me. Can I have some explanation what is the difference withing the AGGR or outside of the aggregate? Is it basically part of the set analysis in this case or still not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74885#M458040</guid>
      <dc:creator>pirtekmismanage</dc:creator>
      <dc:date>2018-06-12T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis aggregate with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74886#M458041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you let me know what was the exact expression you used?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is it basically part of the set analysis in this case or still not?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nope, this is not set analysis... this is an if statement now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 15:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-aggregate-with-date-range/m-p/74886#M458041</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-12T15:08:32Z</dc:date>
    </item>
  </channel>
</rss>

