<?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 Need help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/375037#M492275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the way the "GAP" gets calculated within the attached Straight Table. The different parts to the formula are...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average Sales = Total Sales / # Stores with Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Sales value (by Barcode/Store) is less than the Average, then the GAP = Average Sales - Sales (by Barcode / Store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easy part is to add the Average Sales column, but how would I test the Sales value (by Barcode/Store) against the Average Sales value without the Store being included withing this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19105" class="jive-image-thumbnail jive-image" height="212" onclick="" alt="Table.png" src="https://community.qlik.com/legacyfs/online/19105_Table.png" style="width: 630px; height: 212.5834797891037px;" width="630" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 22:30:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-30T22:30:46Z</dc:date>
    <item>
      <title>Need help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/375037#M492275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the way the "GAP" gets calculated within the attached Straight Table. The different parts to the formula are...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average Sales = Total Sales / # Stores with Sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Sales value (by Barcode/Store) is less than the Average, then the GAP = Average Sales - Sales (by Barcode / Store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easy part is to add the Average Sales column, but how would I test the Sales value (by Barcode/Store) against the Average Sales value without the Store being included withing this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19105" class="jive-image-thumbnail jive-image" height="212" onclick="" alt="Table.png" src="https://community.qlik.com/legacyfs/online/19105_Table.png" style="width: 630px; height: 212.5834797891037px;" width="630" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 22:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-expression/m-p/375037#M492275</guid>
      <dc:creator />
      <dc:date>2012-07-30T22:30:46Z</dc:date>
    </item>
  </channel>
</rss>

