<?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 statement as a chart expression not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450058#M568361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try enclosing your variable expansion into single quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( '&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;$(vSalesExpressions)' &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'Avg Sales','Median...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 15:12:03 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-11-20T15:12:03Z</dc:date>
    <item>
      <title>Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450056#M568357</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've used a pick(match) statement as i wanted to avoid nested ifs, however following previous posts I cant seem to get mine to work. &lt;/P&gt;&lt;P&gt;vSalesExpressions- is set by an input box to one of the strings defined, I have put this expression as an expression in a line graph. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;$(vSalesExpressions)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'Avg Sales','Median&lt;BR /&gt;Sales','Avg Winning Products','Avg Loosing Products','Top 10 Sales','Bottom 10 Sales'),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Median&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;profitindicator&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {1} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;profitindicator&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {0} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;SalesPerson&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;"=Rank(aggr(avg(ProfitPc),&lt;BR /&gt;SalesPerson)) &amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;),&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;SalesId&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;"=Rank(aggr(-avg(ProfitPc),SalesId))&amp;lt;=10&amp;nbsp; "&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;ProfitPc&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;/P&gt;&lt;P align="left" style="text-align: left;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 09:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450056#M568357</guid>
      <dc:creator />
      <dc:date>2012-11-20T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450057#M568359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the first parameter of the match() function must be string, not an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 15:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450057#M568359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-20T15:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450058#M568361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try enclosing your variable expansion into single quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;( '&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt;"&gt;$(vSalesExpressions)' &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;,'Avg Sales','Median...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 15:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450058#M568361</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-20T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450059#M568362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion, however it hasnt seemed to have worked. &lt;/P&gt;&lt;P&gt; just to clarify vSalesExpression stores a string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 16:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450059#M568362</guid>
      <dc:creator />
      <dc:date>2012-11-20T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450060#M568364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion, however it hasnt seemed to have worked. &lt;/P&gt;&lt;P&gt; just to clarify vSalesExpression stores a string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 16:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450060#M568364</guid>
      <dc:creator />
      <dc:date>2012-11-20T16:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450061#M568366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work for me (using single quotes around the variable expansion). See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked that your strings are not differing in trailing / leading spaces or in case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 16:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450061#M568366</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-20T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450062#M568367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion, however it hasnt seemed to have worked. &lt;/P&gt;&lt;P&gt; just to clarify vSalesExpression stores a string. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450062#M568367</guid>
      <dc:creator />
      <dc:date>2012-11-20T17:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450063#M568368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou guys for all your help, &lt;/P&gt;&lt;P&gt;in replicating my conditions for you swuehl i found that it was nt working becuase I had a space in my strings!!!&lt;/P&gt;&lt;P&gt;when removing space in the string comparisons it worked. so 'avg sales' is now 'avgsales'&lt;/P&gt;&lt;P&gt;I'm not sure why the space posed this issue!&lt;/P&gt;&lt;P&gt;This then leads me to have to think of a way to make the selection box user friendly as having words with no spaces doesnt look very noce. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 16:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450063#M568368</guid>
      <dc:creator />
      <dc:date>2012-11-21T16:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pick Match statement as a chart expression not working</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450064#M568369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry back to the drawing bord for me, I have it working but the spaces in the stings was not the issue. Still trying to find out what the issue is&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-statement-as-a-chart-expression-not-working/m-p/450064#M568369</guid>
      <dc:creator />
      <dc:date>2012-11-21T17:03:50Z</dc:date>
    </item>
  </channel>
</rss>

