<?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: Expression Syntax with multiple variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644924#M236354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a set expression, you can use only [edit: single] field names left from the equal sign [edit: no calculations / expressions], so it would really be appropriate and performant to calculate this field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edit:] You can maybe use a set expression with an advanced search, but the performance would be worse than using a precalculated field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 14:43:12 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-06-09T14:43:12Z</dc:date>
    <item>
      <title>Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644923#M236353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling with quite a basic problem: What is the correct syntax when using multiple variables in an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;=Num(Count({$&lt;STRONG&gt;&amp;lt;[Receipt Time Difference]={"&amp;gt;=1"}&amp;gt;&lt;/STRONG&gt;} [Trade ID])/Count([Trade ID]),'##.##%') &lt;/P&gt;&lt;P&gt;works, but only after I defined Receipt Time Difference on load. I wanted to use something like&lt;/P&gt;&lt;P&gt;=Num(Count({$&lt;STRONG&gt;&amp;lt;[Receipt To]-[Receipt From]={"&amp;gt;=1"}&amp;gt;&lt;/STRONG&gt;} [Trade ID])/Count([Trade ID]),'##.##%') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but couldn't get any ()/[]/{}/$ combination to work. What would have been the correct syntax here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644923#M236353</guid>
      <dc:creator />
      <dc:date>2014-06-09T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644924#M236354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a set expression, you can use only [edit: single] field names left from the equal sign [edit: no calculations / expressions], so it would really be appropriate and performant to calculate this field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edit:] You can maybe use a set expression with an advanced search, but the performance would be worse than using a precalculated field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644924#M236354</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-09T14:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644925#M236355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're better off calculating the difference in the script. But perhaps this will work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Num(Count({$&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;lt;[Trade ID]={'=[Receipt To]-[Receipt From]&amp;gt;=1'}&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;} [Trade ID])/Count([Trade ID]),'##.##%')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644925#M236355</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-09T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644926#M236356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to do directly what you have written, you should build a field (in the script) that computes &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Receipt To]-[Receipt From]&lt;/STRONG&gt; and then use that new field in your set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it heklps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644926#M236356</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-09T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644927#M236357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I'll have to do it this way then. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644927#M236357</guid>
      <dc:creator />
      <dc:date>2014-06-09T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644928#M236358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like your expression already uses a single field name &lt;EM&gt;Spilled&lt;/EM&gt; from your data model, just selecting value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: and yes, aliasing the field &lt;EM&gt;spilled&lt;/EM&gt; to &lt;EM&gt;Spilled&lt;/EM&gt; will work, if &lt;EM&gt;spilled&lt;/EM&gt; is part of your input table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644928#M236358</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-09T14:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax with multiple variables</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644929#M236359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;edit &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Syntax-with-multiple-variables/m-p/644929#M236359</guid>
      <dc:creator />
      <dc:date>2014-06-09T14:58:52Z</dc:date>
    </item>
  </channel>
</rss>

