<?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: Evaluating expression out of a database string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507820#M189845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the expression as a variable and call that variable in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET Var = '=$(='Formula')'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET Var &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=$(='Formula')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and in the expression window use $(Var)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 11:59:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-03T11:59:52Z</dc:date>
    <item>
      <title>Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507817#M189842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(=2*2*3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns, as expected, 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(='2*2*3')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it also returns 12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dashboard I need to load this mathematical operation out of a &lt;STRONG&gt;database&lt;/STRONG&gt;. Therefore I made a field named &lt;STRONG&gt;Formula &lt;/STRONG&gt;in a database table. If I make the expression this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(='Formula')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it returns, as exprected, the text "&lt;STRONG&gt;2*2*3&lt;/STRONG&gt;". But I want to have it calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I tried &lt;STRONG&gt;=$($(='Formula'))&lt;/STRONG&gt; or &lt;STRONG&gt;=$(=$(='Formula'))&lt;/STRONG&gt; but neither of them seems to work. Is there a way to solve this problem and to calculate the content of the Formula field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507817#M189842</guid>
      <dc:creator />
      <dc:date>2013-10-03T11:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507818#M189843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$(=Formula)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507818#M189843</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-03T11:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507819#M189844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't resolve the expression at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507819#M189844</guid>
      <dc:creator />
      <dc:date>2013-10-03T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507820#M189845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the expression as a variable and call that variable in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET Var = '=$(='Formula')'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET Var &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=$(='Formula')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and in the expression window use $(Var)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507820#M189845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-03T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507821#M189846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are the values exactly in the field?&lt;/P&gt;&lt;P&gt;like: 2*2*3 , "2*2*3" or with single quotes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507821#M189846</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-03T12:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507822#M189847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this way &lt;STRONG&gt;2*2*3&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507822#M189847</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507823#M189848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunately none of the both variants work. In the upper example &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET Var = '=$(='Formula')' &lt;/STRONG&gt;it is interpreted as a string, and the lower it has the same behaviour as in my code.&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507823#M189848</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating expression out of a database string</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507824#M189849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if I fully understood, but this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;Formula&lt;BR /&gt;2*2*3&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Then add this expression to a textbox&lt;/P&gt;&lt;P&gt;=sum($(=Formula)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 14:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluating-expression-out-of-a-database-string/m-p/507824#M189849</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2013-10-03T14:26:09Z</dc:date>
    </item>
  </channel>
</rss>

