<?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 select sales order containing selected item code from a listbox (in AND logic) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1987921#M81648</link>
    <description>&lt;P&gt;This is default Qlik behavior , measures will evaluate for selected values&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Assuming your data is properly associated&lt;/U&gt;, you just need to have a chart as below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;: ItemCode&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure: sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Can you post a screenshot of your data model?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=DuULZtyjrqU" target="_blank"&gt;https://www.youtube.com/watch?v=DuULZtyjrqU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 01:47:18 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-10-03T01:47:18Z</dc:date>
    <item>
      <title>How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986617#M81528</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'd need to select the sales orders that contains the selected item code from a listbox.&lt;BR /&gt;Ex. if the user selects item code 100 and 200 from the listbox, then the expected result should be the sales order that contains both item code that is 100 &lt;STRONG&gt;AND&lt;/STRONG&gt; 200.&lt;BR /&gt;Could someone help me to achieve it?&lt;BR /&gt;Many thanks in advance for your time.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_blank"&gt;@sunny_talwar&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622" target="_blank"&gt;@hic&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6748" target="_blank"&gt;@stevedark&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624" target="_blank"&gt;@Gysbert_Wassenaar&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593" target="_blank"&gt;@rubenmarin&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5400" target="_blank"&gt;@Thiago_Justen_&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533" target="_blank"&gt;@Anil_Babu_Samineni&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28684" target="_blank"&gt;@kaushiknsolanki&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038" target="_blank"&gt;@marcus_sommer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949" target="_blank"&gt;@tresesco&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 12:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986617#M81528</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-09-30T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986650#M81532</link>
      <description>&lt;P&gt;Hi, you can achieve that using get field selection function and if and else condition. Maybe like this;&lt;/P&gt;
&lt;P&gt;if (GetFieldSelections(field1)&amp;gt;1, Sum({&amp;lt;itemcode ={'GetFieldSelections(field1)'}&amp;gt;}Sales)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 16:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986650#M81532</guid>
      <dc:creator>deepanshuSh</dc:creator>
      <dc:date>2022-09-28T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986660#M81533</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/157695"&gt;@deepanshuSh&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;It's not what I'm looking for.&lt;BR /&gt;I'd need a table with sales order number as dimension and sales amount as measure.&lt;BR /&gt;The sales orders showed must contain all item code selected from the listbox by the user (ex. item code 100 AND item code 200) within its rows.&lt;BR /&gt;I hope now is more clear.&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 16:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1986660#M81533</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-09-28T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1987921#M81648</link>
      <description>&lt;P&gt;This is default Qlik behavior , measures will evaluate for selected values&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Assuming your data is properly associated&lt;/U&gt;, you just need to have a chart as below&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;: ItemCode&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure: sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Can you post a screenshot of your data model?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=DuULZtyjrqU" target="_blank"&gt;https://www.youtube.com/watch?v=DuULZtyjrqU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 01:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1987921#M81648</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-03T01:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1988074#M81661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;My request was a little different...&lt;BR /&gt;I'd need to apply an &lt;STRONG&gt;AND&lt;/STRONG&gt; logic for the selected values in order to find only the sales orders with ALL product items selected.&lt;BR /&gt;I know the default behavior is with &lt;STRONG&gt;OR&lt;/STRONG&gt; logic for the selected items.&lt;BR /&gt;example:&lt;BR /&gt;order number, product item&lt;BR /&gt;100, A&lt;BR /&gt;100, B&lt;BR /&gt;200, C&lt;BR /&gt;200, D&lt;BR /&gt;300, B&lt;/P&gt;
&lt;P&gt;if the user select product item A and B&amp;nbsp; I'd expect to see only the order number 100, while Qlik shows also the order number 300.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 10:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1988074#M81661</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-03T10:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989440#M81777</link>
      <description>&lt;P&gt;Try below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All selected&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;Ordernumber={"&lt;STRONG&gt;=count({&amp;lt;item&amp;gt;}Distinct item)=getselectedcount(item)&lt;/STRONG&gt;"}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All selected plus others not selected&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;Ordernumber={"&lt;STRONG&gt;=count(Distinct item)=getselectedcount(item)&lt;/STRONG&gt;"}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989440#M81777</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-06T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989519#M81785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to take care of all specific item code selected not only of their quantity (count distinct item).&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 10:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989519#M81785</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-06T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989574#M81787</link>
      <description>&lt;P&gt;Hi, this should work:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;COUNT({&amp;lt;[order number]=$(=CONCAT(DISTINCT 'P({$&amp;lt;[product item]={' &amp;amp;CHR(39)&amp;amp; [product item] &amp;amp;CHR(39)&amp;amp; '}&amp;gt;} [order number])', ' * '))&amp;gt;}DISTINCT [order number])
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Oct 2022 12:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989574#M81787</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2022-10-06T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989633#M81796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103456"&gt;@RsQK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It does not works the syntax is incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989633#M81796</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-06T14:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989643#M81799</link>
      <description>&lt;P&gt;Oops, my bad. With this exact formula:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;COUNT({&amp;lt;[order number]=$(=CONCAT(DISTINCT 'P({$&amp;lt;[product item]={' &amp;amp;CHR(39)&amp;amp; [product item] &amp;amp;CHR(39)&amp;amp; '}&amp;gt;})', ' * '))&amp;gt;}DISTINCT [order number])&lt;/LI-CODE&gt;
&lt;P&gt;if i select products A and B, i get a count of 1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RsQK_1-1665065822903.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90722i70FC24C2042876C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RsQK_1-1665065822903.png" alt="RsQK_1-1665065822903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989643#M81799</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2022-10-06T14:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989667#M81803</link>
      <description>&lt;P&gt;It still doesn't works, errors in expression.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989667#M81803</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-06T14:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989684#M81810</link>
      <description>&lt;P&gt;Are you using Sense, if so which version? I did this on Aug2022 version. I literally copied and pasted the formula which i posted earlier - it should work. I will attach the .qvf here.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989684#M81810</guid>
      <dc:creator>RsQK</dc:creator>
      <dc:date>2022-10-06T15:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989702#M81814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/103456"&gt;@RsQK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I was trying in the latest version of QlikView v12.70&amp;nbsp; and it give me expression error.&lt;/P&gt;
&lt;P&gt;I just tried with Qlik Sense and It works as expected.&lt;/P&gt;
&lt;P&gt;Great Job!&lt;/P&gt;
&lt;P&gt;Many thanks for your collaboration.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 15:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1989702#M81814</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-06T15:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to select sales order containing selected item code from a listbox (in AND logic)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1990277#M81884</link>
      <description>&lt;P&gt;I tried again in QlikView and the expression does works even if the expression editor gives an error!&lt;BR /&gt;It makes sense because QIX engine is the same.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 15:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-sales-order-containing-selected-item-code-from-a/m-p/1990277#M81884</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-07T15:14:28Z</dc:date>
    </item>
  </channel>
</rss>

