<?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: Conditional Count in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012484#M343408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into using advanced aggregation, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr( if(sum({&amp;lt;[Flg]={1}&amp;gt;} Sale) &amp;gt; $(vSales),count(Wk)), A, B, C, D, Wk, Flg))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see also attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jan 2016 12:08:47 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-16T12:08:47Z</dc:date>
    <item>
      <title>Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012483#M343407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where i need to count no of weeks based on the Sales values provided by user using slider object. If sales values aggregated on week are more than the thrshold set by user, then count those weeks else dont. it seems simple but when I am not using the wk dimension (and I dont want that in the straight table chart) then its not appropriate with end results.&lt;/P&gt;&lt;P&gt;Please note that I have set analysis used for all the aggregations - hence I simulated it in the sample data as well.&lt;/P&gt;&lt;P&gt;Please go through the QVW attached. I just want to achieve similar "wk count" results&amp;nbsp; mentioned in&amp;nbsp; the " Test with Wk" chart &lt;/P&gt;&lt;P&gt;when I am not using the wk dimension i.e. in the "Test without Wk" chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 02:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012483#M343407</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-01-16T02:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012484#M343408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look into using advanced aggregation, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr( if(sum({&amp;lt;[Flg]={1}&amp;gt;} Sale) &amp;gt; $(vSales),count(Wk)), A, B, C, D, Wk, Flg))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see also attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 12:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012484#M343408</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-16T12:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012485#M343409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly I wanted !!!!! &lt;/P&gt;&lt;P&gt;Thank you very much swuehl!!! Can you please explain me the expression and how it works as there are many instances I need to use it and whats the concept of developing these expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 14:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012485#M343409</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-01-16T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012486#M343410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can start with HIC's blog post and the linked documents:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 17:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012486#M343410</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-16T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012487#M343411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried above expression to modify it with pure set expression to get rid off the IF condition. This is to make sure performance improvements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new expression I build is : &lt;/P&gt;&lt;P&gt;=sum(aggr(count({&amp;lt;wk={"(sum(Sale) &amp;gt; $(vSales)"}&amp;gt;}DISTINCT Wk),A,B,C,D,Wk))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But somehow its not working as per expectations and the comparison based on the slider values are not in effect, Can you please look into it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 16:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012487#M343411</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-01-30T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012488#M343412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please confirm on the expression I am trying to get in set Analysis ? Whats wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012488#M343412</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2016-02-05T01:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Count in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012489#M343413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set analysis is evaluated once per chart, not per chart or aggr() dimension value, but I think that's what you are assuming here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Count-in-straight-table/m-p/1012489#M343413</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-05T17:37:35Z</dc:date>
    </item>
  </channel>
</rss>

