<?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: Evaluate String as Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549813#M483336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Arial;"&gt;Maybe like this: if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;&amp;gt;0, $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vSetMTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; #Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="font-size: 10pt;"&gt;Edit: it would help if you posted a sample document&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 09:53:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-08T09:53:45Z</dc:date>
    <item>
      <title>Evaluate String as Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549812#M483335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to evaluate a string in a Pivot Table as an Expression, but it's not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Expression1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Expression1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vSetMTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; #Amount)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Expression1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;(aggr( sum(TOTAL $(vSetMTD_2Intersect)* &amp;lt;[Report Name]={'DRBI'},[Report LineNr]={'A25'} &amp;gt;}&amp;nbsp; #Amount),[Report LineNr])*-0.30)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I copy the cell value and paste as an Exporession, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 09:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549812#M483335</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-07-08T09:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate String as Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549813#M483336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Arial;"&gt;Maybe like this: if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;&amp;gt;0, $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vSetMTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; #Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;EM style="font-size: 10pt;"&gt;Edit: it would help if you posted a sample document&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 09:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549813#M483336</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-08T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate String as Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549814#M483337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 09:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549814#M483337</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-07-08T09:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate String as Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549815#M483338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not sure where you have stored the Expression1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion would be (if you have not done already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create Expression1 as variable in Load script like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SET Expression1='&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;(aggr( sum(TOTAL $(vSetMTD_2Intersect)* &amp;lt;[Report Name]={'DRBI'},[Report LineNr]={'A25'} &amp;gt;} Amount),[Report LineNr])*-0.30)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then your expression should be&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;&amp;gt;0, $(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Expression1)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt; color: #808080;"&gt;$(vSetMTD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; #Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;-Anand.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549815#M483338</guid>
      <dc:creator>anandathome</dc:creator>
      <dc:date>2013-07-08T10:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate String as Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549816#M483339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand&lt;/P&gt;&lt;P&gt;It’s stored at Report Line Level.&lt;/P&gt;&lt;P&gt;I pretend to evaluate to each line, if an custom formula exists, if not, I want to use an general formula)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-String-as-Expression/m-p/549816#M483339</guid>
      <dc:creator>bruno_m_santos</dc:creator>
      <dc:date>2013-07-08T10:44:06Z</dc:date>
    </item>
  </channel>
</rss>

