<?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: Use expression as a variable parameter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1609405#M445007</link>
    <description>&lt;P&gt;I got this to work by putting the Only() function in it's own hidden expression within a straight table and then referencing it within the variable function call, which sits within it's own expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=$(&lt;SPAN&gt;vArrodoniment&lt;/SPAN&gt;("Hidden Expression name"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Putting the expression directly within the call to the variable would not give me an error, but it would also sum all the figures in a table for each row in the table and ignore the dimensions entirely.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 16:19:48 GMT</pubDate>
    <dc:creator>MarkWillems</dc:creator>
    <dc:date>2019-08-05T16:19:48Z</dc:date>
    <item>
      <title>Use expression as a variable parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1607359#M444829</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've defined the variable "vArrodoniment" like this:&lt;/P&gt;&lt;P&gt;if($1&amp;gt;20,num($1,'##.##0'),if($1&amp;gt;1,num($1,'##.##0,0'),num($1,'##.##0,00')))&lt;/P&gt;&lt;P&gt;So, it has different correct results:&lt;/P&gt;&lt;P&gt;=$(vArrodoniment(0.05)) ---&amp;gt; 0,05&lt;BR /&gt;=$(vArrodoniment(10)) ---&amp;gt; 10,0&lt;BR /&gt;=$(vArrodoniment(22)) ---&amp;gt; 22&lt;/P&gt;&lt;P&gt;Now, I would like to pass a parameter as a result of a function instead of a hardcoded number.&lt;/P&gt;&lt;P&gt;I've the expression:&lt;/P&gt;&lt;P&gt;=$(=Only({1&amp;lt;Codi_Indicador={'83'}&amp;gt;} formula_municipi_any))&lt;/P&gt;&lt;P&gt;It's ok and it results 71,12.&lt;/P&gt;&lt;P&gt;So I would like to use this expression as the parameter of the variable vArrodoniment.&lt;/P&gt;&lt;P&gt;I use it inside like this.&lt;/P&gt;&lt;P&gt;=$(vArrodoniment($(=Only({1&amp;lt;Codi_Indicador={'83'}&amp;gt;} formula_municipi_any))))&lt;/P&gt;&lt;P&gt;And there is the next error "Error: Error in expression: '}' expected ".&lt;/P&gt;&lt;P&gt;Anybody knows if it's possible to use the result of an expression as a parameter of a variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1607359#M444829</guid>
      <dc:creator>ijulias</dc:creator>
      <dc:date>2024-11-16T20:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression as a variable parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1609405#M445007</link>
      <description>&lt;P&gt;I got this to work by putting the Only() function in it's own hidden expression within a straight table and then referencing it within the variable function call, which sits within it's own expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=$(&lt;SPAN&gt;vArrodoniment&lt;/SPAN&gt;("Hidden Expression name"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Putting the expression directly within the call to the variable would not give me an error, but it would also sum all the figures in a table for each row in the table and ignore the dimensions entirely.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 16:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1609405#M445007</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-08-05T16:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use expression as a variable parameter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1609507#M445024</link>
      <description>&lt;P&gt;Thanks MarkWillems,&lt;/P&gt;&lt;P&gt;I've several cases I wanted to use the same solutions; some of them I've got the same result as you, and another are so difficult because every execution of the variable Qv try to execute it in a context that sometimes is not the desired.&lt;/P&gt;&lt;P&gt;At the end, I've used the pass variable parameter in one case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 16:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-expression-as-a-variable-parameter/m-p/1609507#M445024</guid>
      <dc:creator>ijulias</dc:creator>
      <dc:date>2019-08-05T16:43:00Z</dc:date>
    </item>
  </channel>
</rss>

