<?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 filter invoices based on items inside in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255265#M1205974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you load a concatenated string of items for each invoice and then rule invoices out that contain your unwanted items?&lt;/P&gt;&lt;P&gt;Not sure about your requirements but can you use the items count in the invoice and rule out the ones having more than one item?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 10:11:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-04T10:11:54Z</dc:date>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255260#M1205969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;My question is probably easy enough and I hope you don't blame my ignorance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, let's suppose that we have a simple table with the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVOICE NO. ITEM AMOUNT&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;111 AAA 10&lt;/P&gt;&lt;P&gt;111 BBB 15&lt;/P&gt;&lt;P&gt;222 AAA 5&lt;/P&gt;&lt;P&gt;333 CCC 17&lt;/P&gt;&lt;P&gt;333 BBB 4&lt;/P&gt;&lt;P&gt;444 AAA 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to count all invoices which contain AAA items, but do NOT contain BBB items.&lt;/P&gt;&lt;P&gt;I guess that I maybe have to use aggr() here, but I do not quite realize how to do it.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 08:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255260#M1205969</guid>
      <dc:creator />
      <dc:date>2010-05-04T08:12:00Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255261#M1205970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use this COUNT(if(Item = 'AAA',Invoice))&lt;/P&gt;&lt;P&gt;-Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 08:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255261#M1205970</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2010-05-04T08:38:47Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255262#M1205971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution seems obvious, but I think that this way I will count invoice 111 and that would be wrong...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 08:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255262#M1205971</guid>
      <dc:creator />
      <dc:date>2010-05-04T08:44:36Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255263#M1205972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gmanoilov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data in the same structure as you habe illustrated? Or is the structure a bit different?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 09:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255263#M1205972</guid>
      <dc:creator />
      <dc:date>2010-05-04T09:23:25Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255264#M1205973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;In fact, the physical tables in the source database are different.&lt;/P&gt;&lt;P&gt;We have a table with the general invoice data (eg. creation date, place of delivery, etc.), then we have another table with the item details (it contains records for all items in all invoices) and we have a third table that contains foreign keys to link the first two tables.&lt;/P&gt;&lt;P&gt;But is this really important?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 09:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255264#M1205973</guid>
      <dc:creator />
      <dc:date>2010-05-04T09:31:41Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255265#M1205974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Can you load a concatenated string of items for each invoice and then rule invoices out that contain your unwanted items?&lt;/P&gt;&lt;P&gt;Not sure about your requirements but can you use the items count in the invoice and rule out the ones having more than one item?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 10:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255265#M1205974</guid>
      <dc:creator />
      <dc:date>2010-05-04T10:11:54Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255266#M1205975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I wanted to confirm was whether all the items are stated against an Invoice&lt;/P&gt;&lt;P&gt;eg INVOICE # 111 would have AAA &amp;amp; BBB both written in front of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case then you can use Index function to find the location of required names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 10:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255266#M1205975</guid>
      <dc:creator />
      <dc:date>2010-05-04T10:17:13Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255267#M1205976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I cannot just rule out invoices with more that one item, because I can have invoices with items AAA and CCC (and even DDD and etc.) and they should still be taken into account.&lt;/P&gt;&lt;P&gt;Maybe the concatenation idea would work, but I will be much more happy if it could be done with a simple combination of aggregation and conditional functions in the chart...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 10:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255267#M1205976</guid>
      <dc:creator />
      <dc:date>2010-05-04T10:19:22Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255268#M1205977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Umang!&lt;/P&gt;&lt;P&gt;I am not sure what you mean by "written in front of it", but yes, all items are linked to an invoice using primary and foreign keys in the database. I do not know much about the index function, so I will go and read. (I am not very optimistic, though) Then I will post back my comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 10:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255268#M1205977</guid>
      <dc:creator />
      <dc:date>2010-05-04T10:22:56Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255269#M1205978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What I mean to ask is whether your data is in this format ( or can be brought into this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;width:285pt;" width="381"&gt;&lt;COL span="3" style="width:95pt;" width="127" /&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="height:15pt;width:95pt;" width="127"&gt;INVOICE&lt;/TD&gt;&lt;TD class="xl64" style="width:95pt;" width="127"&gt;ITEM&lt;/TD&gt;&lt;TD class="xl64" style="width:95pt;" width="127"&gt;AMOUNT&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="height:15pt;"&gt;111&lt;/TD&gt;&lt;TD class="xl64"&gt;AAA,BBB&lt;/TD&gt;&lt;TD class="xl64"&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="height:15pt;"&gt;222&lt;/TD&gt;&lt;TD class="xl64"&gt;AAA&lt;/TD&gt;&lt;TD class="xl64"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="height:15pt;"&gt;333&lt;/TD&gt;&lt;TD class="xl64"&gt;CCC,BBB&lt;/TD&gt;&lt;TD class="xl64"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="height:15pt;"&gt;444&lt;/TD&gt;&lt;TD class="xl64"&gt;AAA&lt;/TD&gt;&lt;TD class="xl64"&gt;&lt;P&gt;32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255269#M1205978</guid>
      <dc:creator />
      <dc:date>2010-05-04T11:04:31Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255270#M1205980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;No, the data is not in this format, but it could probably be treated this way by concatenation.&lt;/P&gt;&lt;P&gt;However, I find this approach somehow not so elegant, having in mind the rules for relational database design... and I still struggle to find a function to do the necessary filter.&lt;/P&gt;&lt;P&gt;At the end of the day, I will obviously have to try with the concatenation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 11:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255270#M1205980</guid>
      <dc:creator />
      <dc:date>2010-05-04T11:08:02Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255271#M1205981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;the expression&lt;/P&gt;&lt;P&gt;if (substringcount(aggr(concat(ITEM),INVOICE),'BBB')=0,sum(Amount))&lt;/P&gt;&lt;P&gt;will give you the amount for invoices not containing 'BBB'&lt;/P&gt;&lt;P&gt;Be careful with the string comparison, BBBB will also be considered BBB. You might want to have delimiters at start and end and of concat string and also in the item, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;substringcount( ',AAA,BBB,', ',BBB,')&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Juerg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 13:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255271#M1205981</guid>
      <dc:creator />
      <dc:date>2010-05-04T13:25:53Z</dc:date>
    </item>
    <item>
      <title>filter invoices based on items inside</title>
      <link>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255272#M1205982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thanks for this suggestion, I would not be able to imagine it myself.&lt;/P&gt;&lt;P&gt;I will give it a try and then I will post back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-invoices-based-on-items-inside/m-p/255272#M1205982</guid>
      <dc:creator />
      <dc:date>2010-05-05T10:11:18Z</dc:date>
    </item>
  </channel>
</rss>

