<?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 Help with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288169#M1201354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;I think it would be helpful to upload a small sample of what you're working on in a QlikView file with a excel table of the result you want because you've been battling with this for a couple days and nobody seems to completely understand the problem to help you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Nov 2010 17:04:07 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-11-12T17:04:07Z</dc:date>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288164#M1201349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to write an expression to show: sum(SalesQuantity) but to ignore a dimension (PriceOverride). I have not not a clue how to write this, can anyone help please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288164#M1201349</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-12T16:13:54Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288165#M1201350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you mean a selection in the field PriceOverride, then:&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;PriceOverride=&amp;gt;} SalesQuantity)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288165#M1201350</guid>
      <dc:creator />
      <dc:date>2010-11-12T16:18:57Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288166#M1201351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nick,&lt;/P&gt;&lt;P&gt;No, i mean to ignore the dimension completely. Basically i have a calculated dimension which is hidden, so the user cannot select it anyway. The dimension is written to only display PriceOverrides which = yes, then i have ticked the 'Supress When Value is Null' option. I need to show sales no matter what the PriceOverride is equal to, so that is why i need an expression to completely ignore that dimension.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288166#M1201351</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-12T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288167#M1201352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot ignore a dimension in a chart. There is a possibility to sum(total &amp;lt;fields&amp;gt;). Or you can Show Partial Sums for the dimension PriceOverride if you use Pivot Chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288167#M1201352</guid>
      <dc:creator />
      <dc:date>2010-11-12T16:41:28Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288168#M1201353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;No that won't work for me as it shows the sum of salesquantity or ALL customers instead of seperating them.&lt;/P&gt;&lt;P&gt;In QLIKVIEW help - Set analysis, there is an expression which returns total sales within the application, disregarding both selection and &lt;STRONG&gt;dimension&lt;/STRONG&gt;. sum( {1} Total Sales )&lt;/P&gt;&lt;P&gt;So if ALL dimesions can be ignored, surely there is a way to only ignore one dimension??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 16:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288168#M1201353</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-12T16:53:11Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288169#M1201354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;I think it would be helpful to upload a small sample of what you're working on in a QlikView file with a excel table of the result you want because you've been battling with this for a couple days and nobody seems to completely understand the problem to help you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 17:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288169#M1201354</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-11-12T17:04:07Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288170#M1201355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 17:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288170#M1201355</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-12T17:19:45Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288171#M1201356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace your calculated price override dimension with field PriceOverride. Change expressions to these:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(PriceOverride='yes',sum({&amp;lt;LineType-={'V'}&amp;gt;} [Reduced Quantity]))&lt;BR /&gt;if(PriceOverride='yes',(CurrentRSP-ItemPrice)*Sum(SalesQuantity))&lt;BR /&gt;if(PriceOverride='yes',sum({&amp;lt;LineType-={'V'}&amp;gt;} total &amp;lt;Customer&amp;gt; SalesQuantity ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 19:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288171#M1201356</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-12T19:36:51Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288172#M1201358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, thanks for your reply. How would i then only display PriceOvverrides =yes? I don't want to display any of the PriceOverrides=no.&lt;/P&gt;&lt;P&gt;This part of the app i am writing is for Reduced to Clear sales, so when the user maximises the Reduced to Clear chart i only want it to display Reduced to Clear sales without having the user to make selections.&lt;/P&gt;&lt;P&gt;But i still need ALL sales to be loaded in, as other charts in this app will relate to different sales.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 12:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288172#M1201358</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-13T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288173#M1201360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since none of the expressions above will return a value for a PriceOverrride='no', then the default suppression of nulls should remove those rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 18:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288173#M1201360</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-15T18:41:45Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288174#M1201361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John,&lt;/P&gt;&lt;P&gt;I don't think i explained what i wanted very well...&lt;BR /&gt;I have attached a sample...&lt;BR /&gt;If you look at the sample, you can see that it is displaying PriceOverrides for both 'yes' and 'no'. I only want it to display the sales relating to 'yes'.&lt;BR /&gt;With it how it is, the 'Total Sales' figure is correct. i.e.&lt;/P&gt;&lt;P&gt;3&lt;BR /&gt;6&lt;BR /&gt;9&lt;BR /&gt;2&lt;/P&gt;&lt;P&gt;I can't see a way of hiding the PriceOverrides = 'no' unless i add in a calculated dimension&lt;BR /&gt;&lt;STRONG&gt;IF((PriceOverride = 'yes' ), PriceOverride)&lt;BR /&gt;&lt;/STRONG&gt;then ticking 'Suppress null vales', but if i do that, the 'Total Sales' change and only total the Reduced Sales.&lt;BR /&gt;What i want is to only display sales relating to PriceOverrides = 'yes' but for the 'Total Sales' to be unaffected and actually show the full sales as it does when both PriceOverrides = 'yes' and 'no'&lt;BR /&gt;Do you know how i can achieve this please?&lt;BR /&gt;Thanks for your help&lt;BR /&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 14:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288174#M1201361</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-16T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288175#M1201363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;hopkinsc wrote:Do you know how i can achieve this please?&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Had you applied my fix to the sample file you posted, and not to some new file, you would have seen that it worked. Your original example had three expressions. The expressions I gave nulled out the values if the price override isn't 'yes'. Therefore those rows were suppressed.&lt;/P&gt;&lt;P&gt;But instead you made a new example with FIVE expressions. So now you need to do the same thing for the expressions you've added in your new example. In other words, follow the pattern indicated by the three expressions I gave you:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(PriceOverride='yes', YourCurrentExpression)&lt;/P&gt;&lt;P&gt;Also, you have an expression that is very specifically looking for a price override of 'no'. That needs to be removed, as it is meaningless if you're intending to remove those rows.&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 19:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288175#M1201363</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-16T19:35:16Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288176#M1201365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thanks for your help, sorry about the expressions, i meant to disable them before posting the example.&lt;/P&gt;&lt;P&gt;I have copied what you have posted and it works great for the current selections. But i have noticed that the total sales are wrong if i clear the selections and look at more than one product at a time. As soon as i select ONE product again, the sales are correct.&lt;/P&gt;&lt;P&gt;I have attached another sample, I can't figure out ehy it is correct when looking at individual products but incorrect when looking at multiple products.&lt;/P&gt;&lt;P&gt;Thanks for your help again.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 10:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288176#M1201365</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-11-18T10:57:23Z</dc:date>
    </item>
    <item>
      <title>Help with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288177#M1201366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The underlined bit...&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(PriceOverride='yes',sum({&amp;lt;LineType-={'V'}&amp;gt;} &lt;STRONG&gt;total &amp;lt;Customer&amp;gt;&lt;/STRONG&gt; SalesQuantity))&lt;/P&gt;&lt;P&gt;...says we want to ignore all dimensions but Customer. So one of the dimensions we're ignoring is the product, so that's why you're seeing what you're seeing. I only listed Customer because you specifically said you wanted to separate the customers, and because that was sufficient to give the correct results in your original sample file. It sounds like you want to add at least add Product to that list. There may be other dimensions from your chart that you want to include as well. Perhaps even ALL of them EXCEPT for PriceOverride:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(PriceOverride='yes',sum({&amp;lt;LineType-={'V'}&amp;gt;} &lt;STRONG&gt;total &amp;lt;Customer, [Product Code], [Prod Desc], EAN, Size, Narrative, CurrentRSP, ItemPrice&amp;gt;&lt;/STRONG&gt; SalesQuantity))&lt;/P&gt;&lt;P&gt;You've also now removed PriceOverride as a dimension, which will probably cause serious problems with the if(). If any of these rows have both price override 'yes' and price override 'no', then they'll be excluded. You won't see just the 'yes' data. If you don't want to see the price override column, hide it on the presentation tab instead of removing it, because how I wrote the expressions depends on it. There's probably also a solution that doesn't require it, but I don't feel like starting over.&lt;/P&gt;&lt;P&gt;I recommend reading help or the reference manual or whatever to try to figure out what the code I posted is doing and how it's doing it. That should help you adapt it to your real situation as you add other dimensions and expressions and rows of data that weren't in the original example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 18:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Set-Analysis/m-p/288177#M1201366</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-18T18:28:17Z</dc:date>
    </item>
  </channel>
</rss>

