<?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()) or may be another function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875652#M305801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about a variable function that you can call for each field. Something like the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 14:32:16 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-04-21T14:32:16Z</dc:date>
    <item>
      <title>Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875645#M305794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Qlikers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be a very easy solution for this, but I am kind of confused on how I can achieve this. I have a formula like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Match(23, 23, 34, 23, 45), 'R', 'T', 'P', 'K')&lt;/STRONG&gt; and when I put this in a text box, I get the output to be R (which makes sense because its matching the first instance of the number to match with and giving me the output R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to be able to somehow get the &lt;STRONG&gt;output R, P.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give some details about what exactly I am doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Match(MaxfromMultipleFieldsusingRangeMax, MaxField1, MaxField2, MaxField3.....), 'Field1', 'Field2', 'Field3'....)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the responses are greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875645#M305794</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875646#M305795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a thought: may be I can use &lt;STRONG&gt;Concat function with set analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875646#M305795</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T12:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875647#M305796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Pick(Match(23, 23, 34, 45), &lt;STRONG&gt;'R, P'&lt;/STRONG&gt;, 'T', 'K')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875647#M305796</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-21T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875648#M305797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response &lt;A _jive_internal="true" href="https://community.qlik.com/people/anbu1984"&gt;anbu cheliyan&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this was just an hard coded example, the actual values may vary. I am using functions instead of numbers here so I won't know what comes together. The function looks something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Pick(Match(MaxfromMultipleFieldsusingRangeMax, MaxField1, MaxField2, MaxField3.....), 'Field1', 'Field2', 'Field3'....)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875648#M305797</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875649#M305798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't have many fields, then use if like&lt;/P&gt;&lt;P&gt;vMaxValue=&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;MaxfromMultipleFieldsusingRangeMax&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace(Trim(If(vMaxValue = MaxField1Expr,'Field1') &amp;amp; ' ' &amp;amp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(vMaxValue = MaxField2Expr,'Field2') &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;amp; ' ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(vMaxValue = MaxField3Expr,'Field3') ), ' ', ',')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875649#M305798</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-21T13:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875650#M305799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 14 fields right now, but this is kind of a template app and it could increase up to 25 I think for other versions. I do have this as an alternative, but I thought there must be an easier way to do it. (may be using concat and set analysis?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But once again thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875650#M305799</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875651#M305800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do this with conat and set analysis yea, you would need a data island of your position value and result though I think, for that to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basic example attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875651#M305800</guid>
      <dc:creator />
      <dc:date>2015-04-21T14:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875652#M305801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about a variable function that you can call for each field. Something like the attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875652#M305801</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-04-21T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875653#M305802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like it could work, I just need to test it out for the application I am working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;A _jive_internal="true" href="https://community.qlik.com/people/Stigchel"&gt;Piet Hein van der Stigchel&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875653#M305802</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875654#M305803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/Stigchel"&gt;Piet Hein van der Stigchel&lt;/A&gt;‌ Can I do something like this in the variable you created?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vIsMax&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Max({&amp;lt;Year = {2015}&amp;gt;}[$1]) - Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{&amp;lt;Year = {2014}&amp;gt;}[$1]&lt;/SPAN&gt;) = RangeMax(Max({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2015}&lt;/SPAN&gt;&amp;gt;}Field1) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Max({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2014}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt;}Field1)&lt;/SPAN&gt;, Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2015}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt;}&lt;/SPAN&gt;Field2) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Max({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2014}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt;}Field2)&lt;/SPAN&gt;, Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2015}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt;}&lt;/SPAN&gt;Field3) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Max({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Year = {2014}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;gt;}Field3)&lt;/SPAN&gt;),Right('$1', 2),'')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;and then use the variable like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(vIsMax(Field1))&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;$(vIsMax(Field2))&amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;$(vIsMax(Field3))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875654#M305803</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T16:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875655#M305804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did work, made a small error which was causing it to not work. But thanks for introducing this new concept to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875655#M305804</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875656#M305805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Joe, but in my scenario this wouldn't be very helpful to use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875656#M305805</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T16:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875657#M305806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of curiosity, can I Give more than one inputs to a function? May be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vVar = Avg([$1]) - Avg([$2])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use is like this? &lt;STRONG&gt;$(vVar(Field1, Field2))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875657#M305806</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T16:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875658#M305807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can pass more than one argument&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875658#M305807</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-21T16:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pick(Match()) or may be another function</title>
      <link>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875659#M305808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing! Thanks guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 16:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pick-Match-or-may-be-another-function/m-p/875659#M305808</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-21T16:42:22Z</dc:date>
    </item>
  </channel>
</rss>

