<?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: Not showing Quantity Totals until in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299764#M111030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(len("Part Number"),sum("Quantity"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that it only does the calculation if there is a single part number associated with that row.&amp;nbsp; You would still get a quantity if a customer, say, had only a single part number.&amp;nbsp; Another approach that would remain blank even then would be to check the dimensionality() and/or secondarydimensionality().&amp;nbsp; The number to check for depends on how many dimensions you have.&amp;nbsp; Replace the existing expression with just dimensionality() or secondarydimensionality() to see what the number is at the level you want.&amp;nbsp; Then it would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(dimensionality()=4,sum("Quantity"))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 23:54:22 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-06-17T23:54:22Z</dc:date>
    <item>
      <title>Not showing Quantity Totals until</title>
      <link>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299763#M111029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a pivot table I do not want to show quantity amounts until the users drills down to part numbers (the table also shows sales).&lt;/P&gt;&lt;P&gt;So if the user is looking at the customer level the quantity amount is not relevant, so show the quantity as "blank" and show sales totalse.&amp;nbsp; But if the user drills down to see the customer's part number detail, then show the appropriate amount in the quatity field in the pivot table.&lt;/P&gt;&lt;P&gt;How would I do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 18:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299763#M111029</guid>
      <dc:creator />
      <dc:date>2011-06-17T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing Quantity Totals until</title>
      <link>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299764#M111030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(len("Part Number"),sum("Quantity"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that it only does the calculation if there is a single part number associated with that row.&amp;nbsp; You would still get a quantity if a customer, say, had only a single part number.&amp;nbsp; Another approach that would remain blank even then would be to check the dimensionality() and/or secondarydimensionality().&amp;nbsp; The number to check for depends on how many dimensions you have.&amp;nbsp; Replace the existing expression with just dimensionality() or secondarydimensionality() to see what the number is at the level you want.&amp;nbsp; Then it would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(dimensionality()=4,sum("Quantity"))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 23:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299764#M111030</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-17T23:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing Quantity Totals until</title>
      <link>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299765#M111031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Cant get it to work yet, but I was thinking along the lines of: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;BR /&gt; count( aggr( NODISTINCT count( Quantity ), [Part Number])&lt;BR /&gt; ) = 1, Sum( Quantity ), Sum(0)&lt;BR /&gt; ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would however also give results if one dimension up and there is only one part underneath.&lt;/P&gt;&lt;P&gt;Perhaps you can fiddle around with that idea a bit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gl Jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 12:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-showing-Quantity-Totals-until/m-p/299765#M111031</guid>
      <dc:creator />
      <dc:date>2011-06-18T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

