<?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: How to exclude one item in selection ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526585#M479772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can I test the selection in the variable (i'm really beginner in QV), I tried the following but it does not work:&lt;/P&gt;&lt;P&gt;=if(SubStringCount(Getcurrentselections([Store Category]),'WHS')=1,'{&amp;lt;[Store Category]=&amp;gt;}','Getcurrentselections([Store Category])')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2014 03:42:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-20T03:42:03Z</dc:date>
    <item>
      <title>How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526583#M479770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a analysis for Retail business.&lt;/P&gt;&lt;P&gt;We have several Point of Sales (POS). These POS have sales and stock, therefore 1 POS can have SALES and STOCK data.&lt;/P&gt;&lt;P&gt;Regarding the stock, we also have a central warehouse. We treat it as a POS. So it can have stock data but NO sales data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a chart to display Sales qty over a selected period and POS. What I want is: if the user select our Warehouse in the POS list ==&amp;gt; display the total sales qty (for all POS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart expression, i tried:&lt;/P&gt;&lt;P&gt;=sum([Sold Qty])&lt;/P&gt;&lt;P&gt;=&amp;gt; if user select a POS and the wharehouse, it displays the sales for the selected POS: good&lt;/P&gt;&lt;P&gt;=&amp;gt; But if the user select only warehouse, there is no display (=&amp;gt; I want to display sales for all POS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Store Category] -={warehouse}&amp;gt;}[Sold Qty])&lt;/P&gt;&lt;P&gt;=&amp;gt; if user select a POS and the wharehouse, it displays the sales for the selected POS: good&lt;/P&gt;&lt;P&gt;=&amp;gt; But if the user select only warehouse, there is also no display ! or it should be equal to: sum({&amp;lt;[Store Category]=&amp;gt;}[Sold Qty]), right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried: sum({&amp;lt;[Store Category] ={*}-{warehouse}&amp;gt;}[Sold Qty]), but it's same as the previous one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 09:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526583#M479770</guid>
      <dc:creator />
      <dc:date>2014-01-17T09:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526584#M479771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cyril,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, you need two steps:&lt;/P&gt;&lt;P&gt;1) create a variable that will test the presence of the WareHouse (or just the WH)&lt;/P&gt;&lt;P&gt;sth like (here I test the presence of the ClientID Nr 4 : I want to get ALL in that case):&lt;/P&gt;&lt;P&gt;vTest = &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ClientID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ';'), 4)&amp;gt;0, '{&amp;lt;ClientID=&amp;gt;}') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;As you see, you get part of the Set Analysis in case of sth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;2) Sum($(vtest) Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 10:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526584#M479771</guid>
      <dc:creator />
      <dc:date>2014-01-17T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526585#M479772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how can I test the selection in the variable (i'm really beginner in QV), I tried the following but it does not work:&lt;/P&gt;&lt;P&gt;=if(SubStringCount(Getcurrentselections([Store Category]),'WHS')=1,'{&amp;lt;[Store Category]=&amp;gt;}','Getcurrentselections([Store Category])')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 03:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526585#M479772</guid>
      <dc:creator />
      <dc:date>2014-01-20T03:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526586#M479773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cyril,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try what I proposed ?&lt;/P&gt;&lt;P&gt;Replace ClientID with your dimension, and 4 with your value you want to test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact? i do not know how to answer your question with built-in QV functions. I tried but without success in all cases..Now, I create a string (with concat), I test that the string contains (or not) what I am looking for with index(), or match() functions. If I want the 3d value, I use subfield() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 08:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526586#M479773</guid>
      <dc:creator />
      <dc:date>2014-01-20T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526587#M479774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Assume the field of the POS list is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Store Category] and the value &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Warehouse is in it &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this expression&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Store Category]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;='Warehouse'&lt;/SPAN&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt; sum({&amp;lt;[Store Category]=&amp;gt;}[Sold Qty]),&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;sum([Sold Qty]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;&amp;nbsp;&amp;nbsp; test it very well if it suits your other filters&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526587#M479774</guid>
      <dc:creator />
      <dc:date>2014-01-20T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude one item in selection ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526588#M479775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your expression can you please try like below. I think you did it but just need to add quotes.&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Store Category] ={'*'}-{'warehouse'}&amp;gt;}[Sold Qty])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 11:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-one-item-in-selection/m-p/526588#M479775</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-01-20T11:08:01Z</dc:date>
    </item>
  </channel>
</rss>

