<?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 and Count for each column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430128#M484377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the following two expressions I want to sum all sales from all Ship To's under it's respective Sales Catalog Section as well as count the records of Ship To's for each. So, only include records that had Device sales, records that had Extract sales, etc. I know saying "*" gives me all Ship To's, but I would have expected it to consider the Sales Catalog Section it's under? And yes, I do need the total at each record because I will eventually use these two expressions in another record level expression. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(TOTAL {&amp;lt;[Ship To]={"*"}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;Count(TOTAL {&amp;lt;[Ship To]={"*"}&amp;gt;} [Ship To])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41986" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/41986_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2013 20:37:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-31T20:37:06Z</dc:date>
    <item>
      <title>Sum and Count for each column</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430128#M484377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the following two expressions I want to sum all sales from all Ship To's under it's respective Sales Catalog Section as well as count the records of Ship To's for each. So, only include records that had Device sales, records that had Extract sales, etc. I know saying "*" gives me all Ship To's, but I would have expected it to consider the Sales Catalog Section it's under? And yes, I do need the total at each record because I will eventually use these two expressions in another record level expression. What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(TOTAL {&amp;lt;[Ship To]={"*"}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;Count(TOTAL {&amp;lt;[Ship To]={"*"}&amp;gt;} [Ship To])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41986" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/41986_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 20:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430128#M484377</guid>
      <dc:creator />
      <dc:date>2013-05-31T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and Count for each column</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430129#M484378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably don't need to use set analysis here. Try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(total&amp;lt;[Sales Catalog Section]&amp;gt; [Sales Amount])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 21:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430129#M484378</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-31T21:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and Count for each column</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430130#M484379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That work great swuehl, thank you! I had over simplified it though in my example. I do need to use set analysis I believe because I also need to specify the previous two fiscal years, all months, and all ship to's. WIth your help, this is what I have now that works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(TOTAL &amp;lt;[Sales Catalog Section]&amp;gt; {$&amp;lt;[Fiscal Year]={'&amp;gt;=$(=FiscalCurrentYear-2)&amp;lt;$(FiscalCurrentYear)'},Month={"*"},[Ship To]={"*"}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also like to include this in a label of an expression although it doesn't seem to break down to Sales Catalog Section like the value does. Any idea why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 15:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-and-Count-for-each-column/m-p/430130#M484379</guid>
      <dc:creator />
      <dc:date>2013-06-03T15:19:25Z</dc:date>
    </item>
  </channel>
</rss>

