<?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 use pick function on a variable making a calculation? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769448#M273249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about not using a variable, but making a table during the run of the script that contains both the region and the number you want it to relate to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 13:21:18 GMT</pubDate>
    <dc:creator>oknotsen</dc:creator>
    <dc:date>2015-03-23T13:21:18Z</dc:date>
    <item>
      <title>How to use pick function on a variable making a calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769447#M273248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear fellow Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following variable: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vKPIs($1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which, when calculated, returns the following value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vKPIs(Region='Europe'))=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'2334',' 45.1%',' 8.5',' 57.4%',' 55.7',' 79.0%',' 88.8%',' 3.1%',' 5.1',' 8.9%',' 84',' 11.6%',' 72.8%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that, for some reason, when I use the pick formula, it doesn't recognize the comma separations in the calculation, hence giving me the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vKPIs(Region='Europe'))=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'2334',' 45.1%',' 8.5',' 57.4%',' 55.7',' 79.0%',' 88.8%',' 3.1%',' 5.1',' 8.9%',' 84',' 11.6%',' 72.8%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%',' 0.0%'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of returning: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;pick(1, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vKPIs(Region='Europe'))=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2334, which is what I'd want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way of getting the pick function to search the string AFTER the variable is calculated so I can get the result I'm looking for? Please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio Peschiera&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 11:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769447#M273248</guid>
      <dc:creator />
      <dc:date>2015-03-23T11:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use pick function on a variable making a calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769448#M273249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about not using a variable, but making a table during the run of the script that contains both the region and the number you want it to relate to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 13:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769448#M273249</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-03-23T13:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use pick function on a variable making a calculation?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769449#M273250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Onno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although, I actually need to get all values from the list, which are all related to very region but answer to different Metrics. What I'd ultimately do is set a Dimension named ID with values (1-27) and then the expression would be pick(ID, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;$(vKPIs(Region='Europe')).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 14:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-pick-function-on-a-variable-making-a-calculation/m-p/769449#M273250</guid>
      <dc:creator />
      <dc:date>2015-03-23T14:13:27Z</dc:date>
    </item>
  </channel>
</rss>

