<?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: Set analysis issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737279#M56401</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;is giving me the minimum next date of reception of &lt;U&gt;&lt;STRONG&gt;all my selections, and not line by line&lt;/STRONG&gt;&lt;/U&gt;.&lt;/BLOCKQUOTE&gt;&lt;P&gt;And this is how set analysis works; it calculates once for a chart/object and NOT line by line. Try to replace your set analysis with 'if' statement instead.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 07:47:31 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2020-08-20T07:47:31Z</dc:date>
    <item>
      <title>Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737272#M56400</link>
      <description>&lt;P&gt;Hello fellows Qlikers,&lt;/P&gt;&lt;P&gt;I have a problem with a set analysis, and any help would be appreciated to solve it.&lt;/P&gt;&lt;P&gt;To give you a context, my main table is a product table joined with a list of warehouses:&lt;/P&gt;&lt;TABLE border="1" width="36.36363636363637%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20.485678704856785%" height="25px"&gt;product&lt;/TD&gt;&lt;TD width="15.877957658779586%" height="25px"&gt;warehouse&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20.485678704856785%" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="15.877957658779586%" height="25px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20.485678704856785%" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="15.877957658779586%" height="25px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20.485678704856785%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="15.877957658779586%" height="25px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20.485678704856785%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="15.877957658779586%" height="25px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;At those, I left keeped a single table of logistic movements (pickings &lt;U&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; &lt;/U&gt;receptions) to be done with planned date, warehouse and quantities.&lt;/P&gt;&lt;P&gt;My goal with the set analysis is, by article, &lt;U&gt;&lt;STRONG&gt;find the quantity that has to be picked before the next reception occurs&lt;/STRONG&gt;&lt;/U&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it goes :&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;BR /&gt;operation_type={'picking_operation'}&lt;BR /&gt;,[date_planned]={"&amp;lt;$(=Min({$&amp;lt;operation_type={'reception'}&amp;gt;} distinct TOTAL &amp;lt;warehouse,product&amp;gt; [date_planned]))"}&amp;gt;} [quantity])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It works perfectly fine, except that my set analysis within the set analysis (= what I would like to be the minimum next date of reception) is giving me the minimum next date of reception of &lt;U&gt;&lt;STRONG&gt;all my selections, and not line by line&lt;/STRONG&gt;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Even in the preview of the set analysis, it shows only one value, which is the minimum of all my selections :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florent1_1-1597907844609.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39294i8A3CD43BA7BA54F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florent1_1-1597907844609.png" alt="florent1_1-1597907844609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florent1_2-1597907905760.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39295i999AB14DA2FA95F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florent1_2-1597907905760.png" alt="florent1_2-1597907905760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if I apply other selections :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florent1_3-1597907945702.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39296i95C58A1810D5822D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florent1_3-1597907945702.png" alt="florent1_3-1597907945702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florent1_4-1597907960727.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39297i408F595598EF30EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florent1_4-1597907960727.png" alt="florent1_4-1597907960727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me figure it out ?&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Flo&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>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737272#M56400</guid>
      <dc:creator>florent1</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737279#M56401</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;is giving me the minimum next date of reception of &lt;U&gt;&lt;STRONG&gt;all my selections, and not line by line&lt;/STRONG&gt;&lt;/U&gt;.&lt;/BLOCKQUOTE&gt;&lt;P&gt;And this is how set analysis works; it calculates once for a chart/object and NOT line by line. Try to replace your set analysis with 'if' statement instead.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 07:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737279#M56401</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-08-20T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737288#M56402</link>
      <description>&lt;P&gt;Hello Tresesco,&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your answer. But I don't understand.&lt;BR /&gt;Every set analysis that I made works line by line. Which even allows me to add dimensions if I want to and dig deeper in the analysis if needed.&lt;/P&gt;&lt;P&gt;Here, it is only the set within the set which does not work properly. Maybe I did not explain the problem properly ?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 08:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737288#M56402</guid>
      <dc:creator>florent1</dc:creator>
      <dc:date>2020-08-20T08:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737322#M56404</link>
      <description>&lt;P&gt;Say for example, you have a chart with dimension Year and you want to get the sales value for max date for every year. And try to achieve this like this:&lt;/P&gt;&lt;P&gt;Dim : Year&lt;/P&gt;&lt;P&gt;Exp : Sum({&amp;lt;Date={'$(=Date(Max(Date)))'}&amp;gt;}Sales)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guess what, we would see sales for single year (i.e. - max year) and single date (max date of the max year). And I was taking about this behavior of set analysis, your set expression would not fetch max dates for every rows (year here).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Coming back to your issue, try to share a sample app explaining the expected output in that context; we will give a try.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 10:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737322#M56404</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-08-20T10:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737352#M56405</link>
      <description>&lt;P&gt;That is exactly my issue, indeed.&lt;/P&gt;&lt;P&gt;Here is an exemple attached.&amp;nbsp;&lt;BR /&gt;I put a sample of the table I would like in first. And in second the data in a simple table.&lt;/P&gt;&lt;P&gt;Here is the output I'm trying to reach :&lt;/P&gt;&lt;TABLE border="1" width="110.81590231979835%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="69px"&gt;warehouse&lt;/TD&gt;&lt;TD width="7.787519339865912%" height="69px"&gt;product&lt;/TD&gt;&lt;TD width="8.495894543012039%" height="69px"&gt;qty to pick&lt;/TD&gt;&lt;TD width="10.293918701377109%" height="69px"&gt;qty to receive&lt;/TD&gt;&lt;TD width="19.364585715611852%" height="69px"&gt;RESULT NOW&lt;/TD&gt;&lt;TD width="14.310434091063115%" height="69px"&gt;RESULT NEEDED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;warehouse1&lt;/TD&gt;&lt;TD width="7.787519339865912%" height="25px"&gt;productA&lt;/TD&gt;&lt;TD width="8.495894543012039%" height="25px"&gt;400&lt;/TD&gt;&lt;TD width="10.293918701377109%" height="25px"&gt;100&lt;/TD&gt;&lt;TD width="19.364585715611852%" height="25px"&gt;200&lt;/TD&gt;&lt;TD width="14.310434091063115%" height="25px"&gt;&lt;EM&gt;(200+100=)&lt;/EM&gt;&lt;STRONG&gt;300&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;warehouse2&lt;/TD&gt;&lt;TD width="7.787519339865912%" height="25px"&gt;productA&lt;/TD&gt;&lt;TD width="8.495894543012039%" height="25px"&gt;500&lt;/TD&gt;&lt;TD width="10.293918701377109%" height="25px"&gt;500&lt;/TD&gt;&lt;TD width="19.364585715611852%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="14.310434091063115%" height="25px"&gt;&lt;EM&gt;(0=)&lt;/EM&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;warehouse1&lt;/TD&gt;&lt;TD width="7.787519339865912%" height="25px"&gt;productB&lt;/TD&gt;&lt;TD width="8.495894543012039%" height="25px"&gt;450&lt;/TD&gt;&lt;TD width="10.293918701377109%" height="25px"&gt;200&lt;/TD&gt;&lt;TD width="19.364585715611852%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="14.310434091063115%" height="25px"&gt;&lt;EM&gt;(150=)&lt;/EM&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.285714285714286%" height="25px"&gt;warehouse2&lt;/TD&gt;&lt;TD width="7.787519339865912%" height="25px"&gt;productB&lt;/TD&gt;&lt;TD width="8.495894543012039%" height="25px"&gt;400&lt;/TD&gt;&lt;TD width="10.293918701377109%" height="25px"&gt;750&lt;/TD&gt;&lt;TD width="19.364585715611852%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="14.310434091063115%" height="25px"&gt;&lt;EM&gt;(400=)&lt;/EM&gt;&lt;STRONG&gt;400&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain the result I am getting now but doesn't fit my need (200) :&lt;BR /&gt;- the minimun date of reception throughout the data is 12/05/2020&lt;BR /&gt;- I only have 1 picking which is before that date, on productA / warehouse1, for 200 quantities the 10/05/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain the result needed for the 1st line (300) :&amp;nbsp;&lt;BR /&gt;- I have 3 pickings (planned the 10/05 - 19/08 - 19/09)&lt;BR /&gt;- but only 2 before the next reception (which occurs 28/08)&lt;BR /&gt;- the quantity of those 2 pickings is 200 (planned the 10/05) + 100 (planned the 19/08)&lt;/P&gt;&lt;P&gt;Is it clearer like that ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Flo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 12:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1737352#M56405</guid>
      <dc:creator>florent1</dc:creator>
      <dc:date>2020-08-20T12:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738047#M56445</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone have a hint of what to do to achieve my goal ?&lt;/P&gt;&lt;P&gt;I'd be very grateful, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738047#M56445</guid>
      <dc:creator>florent1</dc:creator>
      <dc:date>2020-08-24T07:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738053#M56446</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Sum(if(operation='picking' and date_planned &amp;lt; Aggr(nodistinct only(if(operation='reception', date_planned)),warehouse,product), qty))&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tresesco_0-1598254798510.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39465iDCB2022B3D6D9BCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tresesco_0-1598254798510.png" alt="tresesco_0-1598254798510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738053#M56446</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-08-24T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738072#M56447</link>
      <description>&lt;P&gt;Wonderful ! Thanks a lot&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;, it works perfectly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 08:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-issue/m-p/1738072#M56447</guid>
      <dc:creator>florent1</dc:creator>
      <dc:date>2020-08-24T08:47:28Z</dc:date>
    </item>
  </channel>
</rss>

