<?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 sum(sales) only for returning customers between 2 dates...how? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180938#M47173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course a filter on count &amp;gt; 1 should be included&lt;/P&gt;&lt;P&gt;but thats exactly the question&lt;/P&gt;&lt;P&gt;where and how&lt;/P&gt;&lt;P&gt;set analysis or if&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 23:40:42 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2009-09-09T23:40:42Z</dc:date>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180933#M47168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi good fellas,&lt;/P&gt;&lt;P&gt;i need to sum the sales only for customers who bought more then once between 2 (user selected) Dates.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;the user have selected 01/02/2009 - 31/03/2009&lt;/P&gt;&lt;P&gt;i want only customers who bought more then once during that period to be included.&lt;/P&gt;&lt;P&gt;there are other filters involved but thats the only one i couldnt figure out&lt;/P&gt;&lt;P&gt;any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 22:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180933#M47168</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2009-09-09T22:12:37Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180934#M47169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are your dimensions?&lt;/P&gt;&lt;P&gt;In Set Analysis, you would use something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({DATE = {'&amp;gt;=01/02/2009&amp;lt;=31/03/2009'}&amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If your dates are variables, you could use this to make it dynamic:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({DATE = {'&amp;gt;=$(=vDate1)&amp;lt;=$(=vDate2)'}&amp;gt;} Sales)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I don't think you need quotes around the individual dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 22:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180934#M47169</guid>
      <dc:creator />
      <dc:date>2009-09-09T22:23:53Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180935#M47170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for you answer,&lt;/P&gt;&lt;P&gt;maybe i was not clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know how to use a date range in set analysis or anywhere else&lt;/P&gt;&lt;P&gt;but how do i only include returning customers ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my dimension is ofcourse customer&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 22:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180935#M47170</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2009-09-09T22:39:09Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180936#M47171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, it looks like I misread it.&lt;/P&gt;&lt;P&gt;I'm not sure that you can use Count(Field) in your Set Analysis expression. You could do it with an if...then, but it's a little messy:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count({SA}Amount)&amp;gt;1, Sum ({SA}Amount), Null())&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You would need to use the Set Analysis in both aggregates to make sure that the count only applies to the entered date span.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 23:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180936#M47171</guid>
      <dc:creator />
      <dc:date>2009-09-09T23:01:39Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180937#M47172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansyno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you should include a count on customer (count &amp;gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 23:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180937#M47172</guid>
      <dc:creator />
      <dc:date>2009-09-09T23:03:12Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180938#M47173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course a filter on count &amp;gt; 1 should be included&lt;/P&gt;&lt;P&gt;but thats exactly the question&lt;/P&gt;&lt;P&gt;where and how&lt;/P&gt;&lt;P&gt;set analysis or if&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 23:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180938#M47173</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2009-09-09T23:40:42Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180939#M47174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the expression where you give sum(Sales), you can use something like this&lt;I&gt;&lt;B&gt;if(count(CustomerID)&amp;gt;1,sum(Sales),sum(0))&lt;/B&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;And make sure that you have checked Supress 0 Values. Then you will get the result you want i think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 00:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180939#M47174</guid>
      <dc:creator />
      <dc:date>2009-09-10T00:47:48Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180940#M47175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want customers who returned within the date span? Or just customers who have been there more than once ever?&lt;/P&gt;&lt;P&gt;If you want within the date span, then you have to use Set Analysis within the Count and within the Sum, like I posted above. If it's the second scenario, then no Set Analysis is needed on the count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 01:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180940#M47175</guid>
      <dc:creator />
      <dc:date>2009-09-10T01:11:23Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180941#M47176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you both for your solutions but...&lt;/P&gt;&lt;P&gt;if i use ither of your solutions then i will still have ALL the customers in the table. the ones that are returning will have thir sum(sales) and the rest will have 0&lt;/P&gt;&lt;P&gt;what i need is to have only the customers that are returning apear in the table&lt;/P&gt;&lt;P&gt;i need&lt;/P&gt;&lt;P&gt;count( if(cond.) field)&lt;/P&gt;&lt;P&gt;i dont need&lt;/P&gt;&lt;P&gt;if(cond.) then count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or to be more exact&lt;/P&gt;&lt;P&gt;i need nested aggr&lt;/P&gt;&lt;P&gt;problem is if i used AGGR() will be to heavy on the table ( i think, cuz i have LOTS of data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 02:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180941#M47176</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2009-09-10T02:15:37Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180942#M47177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the Set Analysis in all of your expressions on the table. Then for those customers that aren't returning, you will have zeroes for everything. Then you can use the Chart property Suppress Zero Values to hide all of those records.&lt;/P&gt;&lt;P&gt;I think the expression that you say you want and the one you don't want are logically equivilent. If the condition is false, you get 0 for both of them. If the condition is true, you get the count for both of them.&lt;/P&gt;&lt;P&gt;If you're trying to exclude those customers that don't meet your criteria, you need to make all of the expression result in zero and then suppress them. If any expression doesn't result in zero, it would be suppressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 02:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180942#M47177</guid>
      <dc:creator />
      <dc:date>2009-09-10T02:33:16Z</dc:date>
    </item>
    <item>
      <title>sum(sales) only for returning customers between 2 dates...how?</title>
      <link>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180943#M47178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi wizardo, as u said the non returning customers will be having sales 0. Then in the property of the chart, there is something like 'Suppress Zero Values'. On selecting that, customers with 0 sales won't be displayed. In this case, it means, non-returning customers won't be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2009 02:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-sales-only-for-returning-customers-between-2-dates-how/m-p/180943#M47178</guid>
      <dc:creator />
      <dc:date>2009-09-10T02:41:56Z</dc:date>
    </item>
  </channel>
</rss>

