<?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: AGGR Function Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644601#M1093113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum([TOTAL SALES IN PHYSICAL CS])&amp;gt;0.24, Count(distinct [PRD CD])),[CUST NAME],[MONTH]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will, for each [CUST NAME] and [MONTH] check if the Sum([TOTAL SALES IN PHYSICAL CS]) is above threshold, and if so return the count. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 10:29:37 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-05-23T10:29:37Z</dc:date>
    <item>
      <title>AGGR Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644600#M1093112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a question on how to sum up the value using Aggr or any other function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using 4 fields here, [CUST NAME], [MONTH], [PRD CD] &amp;amp; [TOTAL SALES IN PHSICAL CS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to find out how many distinct [PRD CD] have been billed under each [CUST NAME] for that month. The condition i'm using that the [TOTAL SALES IN PHYSICAL CS] should be &amp;gt; 0.24 which means that the product has been covered in that customer.&lt;/P&gt;&lt;P&gt;Since i have [DATE] field also the summing up is not taking place like in pivoted chart. &lt;/P&gt;&lt;P&gt;Here i should get for [PRD CD] = 3786 , the sum of [TOTAL SALES IN PHYSICAL CS] is (0.17+0.17 ) which is &amp;gt; 0.24 Thus the SKU is 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Excel.JPG.jpg" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/59444_Excel.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i use this in a formula in a text object its giving me 0 for the [PRD CD] 3786&lt;/P&gt;&lt;P&gt;Is there anyway i can avoid the split up based on the date alone?&lt;/P&gt;&lt;P&gt;i created a new field in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If([TOTAL SALES IN PHYSICAL CS]&amp;gt;0.24,1,0)) as SKU1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i tired this formula sum(aggr ( if(Sum(SKU1)&amp;gt;=1,1,0), [CUST NAME] ,[MONTH], [PRD CD])) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the value in a text box&lt;/P&gt;&lt;P&gt;If you could see in the screenshot below I'm supposed to get 6 as the sum(like the first chart table) but i am getting 5 (shown in the second table)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG.jpg" class="jive-image jiveImage" src="https://community.qlik.com/legacyfs/online/59445_Capture.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 10:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644600#M1093112</guid>
      <dc:creator />
      <dc:date>2014-05-23T10:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644601#M1093113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Sum([TOTAL SALES IN PHYSICAL CS])&amp;gt;0.24, Count(distinct [PRD CD])),[CUST NAME],[MONTH]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression will, for each [CUST NAME] and [MONTH] check if the Sum([TOTAL SALES IN PHYSICAL CS]) is above threshold, and if so return the count. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 10:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644601#M1093113</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-23T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function Help</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644602#M1093114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! It worked but after i took the month from the date field in the scrip and ignoring the DATE Field itself&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 13:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function-Help/m-p/644602#M1093114</guid>
      <dc:creator />
      <dc:date>2014-05-24T13:03:51Z</dc:date>
    </item>
  </channel>
</rss>

