<?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(ValueList in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935238#M77043</link>
    <description>&lt;P&gt;You may just query match() to see if all value-list entries will be resolved, for example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Match(ValueList(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside of this you may consider to replace the valuelist() with native field-values created within an island-table, like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dim: load dual(dim, recno()) as dim inline [&lt;BR /&gt;dim&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and then your expression may look like:&lt;/P&gt;
&lt;P&gt;pick(num(dim), expr1, expr2)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 07:03:20 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-05-25T07:03:20Z</dc:date>
    <item>
      <title>Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1934978#M77022</link>
      <description>&lt;P&gt;Customer Support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m using Pick(Match(ValueList())) to populate my chart, it is working correctly on the first 2 expressions, but will not generate the numbers in the 3&lt;SUP&gt;rd&lt;/SUP&gt; expression.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what the expression looks like&lt;/P&gt;
&lt;P&gt;Pick(Match(ValueList(&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;),&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;),&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_AdminRate)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_BuildingRate)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_DeliveryMilesRate)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_DeliveryRouteRate)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_Insurance)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_Interest)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_Marketing)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_Multi-UnitRate)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_Sales)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;$(e_WarehouseRate)&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested the variable and the do calculate numbers correctly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_0-1653404806788.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80193i9FC8FC1100001387/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_0-1653404806788.png" alt="jworthulf_0-1653404806788.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what I need to do to resolve this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1934978#M77022</guid>
      <dc:creator>jworthulf</dc:creator>
      <dc:date>2022-05-24T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935217#M77039</link>
      <description>&lt;P&gt;can you post a screenshot of the expression editor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and also variable definition for&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;exp_Dim&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935217#M77039</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-25T06:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935238#M77043</link>
      <description>&lt;P&gt;You may just query match() to see if all value-list entries will be resolved, for example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Match(ValueList(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(exp_Dim)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside of this you may consider to replace the valuelist() with native field-values created within an island-table, like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dim: load dual(dim, recno()) as dim inline [&lt;BR /&gt;dim&lt;BR /&gt;a&lt;BR /&gt;b&lt;BR /&gt;];&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and then your expression may look like:&lt;/P&gt;
&lt;P&gt;pick(num(dim), expr1, expr2)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935238#M77043</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935476#M77070</link>
      <description>&lt;P&gt;Marcus,&lt;/P&gt;
&lt;P&gt;So I did a&amp;nbsp; querry match&amp;nbsp;Match(ValueList($(exp_Dim)),$(exp_Dim))&lt;BR /&gt;//,&lt;BR /&gt;//$(e_AdminRate),&lt;BR /&gt;//$(e_BuildingRate),&lt;BR /&gt;//$(e_DeliveryMilesRate),&lt;BR /&gt;//$(e_DeliveryRouteRate),&lt;BR /&gt;//$(e_Insurance),&lt;BR /&gt;//$(e_Interest),&lt;BR /&gt;//$(e_Marketing),&lt;BR /&gt;//$(e_Multi-UnitRate),&lt;BR /&gt;//$(e_Sales),&lt;BR /&gt;//$(e_WarehouseRate)) &lt;BR /&gt;//&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this is what my chart is showing which is what I would expect so when I add the pick function I should the variables should populate the rate field.&amp;nbsp; &amp;nbsp; &amp;nbsp;I checked my variables in a text object and they are calculating the correct numbers.&lt;/P&gt;
&lt;P&gt;Is this possibly a version issue?&amp;nbsp; &amp;nbsp;I created this sheet object using version 12.20 and then we updated to 12.60.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_0-1653484607281.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80294iD39835C44BE9618B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_0-1653484607281.png" alt="jworthulf_0-1653484607281.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935476#M77070</guid>
      <dc:creator>jworthulf</dc:creator>
      <dc:date>2022-05-25T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935486#M77072</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_1-1653484868291.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80295i16F9253257483B52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_1-1653484868291.png" alt="jworthulf_1-1653484868291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Calculated Dim field&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_2-1653484900759.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80297i3B1732D0F0BC4D18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_2-1653484900759.png" alt="jworthulf_2-1653484900759.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;exp_Dim&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;'Admin',&lt;BR /&gt;'Building',&lt;BR /&gt;'Delivery_Miles',&lt;BR /&gt;'Delivery_Route',&lt;BR /&gt;'Insurance',&lt;BR /&gt;'Interest',&lt;BR /&gt;'Marketing',&lt;BR /&gt;'Multi-Unit',&lt;BR /&gt;'Sales',&lt;BR /&gt;'Warehouse'&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935486#M77072</guid>
      <dc:creator>jworthulf</dc:creator>
      <dc:date>2022-05-25T13:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935506#M77074</link>
      <description>&lt;P&gt;I don't think that there is an issue with the releases. I could rather imagine that you have comments within your variables, like:&lt;/P&gt;
&lt;P&gt;var:&lt;BR /&gt;sum(value) /* expression calculates ...&lt;/P&gt;
&lt;P&gt;Applied as a single expression within a text-box it will work but integrated in a bigger expression it will cause problems because the entire variable-string including any comments will be taken and evaluated where it's called.&lt;/P&gt;
&lt;P&gt;Should there be any comments - just remove them from the expression and put it into the variable comment-field.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935506#M77074</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T13:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935580#M77085</link>
      <description>&lt;P&gt;So I went thru and tested each variable in the expression list and ran the pick(match( querry until I found the variable that was creating the issue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_0-1653488028913.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80311iF07049E7DC1BDCBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_0-1653488028913.png" alt="jworthulf_0-1653488028913.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="jworthulf_1-1653488039310.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80312iA1A3963BA0B12D02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_1-1653488039310.png" alt="jworthulf_1-1653488039310.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It turns out the variable was $(e_Multi-UnitRate) when I replaced the variable w/ the expression it was supposed to execute it worked just fine.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jworthulf_2-1653488137427.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80315iE38E8F9B181E2212/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jworthulf_2-1653488137427.png" alt="jworthulf_2-1653488137427.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know why the variable isn't working please let me know.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935580#M77085</guid>
      <dc:creator>jworthulf</dc:creator>
      <dc:date>2022-05-25T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935592#M77087</link>
      <description>&lt;P&gt;The expression for this variable looked ok. but the variable-name contains a special char. I never use them within variables - maybe this caused the issue. Therefore just try a replace from:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;e_Multi-UnitRate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;e_MultiUnitRate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1935592#M77087</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match(ValueList</title>
      <link>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1936271#M77145</link>
      <description>&lt;P&gt;Marcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help, getting rid of the special character took care of the issue!&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 21:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pick-Match-ValueList/m-p/1936271#M77145</guid>
      <dc:creator>jworthulf</dc:creator>
      <dc:date>2022-05-26T21:08:18Z</dc:date>
    </item>
  </channel>
</rss>

