<?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 Parametrized Variable Problem in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88271#M5895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've created some varibles that works like functions.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;variable fVerbaSup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;sum(&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;$&amp;lt;[Comprador]={$1},[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;[Valor Verba]&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where $1 is the parameter.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I use it with success like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*"))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But I could not pass more then one Comprador in the same parameter, like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*", "304 |*" ))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It does not work and returns the sum of Valor Verba from Comprador 888 only.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Strange is the fact that if I do not create a variable and use the sum directly in the object, it works, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;sum(&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;$&amp;lt;[Comprador]={&lt;SPAN style="font-size: 13.3333px;"&gt;"888 |*", "304 |*" &lt;/SPAN&gt;},[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;[Valor Verba]&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anybody has a suggestion on how I could pass more then one Comprador in the SAME PARAMETER?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried a lot of combinations without success.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*", "304 |*" ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It must be in the same parameter because I have many others functions that will receive 1, 2, 3 or N Comprador.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2018 12:46:37 GMT</pubDate>
    <dc:creator>brunolovatti</dc:creator>
    <dc:date>2018-08-15T12:46:37Z</dc:date>
    <item>
      <title>Parametrized Variable Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88271#M5895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi!&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've created some varibles that works like functions.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;variable fVerbaSup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;sum(&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;$&amp;lt;[Comprador]={$1},[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;[Valor Verba]&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where $1 is the parameter.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I use it with success like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*"))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But I could not pass more then one Comprador in the same parameter, like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*", "304 |*" ))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It does not work and returns the sum of Valor Verba from Comprador 888 only.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Strange is the fact that if I do not create a variable and use the sum directly in the object, it works, like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;sum(&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;{&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;$&amp;lt;[Comprador]={&lt;SPAN style="font-size: 13.3333px;"&gt;"888 |*", "304 |*" &lt;/SPAN&gt;},[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;[Valor Verba]&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anybody has a suggestion on how I could pass more then one Comprador in the SAME PARAMETER?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried a lot of combinations without success.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(fVerbaSup( "888 |*", "304 |*" ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It must be in the same parameter because I have many others functions that will receive 1, 2, 3 or N Comprador.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88271#M5895</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2018-08-15T12:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized Variable Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88272#M5896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use a comma as part of the parameter value.&amp;nbsp; Even though it is in quotes, the comma will be treated as a parameter separator and 304 will be assigned to $2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only workaround I've found is to use a proxy character for the comma and do a replace in the expression.&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$&amp;lt;[Comprador]={$(=replace('$1','@',',')},[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(fVerbaSup( "888 |*"@ "304 |*" ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88272#M5896</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-15T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized Variable Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88273#M5897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing more tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked now. Your code was missing another ) character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$&amp;lt;[Comprador]={ $(=replace('$1', '@', ',')&lt;STRONG style=": ; color: #ff0000; font-size: 18pt;"&gt;)&lt;/STRONG&gt; },[Modalidade]={'SUPERMERCADO'}&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;[Valor Verba]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88273#M5897</guid>
      <dc:creator>brunolovatti</dc:creator>
      <dc:date>2018-08-15T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized Variable Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88274#M5898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It worked now. Your code was missing another ) character."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That's why I said "Something like"&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Glad you got it working!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 19:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88274#M5898</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-15T19:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized Variable Problem</title>
      <link>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88275#M5899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's just multiple (selections) values you could use a different syntax to avoid the comma-issue. Try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(fVerbaSup(&lt;STRONG&gt;(&lt;/STRONG&gt;"888 |*"&lt;STRONG&gt;|&lt;/STRONG&gt;"304 |*"&lt;STRONG&gt;)&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 05:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Parametrized-Variable-Problem/m-p/88275#M5899</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-08-16T05:43:56Z</dc:date>
    </item>
  </channel>
</rss>

