<?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 Set analysis - Ignore selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241449#M502202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Replace the double quotes with single quotes and here is the updated expression,&lt;/P&gt;&lt;P&gt;= (sum({&amp;lt;ItemCode={'F*'},WarehouseCode={'ZA01'}&amp;gt;} QtyOnHand)) / (sum({&amp;lt;ItemCode={'F*'}&amp;gt;} QtySold)/130)&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Haneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Aug 2010 09:59:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-04T09:59:42Z</dc:date>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241448#M502201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H4&gt;Good day everyone.&lt;/H4&gt;&lt;P&gt;I have the following fields: WarehouseCode, QtySold, QtyOnHand, ItemCode.&lt;/P&gt;&lt;P&gt;I have the following expression: (sum({&amp;lt;ItemCode={"F*"} , WarehouseCode={"ZA01"}&amp;gt;} (QtyOnHand))) / (sum({&amp;lt;ItemCode={"F*"}&amp;gt;} (QtySold))/130)&lt;/P&gt;&lt;P&gt;What I want to do is sum all the QtyOnHand for a specifice warehouse (ZA01) and divide it by the QtySold for ALL warehouses (Not only Warehouse ZA01). Note that I only need this for ItemCodes starting with an "F".&lt;/P&gt;&lt;P&gt;Please help me in adjusting my Set analysis in order to accomplish this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 09:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241448#M502201</guid>
      <dc:creator />
      <dc:date>2010-08-04T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241449#M502202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Replace the double quotes with single quotes and here is the updated expression,&lt;/P&gt;&lt;P&gt;= (sum({&amp;lt;ItemCode={'F*'},WarehouseCode={'ZA01'}&amp;gt;} QtyOnHand)) / (sum({&amp;lt;ItemCode={'F*'}&amp;gt;} QtySold)/130)&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Haneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 09:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241449#M502202</guid>
      <dc:creator />
      <dc:date>2010-08-04T09:59:42Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241450#M502203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Haneesh, but this is not working.&lt;/P&gt;&lt;P&gt;I need the calculation to only take the QtyOnHand of ZA01 &amp;amp; divide it by the QtySold of all the warehouses together (including ZA01).&lt;/P&gt;&lt;P&gt;You see ZA01 is a warehouse that only keeps stock, but does not sell stock.&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241450#M502203</guid>
      <dc:creator />
      <dc:date>2010-08-04T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241451#M502204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get sales for all warehouses you could do this:&lt;/P&gt;&lt;P&gt;WarehouseCode = {"*"}&lt;/P&gt;&lt;P&gt;or just ignore WarehouseCode in the set by doing this:&lt;/P&gt;&lt;P&gt;WarehouseCode = ,&lt;/P&gt;&lt;P&gt;Try incorportaing one of these into your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241451#M502204</guid>
      <dc:creator />
      <dc:date>2010-08-04T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241452#M502205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I think this would give you something like:&lt;/P&gt;&lt;P&gt;(SUM( {$&amp;lt; ItemCode = {'F*'}, WarehouseCode = {'ZA01'} &amp;gt;} QtyOnHand) /&lt;/P&gt;&lt;P&gt;SUM( {$&amp;lt; ItemCode = {'F*'}, WarehouseCode = {"*"} &amp;gt;} QtySold)) / 130&lt;/P&gt;&lt;P&gt;I'm not sure whether you are dividing the whole expression by 130 or just the 2nd part so you may need to adjust the parentheses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241452#M502205</guid>
      <dc:creator />
      <dc:date>2010-08-04T10:36:57Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241453#M502206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christo,&lt;/P&gt;&lt;P&gt;I may be wrong, but I'd try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;(sum({&amp;lt;ItemCode={"F*"} , WarehouseCode={"ZA01"}&amp;gt;} (QtyOnHand))) / (sum({&amp;lt;ItemCode={"F*"}&amp;gt;} TOTAL (QtySold))/130)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;specifying TOTAL meaning all QtySold wher ItemCode starts by F regardless the warehouse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241453#M502206</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-04T10:42:57Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241454#M502207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you try the following:&lt;/P&gt;&lt;P&gt;&amp;lt;Code&amp;gt;&lt;/P&gt;&lt;P&gt;= (sum({&amp;lt;ItemCode={'F*'},WarehouseCode={'ZA01'}&amp;gt;} QtyOnHand)) / (sum({&amp;lt;ItemCode={'F*'},WarehouseCode=&amp;gt;} QtySold)/130)&lt;/P&gt;&lt;P&gt;&amp;lt;/Code&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241454#M502207</guid>
      <dc:creator />
      <dc:date>2010-08-04T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Set analysis - Ignore selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241455#M502208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the help.&lt;/P&gt;&lt;P&gt;Miguel - Your code worked perfect. I tried it just as it is and it worked.&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 10:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Ignore-selection/m-p/241455#M502208</guid>
      <dc:creator />
      <dc:date>2010-08-04T10:57:04Z</dc:date>
    </item>
  </channel>
</rss>

