<?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 Problem passing formulas to an expression in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-passing-formulas-to-an-expression-in-a-pivot-table/m-p/869686#M533562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a problem passing formulas to an expression in a pivot table. The project I'm working on is confidential and I'm not allowed to show any part of it, so I've created a very simple example... Please bear with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script, I define this...&lt;/P&gt;&lt;P&gt;SET f_Something = '$1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following as the expression in a pivot table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(f_Something('HI'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;then it works and I get&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several formulas that I will possible need to use in the expression, so I've loaded them from a table. I can already correctly select the correct formula to replace in the expression, but when I do this, it doesn't work (I get null).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose F will contain the formula I'd like to replace and it currently equals &lt;SPAN style="font-size: 13.3333330154419px;"&gt;f_Something('HI') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;then if I use &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the following as the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see &lt;SPAN style="font-size: 13.3333330154419px;"&gt;f_Something('HI'), which is exactly what I'd expect to see.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to execute that function. I've tried:&lt;/P&gt;&lt;P&gt;$(F)&lt;/P&gt;&lt;P&gt;$(=F)&lt;/P&gt;&lt;P&gt;=$(F)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all return null. How do I get the dollar expansion to execute my function and give me the correct result, which is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 19:14:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-07T19:14:00Z</dc:date>
    <item>
      <title>Problem passing formulas to an expression in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-passing-formulas-to-an-expression-in-a-pivot-table/m-p/869686#M533562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a problem passing formulas to an expression in a pivot table. The project I'm working on is confidential and I'm not allowed to show any part of it, so I've created a very simple example... Please bear with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script, I define this...&lt;/P&gt;&lt;P&gt;SET f_Something = '$1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the following as the expression in a pivot table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(f_Something('HI'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;then it works and I get&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several formulas that I will possible need to use in the expression, so I've loaded them from a table. I can already correctly select the correct formula to replace in the expression, but when I do this, it doesn't work (I get null).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose F will contain the formula I'd like to replace and it currently equals &lt;SPAN style="font-size: 13.3333330154419px;"&gt;f_Something('HI') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;then if I use &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the following as the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see &lt;SPAN style="font-size: 13.3333330154419px;"&gt;f_Something('HI'), which is exactly what I'd expect to see.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to execute that function. I've tried:&lt;/P&gt;&lt;P&gt;$(F)&lt;/P&gt;&lt;P&gt;$(=F)&lt;/P&gt;&lt;P&gt;=$(F)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all return null. How do I get the dollar expansion to execute my function and give me the correct result, which is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:14:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-passing-formulas-to-an-expression-in-a-pivot-table/m-p/869686#M533562</guid>
      <dc:creator />
      <dc:date>2015-04-07T19:14:00Z</dc:date>
    </item>
  </channel>
</rss>

