<?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: Sum excluding one dimension value from union select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839491#M1015181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, apologies I didn't see that the table needs to only have the purchased 'DeliveryNote' in there. What if you created an expression to hold your 'DeliveryNote' value? Then just move the column to the front of the table? Rather than it be&amp;nbsp; dimension. Then you wouldn't need to worry about the effect it would have on your other expressions - see attached for an example - it does assume you only have one 'DeliveryNote' number per batch/item however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 13:26:12 GMT</pubDate>
    <dc:creator>morganaaron</dc:creator>
    <dc:date>2015-04-15T13:26:12Z</dc:date>
    <item>
      <title>Sum excluding one dimension value from union select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839487#M1015172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, hope someone can help.&lt;/P&gt;&lt;P&gt;I've loaded a table with 4 fields (DeliveryNote, Item, BatchNumber, Weight ) from a union select stament which one i retrieve data from Purchase a Sales having in common the BatchNumber&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83733_Captura.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Something like that. What I want i a Straigth table with the following structure&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/83734_Captura.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I want to achive the sum of the weight for the sales excluding the value of the DeliveryNoet (Purchase). I don´t know how to set the analysis expression.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 12:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839487#M1015172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum excluding one dimension value from union select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839488#M1015173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weight Purchase: Sum({&amp;lt;Type={'Purchase'}&amp;gt;}Weight)&lt;/P&gt;&lt;P&gt;Weight Sales: Sum({&amp;lt;DeliveryNote, Type={'Sale'}&amp;gt;}Weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want the DeliveryNote to apply to Purchase, you can include that field in the set too. Simply stating the field means it will be ignored from the analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839488#M1015173</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-04-15T13:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum excluding one dimension value from union select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839489#M1015175</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;In front end&lt;/P&gt;&lt;P&gt;create Straight Table take dimension as required&lt;/P&gt;&lt;P&gt;in Expression&lt;/P&gt;&lt;P&gt;for&lt;/P&gt;&lt;P&gt;1)Purchase:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Type={'Purchase'}&amp;gt;}Weight)&lt;/P&gt;&lt;P&gt;2)Sale :&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Type={'Sale'}&amp;gt;}Weight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in back end modify script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,Weight as Purchase_Weight from table where type='Purchase'&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;Load *,Weight as Sale_Weight from table where type='Sale'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use Purchase_weight and Sale_Weight as your new Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839489#M1015175</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-15T13:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum excluding one dimension value from union select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839490#M1015178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your time, but I doesn't since the dimension of the DeliveryNote is this one:&lt;/P&gt;&lt;P&gt;=If((Date&amp;gt;=$(minDate) AND Date&amp;lt;=$(maxDate)) AND (Type="Purchase') , DeliveryNote) because I want to show the in the dimensions only the Purchase Delivery Notes, and hence, the rows of the Sales are excluded.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I would like to get per row the sum of the weigth of the sales with the same BatchNumber that the purchase but avoiding the current selection of the purchase.&lt;/P&gt;&lt;P&gt;I don't know if possible. If not I'll try in the load statement.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839490#M1015178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T13:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum excluding one dimension value from union select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839491#M1015181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, apologies I didn't see that the table needs to only have the purchased 'DeliveryNote' in there. What if you created an expression to hold your 'DeliveryNote' value? Then just move the column to the front of the table? Rather than it be&amp;nbsp; dimension. Then you wouldn't need to worry about the effect it would have on your other expressions - see attached for an example - it does assume you only have one 'DeliveryNote' number per batch/item however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-excluding-one-dimension-value-from-union-select/m-p/839491#M1015181</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-04-15T13:26:12Z</dc:date>
    </item>
  </channel>
</rss>

