<?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 Passing parameter while calling a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65441#M10857</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 have a variable which accepts a number as a parameter and returns a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem including this in the chart by passing a value from another from another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vCalcFinalScore(Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but it doesn't work when I call the variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$(vCalcFinalScore(TextBetween(Score,'|','|',2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error "TextBetween takes 3-4 parameters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The column Score is an other expression on the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I am missing here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 10:27:02 GMT</pubDate>
    <dc:creator>SureshUK</dc:creator>
    <dc:date>2018-02-07T10:27:02Z</dc:date>
    <item>
      <title>Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65441#M10857</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 have a variable which accepts a number as a parameter and returns a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem including this in the chart by passing a value from another from another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vCalcFinalScore(Score))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but it doesn't work when I call the variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;$(vCalcFinalScore(TextBetween(Score,'|','|',2)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting an error "TextBetween takes 3-4 parameters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The column Score is an other expression on the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what I am missing here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65441#M10857</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2018-02-07T10:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65442#M10858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you define the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65442#M10858</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-07T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65443#M10859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable vCalcFinalScore has some validations to return a single digit number. A simplified definition looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($1&amp;gt;99 and $1&amp;lt;999, if (substringcount($1,'4')&amp;gt;substringcount($1,'3'),4,3),99)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:49:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65443#M10859</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2018-02-07T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65444#M10860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you are supposed to pass a number as argument to the variable. And do you expect '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TextBetween(Score,'|','|',2)&lt;/SPAN&gt;' to return a number? I guess a sample qvw would be easier to investigate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65444#M10860</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-07T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65445#M10861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression "Final Value-fails" doesn't return anything when I use textbetween function output and as parameter. The "Final Value-works" does return right value when an expression value is passed as parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65445#M10861</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2018-02-07T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65446#M10862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the variable first encounters with a comma, it terminates as the end of the first argument and that is why you can't pass any value/expression that has comma in between in that way. Alternatively you could have one more variable to hold the expression and pass it in the variable as argument. PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65446#M10862</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-07T11:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65447#M10863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry that I can't open your QVW. I am using v12 personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please paste both the expression and variables you have included?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65447#M10863</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2018-02-07T11:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65448#M10864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vText =TextBetween('|123|22|334|3|','|','|',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$(vCalcFinalScore(vText))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65448#M10864</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-07T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameter while calling a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65449#M10865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-parameter-while-calling-a-variable/m-p/65449#M10865</guid>
      <dc:creator>SureshUK</dc:creator>
      <dc:date>2018-02-07T11:47:40Z</dc:date>
    </item>
  </channel>
</rss>

