<?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: Could I use Set Analyis in Count expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420029#M156278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak you!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Now..&lt;/P&gt;&lt;P&gt;In my main pivot table i am displaying rows depending on meeting this cutoff condiiton.&lt;/P&gt;&lt;P&gt;if((sum({&amp;lt;YEARQUARTER={$(=Max(YEARQUARTER))}&amp;gt;} (ZIPDIST/1000) * CALCRATE)/13)/ZIPDIST &amp;lt; BaseAvgWeeklyRevenueperHH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will need to show another peice of info separately - justshowing the count of rows met this condiiton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how i can approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 19:56:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-16T19:56:54Z</dc:date>
    <item>
      <title>Could I use Set Analyis in Count expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420027#M156276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 12pt;"&gt;Qlikview Experts....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 12pt;"&gt;Using Qlikview version 9.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 12pt;"&gt;I am using the following expression in a pivot table in lieu of statistics box object, as my requirement is this conditional count. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 12pt;"&gt;Please do let me know if there is any other object I can use. This following expression is not giving me the conditional count.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 12pt;"&gt;=count(distinct if((sum({&amp;lt;YEARQUARTER={$(=Max(YEARQUARTER))}&amp;gt;} (ZIPDIST/1000) * CALCRATE)/13)/ZIPDIST &amp;lt; BaseAvgWeeklyRevenueperHH, ZIP)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 12pt;"&gt;BaseAvgWeeklyRevenueperHH is input value as variable. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 12pt;"&gt;Appreciate your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 12pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 12pt;"&gt;Pad.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420027#M156276</guid>
      <dc:creator />
      <dc:date>2012-10-16T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use Set Analyis in Count expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420028#M156277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use Set Analysis in a Count function. But you cannot have one aggregation (Sum) inside another (Count) the way you do here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I suspect you should have either the if-function inside the Count() or the set expression. But not both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 15:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420028#M156277</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-16T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use Set Analyis in Count expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420029#M156278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak you!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Now..&lt;/P&gt;&lt;P&gt;In my main pivot table i am displaying rows depending on meeting this cutoff condiiton.&lt;/P&gt;&lt;P&gt;if((sum({&amp;lt;YEARQUARTER={$(=Max(YEARQUARTER))}&amp;gt;} (ZIPDIST/1000) * CALCRATE)/13)/ZIPDIST &amp;lt; BaseAvgWeeklyRevenueperHH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will need to show another peice of info separately - justshowing the count of rows met this condiiton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how i can approach this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 19:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420029#M156278</guid>
      <dc:creator />
      <dc:date>2012-10-16T19:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use Set Analyis in Count expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420030#M156279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the goal is to count the number of rows - or rather, count the number of distinct dimensional values that fulful this demand, then you have a two-step aggregation and need to use the aggr function. Hence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( Aggr( if( Sum(...) &amp;lt; BaseAvgWeeklyRevenueperHH, Sum(...) ), &amp;lt;Dimension&amp;gt; ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you need to replace the "BaseAvgWeeklyRevenueperHH" with the aggregation that calculates this number. Further, you divide by ZIPDIST outside the aggregation (the sum function). This only works if ZIPDIST only has one single value. Put it inside the Sum instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 20:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-I-use-Set-Analyis-in-Count-expression/m-p/420030#M156279</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-10-16T20:39:03Z</dc:date>
    </item>
  </channel>
</rss>

