<?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/652115#M238412</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;I need some help with a set analysis expression that I can't build by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the deal :&lt;/P&gt;&lt;P&gt;- In one hand, I have some products in my stock. Each product has its own "p_id", and a reference "ref"&lt;/P&gt;&lt;P&gt;- On the other hand, I have some wishes "w_id" from customers on differents references "ref"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;products:&lt;/P&gt;&lt;P&gt;LOAD * inline [p_id,ref&lt;/P&gt;&lt;P&gt;P1,REF A&lt;/P&gt;&lt;P&gt;P2,REF A&lt;/P&gt;&lt;P&gt;P3,REF B&lt;/P&gt;&lt;P&gt;P4,REF C&lt;/P&gt;&lt;P&gt;P5,REF C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wishes:&lt;/P&gt;&lt;P&gt;LOAD * inline [w_id,ref&lt;/P&gt;&lt;P&gt;W1,REF A&lt;/P&gt;&lt;P&gt;W2,REF A&lt;/P&gt;&lt;P&gt;W3,REF A&lt;/P&gt;&lt;P&gt;W4,REF A&lt;/P&gt;&lt;P&gt;W5,REF B&lt;/P&gt;&lt;P&gt;W6,REF D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact is that some wishes will not be satisfied because I have not enough stock of the wish reference&lt;/P&gt;&lt;P&gt;My problem is to evaluate with a single expression the number of wishes that could be satisfied. In the example above, it would be 3 (2 wishes for the "REF A" and 1 wish for the "REF B").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use a graphic (I know how to do that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure it's possible, but I really don't know how ! Thx for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 13:15:03 GMT</pubDate>
    <dc:creator>slefranc</dc:creator>
    <dc:date>2014-06-10T13:15:03Z</dc:date>
    <item>
      <title>Help with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/652115#M238412</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;I need some help with a set analysis expression that I can't build by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the deal :&lt;/P&gt;&lt;P&gt;- In one hand, I have some products in my stock. Each product has its own "p_id", and a reference "ref"&lt;/P&gt;&lt;P&gt;- On the other hand, I have some wishes "w_id" from customers on differents references "ref"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;products:&lt;/P&gt;&lt;P&gt;LOAD * inline [p_id,ref&lt;/P&gt;&lt;P&gt;P1,REF A&lt;/P&gt;&lt;P&gt;P2,REF A&lt;/P&gt;&lt;P&gt;P3,REF B&lt;/P&gt;&lt;P&gt;P4,REF C&lt;/P&gt;&lt;P&gt;P5,REF C&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wishes:&lt;/P&gt;&lt;P&gt;LOAD * inline [w_id,ref&lt;/P&gt;&lt;P&gt;W1,REF A&lt;/P&gt;&lt;P&gt;W2,REF A&lt;/P&gt;&lt;P&gt;W3,REF A&lt;/P&gt;&lt;P&gt;W4,REF A&lt;/P&gt;&lt;P&gt;W5,REF B&lt;/P&gt;&lt;P&gt;W6,REF D&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact is that some wishes will not be satisfied because I have not enough stock of the wish reference&lt;/P&gt;&lt;P&gt;My problem is to evaluate with a single expression the number of wishes that could be satisfied. In the example above, it would be 3 (2 wishes for the "REF A" and 1 wish for the "REF B").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use a graphic (I know how to do that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure it's possible, but I really don't know how ! Thx for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-set-analysis/m-p/652115#M238412</guid>
      <dc:creator>slefranc</dc:creator>
      <dc:date>2014-06-10T13:15:03Z</dc:date>
    </item>
  </channel>
</rss>

