<?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: Pick match not working as expected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417056#M95299</link>
    <description>&lt;P&gt;It's not really clear for me what you are trying to achieve. But IMO your approach of calculating something against two not linked data-set is problematic.&lt;/P&gt;
&lt;P&gt;Without digging in your application I think your first method is working because Qlik creates a cartesian product between both data-sets on the dimensional level and the if-loop-conditions in the expressions are reducing it again to the wanted/possible combinations. Your second method doubles the cartesian logic because it happens on the dimensional level as well as within the expression-level and both levels aren't matching against each other.&lt;/P&gt;
&lt;P&gt;Even with rather small data-sets you could easily crash an application or the server by allowing cartesian logic within a data-set. Beside this risks it's often hard to get the wanted results with such methods. Therefore I suggest to avoid it.&lt;/P&gt;
&lt;P&gt;In my experience there is only one sensible use-case for independent data-sets respectively island-tables and this to use them as navigation, for example to have an independent year-field like:&lt;/P&gt;
&lt;P&gt;t: load 2019 + recno() as YearSelect autogenerate 4;&lt;/P&gt;
&lt;P&gt;and then an UI expression may look like:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; MasterCalendarYear = p(YearSelect)&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;and then the selection from the island-tables controls the possible values of the origin data-set.&lt;/P&gt;
&lt;P&gt;If the last isn't what you want to achieve you will need to adjust your data-model to create valide associations between the data.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 08:52:14 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-02-09T08:52:14Z</dc:date>
    <item>
      <title>Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2416725#M95205</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I encounter an unepxected behaviour using pick match&lt;/P&gt;
&lt;P&gt;we have two not linked table, 1 factable, 1 technical table with one unique Dimension&lt;/P&gt;
&lt;P&gt;I have a calculation with set anaysis to look at previous year&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;if I put calculation alone in a table with all dimension, including the technical one, everything works &lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;if I put the same calculation in a pick match which test the Technical dimension, the calculation doesn't work &lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Does anybody can explain why this problem occurs and it if there is a solution to solve it ?&lt;/P&gt;
&lt;P&gt;Here are the sample data&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;BR /&gt;Dim1&lt;BR /&gt;GROUP1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;BR /&gt;source total_demand type_year year&lt;BR /&gt;SOURCE1 2 current_year 2024&lt;BR /&gt;SOURCE1 1 current_year 2024&lt;BR /&gt;SOURCE2 3 current_year 2023&lt;BR /&gt;SOURCE2 3 last_year 2023&lt;BR /&gt;SOURCE2 1 current_year 2023&lt;BR /&gt;SOURCE2 1 last_year 2023&lt;BR /&gt;] (delimiter is '\t');&lt;/P&gt;
&lt;P&gt;and here are my two measures&lt;/P&gt;
&lt;P&gt;=pick(match(Dim1,'GROUP1'),(&lt;EM&gt;sum({&amp;lt; year={2023},type_year={'last_year'}&amp;gt;}total_demand)&lt;/EM&gt;))&lt;/P&gt;
&lt;P&gt;=sum({&amp;lt; year={2023},type_year={'last_year'}&amp;gt;}total_demand)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NicolasAimain_0-1707409351806.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/159399i32672F7DE28BF5F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NicolasAimain_0-1707409351806.png" alt="NicolasAimain_0-1707409351806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also please find atteached the sample qvf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 16:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2416725#M95205</guid>
      <dc:creator>NicolasAimain</dc:creator>
      <dc:date>2024-02-08T16:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2416741#M95208</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/197793"&gt;@NicolasAimain&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Maybe bypassing the filter&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Year=&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;see it like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwj3soXWnJyEAxXOq5UCHes4A98Q3ewLegQIBRAU"&gt;pick({&amp;lt;year=&amp;gt;} match(Dim1,'GROUP1'),(sum({&amp;lt; year={2023},type_year={'last_year'},year=&amp;gt;}total_demand)))&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regarts,&lt;BR /&gt;Matheus&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 17:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2416741#M95208</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-02-08T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417056#M95299</link>
      <description>&lt;P&gt;It's not really clear for me what you are trying to achieve. But IMO your approach of calculating something against two not linked data-set is problematic.&lt;/P&gt;
&lt;P&gt;Without digging in your application I think your first method is working because Qlik creates a cartesian product between both data-sets on the dimensional level and the if-loop-conditions in the expressions are reducing it again to the wanted/possible combinations. Your second method doubles the cartesian logic because it happens on the dimensional level as well as within the expression-level and both levels aren't matching against each other.&lt;/P&gt;
&lt;P&gt;Even with rather small data-sets you could easily crash an application or the server by allowing cartesian logic within a data-set. Beside this risks it's often hard to get the wanted results with such methods. Therefore I suggest to avoid it.&lt;/P&gt;
&lt;P&gt;In my experience there is only one sensible use-case for independent data-sets respectively island-tables and this to use them as navigation, for example to have an independent year-field like:&lt;/P&gt;
&lt;P&gt;t: load 2019 + recno() as YearSelect autogenerate 4;&lt;/P&gt;
&lt;P&gt;and then an UI expression may look like:&lt;/P&gt;
&lt;P&gt;sum({&amp;lt; MasterCalendarYear = p(YearSelect)&amp;gt;} Value)&lt;/P&gt;
&lt;P&gt;and then the selection from the island-tables controls the possible values of the origin data-set.&lt;/P&gt;
&lt;P&gt;If the last isn't what you want to achieve you will need to adjust your data-model to create valide associations between the data.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 08:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417056#M95299</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-09T08:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417122#M95314</link>
      <description>&lt;P&gt;make it simpler by Picking Group1 and Group2 using a dual field or an alternate numeric field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LOAD * Inline [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim1,Dim1_so&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GROUP1,1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;GROUP2,2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then try below&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;=Pick(&lt;STRONG&gt;Dim1_so ,&amp;nbsp;&lt;/STRONG&gt;sum({&amp;lt; year={2023},type_year={'last_year'}&amp;gt;}total_demand) , &lt;STRONG&gt;ExpressionforGroup2 )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 10:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417122#M95314</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2024-02-09T10:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417635#M95359</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp;your solution works ... in the exemple I provided 🥲 (I just changed the&amp;nbsp;{&amp;lt;year=&amp;gt;} by a {1} as we have in fact several field)&lt;/P&gt;
&lt;P&gt;unfortunately, it doesn't solve our problem as we have a way more complicated apps (which I don't know well), I will investigate and probably open a new question&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;we use this isolate table to create distinct calculation for each cells of table like in P&amp;amp;L calculation see the small exemple below .... that worked well in many apps but not in this one&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt; Column A, Column B&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Var A Sum(X) Max(Z)&lt;/DIV&gt;
&lt;DIV&gt;Var B COunt(Y) Min(W)&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Feb 2024 10:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417635#M95359</guid>
      <dc:creator>NicolasAimain</dc:creator>
      <dc:date>2024-02-12T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pick match not working as expected</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417703#M95367</link>
      <description>&lt;P&gt;I wouldn't tend to such an approach because it means to associate data within the UI. IMO this kind of work belonged to the data-model respectively to distribute all information to appropriate dimensional layer and in the end a single and simple expression like sum(VALUE) is enough to get all needed views.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 11:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-match-not-working-as-expected/m-p/2417703#M95367</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-02-12T11:55:25Z</dc:date>
    </item>
  </channel>
</rss>

