<?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 Creating Exception List in QV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220230#M73162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one seems like it should be easier than it is. Fortunately, you've posted the data, so I was able to try multiple solutions.&lt;/P&gt;&lt;P&gt;I've attached a sample of what I have come up with. So far, it only works when one and only one product is selected. I am using nested ifs to get the list of those that have purchased nothing and the list of those that have purchased something, but not the selected product.&lt;/P&gt;&lt;P&gt;The list of those who have purchased nothing should be:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count({1}DISTINCT BRDESC)=0,1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;To get both sets, I used:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count({1}DISTINCT BRDESC)=0, 'Nothing',&lt;BR /&gt;If(Count({1-&amp;lt;BRDESC={'$(=GetFieldSelections(BRDESC))'}&amp;gt;}&lt;BR /&gt;DISTINCT BRDESC)&amp;gt;0, 'Not Selected')&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It seems like you should be able to modify this to work with 0 or more than 1 selection, but I got stuck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 20:45:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-05T20:45:36Z</dc:date>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220222#M73154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have attached a sample QVW document with my post. I want to do something that I believe is really simple but don't know how to do because i'm still new to the qlikview technology. In the attached Test.QVW file you can see that there is a list of Retail Accounts that purchased the LIGHT product. I want to know how can I do the reverse and create a chart that lists all the Retail Accounts that DID NOT purchase LIGHT (or whatever product I select).&lt;/P&gt;&lt;P&gt;Can someone please assist me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 04:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220222#M73154</guid>
      <dc:creator />
      <dc:date>2010-04-21T04:45:32Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220223#M73155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on how you want your selections to influence your results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either right click on your BRDESC list box and select 'Select Excluded'.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;You can build a new list box with an expression: =If(BRDESC = 'LIGHT','LIGHT','NOT LIGHT').&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;You can create the condition in the expression on the Amount straight table: =sum (If(BRDESC &amp;lt;&amp;gt; 'LIGHT',RSQTY))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 04:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220223#M73155</guid>
      <dc:creator />
      <dc:date>2010-04-21T04:52:42Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220224#M73156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quick reply, but I believe your answer only gives me a result that provides me with a list of records that didn't buy LIGHT but bought at least one of the other brands. I am interested in generating a result set that provides me with a list of retail accounts that didn't buy any product at all. Essentially providing me with a list of retail accounts where our product has never been sold into.&lt;/P&gt;&lt;P&gt;If you could offer some help, it would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 05:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220224#M73156</guid>
      <dc:creator />
      <dc:date>2010-04-21T05:27:47Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220225#M73157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;BR /&gt;If I understand correctly what you need (as a rule I do not download files), a calculated list box with set analysis expression should help:&lt;BR /&gt;&lt;STRONG&gt;=aggr(only({1-$} Account),Account)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 17:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220225#M73157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-23T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220226#M73158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would insert a statement like this:&lt;/P&gt;&lt;P&gt;count(distinct(if(len(BRDESC)=0,[Doing Business As])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 10:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220226#M73158</guid>
      <dc:creator />
      <dc:date>2010-04-26T10:28:14Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220227#M73159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DK_ASN,&lt;/P&gt;&lt;P&gt;Thanks for offering me your advice, however the solution doesn't seem to work, or I'm just not understanding what it's doing.&lt;/P&gt;&lt;P&gt;In my example, I'm trying to figure out how to generate an account list of customers who have never purchased one of our products (BRDESC). Using QV, it is easy to generate account lists of customers who have purchased a product or who have purchased all other products but the one selected (i.e. using the Select Excluded option when right clicking).&lt;/P&gt;&lt;P&gt;I'm struggling with generating an account list or a count of customers who have not purchased anything at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 16:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220227#M73159</guid>
      <dc:creator />
      <dc:date>2010-04-26T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220228#M73160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;Please take a look at the enclosed where there is a table showing customers who have never bought anything at all. I have also added your Key1 in the table as that makes a difference in number of customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 06:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220228#M73160</guid>
      <dc:creator />
      <dc:date>2010-04-27T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220229#M73161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ninja,&lt;/P&gt;&lt;P&gt;Thanks for your assistance. One thing that doesn't make sense to me in your qv document is that the time dimension doesn't work with the non-buying customer list. If I select a month, no accounts show up in the exception list and this is not true of the data or of the business. Can you offer some insight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220229#M73161</guid>
      <dc:creator />
      <dc:date>2010-05-05T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220230#M73162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one seems like it should be easier than it is. Fortunately, you've posted the data, so I was able to try multiple solutions.&lt;/P&gt;&lt;P&gt;I've attached a sample of what I have come up with. So far, it only works when one and only one product is selected. I am using nested ifs to get the list of those that have purchased nothing and the list of those that have purchased something, but not the selected product.&lt;/P&gt;&lt;P&gt;The list of those who have purchased nothing should be:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count({1}DISTINCT BRDESC)=0,1)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;To get both sets, I used:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count({1}DISTINCT BRDESC)=0, 'Nothing',&lt;BR /&gt;If(Count({1-&amp;lt;BRDESC={'$(=GetFieldSelections(BRDESC))'}&amp;gt;}&lt;BR /&gt;DISTINCT BRDESC)&amp;gt;0, 'Not Selected')&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It seems like you should be able to modify this to work with 0 or more than 1 selection, but I got stuck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220230#M73162</guid>
      <dc:creator />
      <dc:date>2010-05-05T20:45:36Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220231#M73163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;Unless I have misunderstod your latest post completely regarding the fact that the time dimension doesn't work with the non-buying customer list, it is because time dimension is the time of purchase it seems.&lt;/P&gt;&lt;P&gt;So when you select e.g. January, you choose to see who have bought products in January and what were these products. As the customers in your list of non-buying customers never have bought anything the list will be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 07:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220231#M73163</guid>
      <dc:creator />
      <dc:date>2010-05-06T07:03:55Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220232#M73164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DK_ASN,&lt;/P&gt;&lt;P&gt;The solution offered on this thread is close and I don't think I was clear on my description of my problem. The time dimension is important to what I hope to achieve. For our business I would like to know all the customers that didn't buy any product. They may have purchased at some point in time or never at all. For example, If I select a time period of January 2010. I would like to see the list of customers that didn't buy any product in that month. They may have purchased in other months, or never purchased any product at all.&lt;/P&gt;&lt;P&gt;Right now I can do the following:&lt;/P&gt;&lt;P&gt;1. I can determine at any point in time, which customers have bought a product but not others. I achieve this by using the "select excluded" option&lt;/P&gt;&lt;P&gt;2. With NMiller's help (ninja), i am now able to generate a list of customers who never bought any product at all but it does not take into account the time I am filtering for.&lt;/P&gt;&lt;P&gt;Both these solutions does not help me to answer a question like:&lt;/P&gt;&lt;P&gt;"How many accounts didn't buy any of our products in January 2010".&lt;/P&gt;&lt;P&gt;(They may have bought our product/products at other times, but I'm only interested to see those that didn't buy any of our products in Jan 2010).&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;"How many accounts didn't buy our 6pk Mike's Hard Lemonade product in January 2010".&lt;/P&gt;&lt;P&gt;(They may have bought other products in Jan 2010 (or some other time), or they may have bought none of our products at all in Jan 2010 (or some other time))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220232#M73164</guid>
      <dc:creator />
      <dc:date>2010-05-06T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220233#M73165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, here is a pa&lt;/P&gt;&lt;P&gt;rticularly terrible expression that should take into account the BRDESC, YEAR and MONTH:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Count(&lt;BR /&gt;{1&amp;lt;YEAR={'$(=GetFieldSelections(YEAR))'},&lt;BR /&gt;MONTH={'$(=GetFieldSelections(MONTH))'}&amp;gt;}&lt;BR /&gt;DISTINCT BRDESC)=0, 'Nothing',&lt;BR /&gt;If(Count(&lt;BR /&gt;{1-&amp;lt;BRDESC={'$(=GetFieldSelections(BRDESC))'},&lt;BR /&gt;YEAR={'$(=GetFieldSelections(YEAR))'},&lt;BR /&gt;MONTH={'$(=GetFieldSelections(MONTH))'}&amp;gt;}&lt;BR /&gt;DISTINCT BRDESC)&amp;gt;0, 'Not Selected')&lt;BR /&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Use it in place of the expression on the second tab of my last example. This only works for one selection (and only one selection) on those fields. I don't think this is the proper way to do it though. I thought there was a way to ignore selections using {1}, but then respect certain selections (it's not &amp;lt;Year=&amp;gt;). Finding the right way may get rid of the requirement of having one and only one selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 19:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220233#M73165</guid>
      <dc:creator />
      <dc:date>2010-05-06T19:58:14Z</dc:date>
    </item>
    <item>
      <title>Creating Exception List in QV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220234#M73166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ninja,&lt;/P&gt;&lt;P&gt;I'm still struggling with this. For example (in the qvw that isattached):&lt;/P&gt;&lt;P&gt;There is an Applebees - Aubern (on 1441 D ST NE, Auburn) that purchased 1 case of Lemonade in March 2010. This same restaurant did not buy anything in Feb 2010.&lt;/P&gt;&lt;P&gt;Using your code, I would expect that based on the following selection criteria&lt;/P&gt;&lt;P&gt;Doing Business As: APPLEBEES-AUBURN&lt;BR /&gt;BRDESC = Lemonae&lt;BR /&gt;YEAR = 2010&lt;BR /&gt;MONTH = Feb&lt;/P&gt;&lt;P&gt;this account should show up under 'NOTHING'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If the selection critera read&lt;/P&gt;&lt;P&gt;Doing Business As: APPLEBEES-AUBURN&lt;BR /&gt;BRDESC = Lemonae&lt;BR /&gt;YEAR = 2010&lt;BR /&gt;MONTH = MARCH&lt;/P&gt;&lt;P&gt;this account should show up under 'NOT SELECTED'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The code you gave me results in this account not showing up at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 23:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Exception-List-in-QV/m-p/220234#M73166</guid>
      <dc:creator />
      <dc:date>2010-05-17T23:52:31Z</dc:date>
    </item>
  </channel>
</rss>

