<?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 Please help with understanding syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371750#M1176184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin and welcome to the QlikView world,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole expression uses what is known as "set analysis" all but the Sum() and the Salary, and reads as follows: Given the current state of selections of the document, sum all values in field Salary for those records that do not have in the whole data set the field IsActive equal to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not knowing the example, it sounds like if he is summing up all the amounts for those employees that are active (IsActive = 1 or anything but 0), but not those that might be active in the past, but they are no longer active (IsActive = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The element function E() returns a record set with all values excluded by the given modifier (in this case, IsActive = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2012 16:19:41 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-05-28T16:19:41Z</dc:date>
    <item>
      <title>Please help with understanding syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371748#M1176182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Very new to QV, and I come from a traditional programming world (VBA, SQL, etc.) I need to filter data in a list. I looked for previous messages, and I found a "simple" example which took a simple list of three columns: the first was just a letter, the second column ("IsActive") was either 1 or 0, and the third was an amount ("Salary"). The expression he used to filter the table was: &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;=&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IsActive&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={0}&amp;gt;})&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;I cannot make head nor hair out of this. He used a LOAD * INLINE statement to add data like "a,1,100,b,0,400,c,1,200", etc. for the purposes of the example The output just showed a and c, their IsActive status (both "1"), and their respective salary amounts, and the sum of salaries at the top.&amp;nbsp; Could someone take pity on a noob, and explain what "(1&amp;lt;IsActive={0}&amp;gt;))&amp;gt;)" means? The QV reference manual is of limited help. Thanks in advance for your assistance.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 15:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371748#M1176182</guid>
      <dc:creator />
      <dc:date>2012-05-28T15:57:59Z</dc:date>
    </item>
    <item>
      <title>Please help with understanding syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371749#M1176183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The $ prefix means all selected data but 1 prefix mean all data without any filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 16:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371749#M1176183</guid>
      <dc:creator />
      <dc:date>2012-05-28T16:07:05Z</dc:date>
    </item>
    <item>
      <title>Please help with understanding syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371750#M1176184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin and welcome to the QlikView world,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole expression uses what is known as "set analysis" all but the Sum() and the Salary, and reads as follows: Given the current state of selections of the document, sum all values in field Salary for those records that do not have in the whole data set the field IsActive equal to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not knowing the example, it sounds like if he is summing up all the amounts for those employees that are active (IsActive = 1 or anything but 0), but not those that might be active in the past, but they are no longer active (IsActive = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The element function E() returns a record set with all values excluded by the given modifier (in this case, IsActive = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 16:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371750#M1176184</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-05-28T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Please help with understanding syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371751#M1176185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, Miguel, at least I know where to look now.. I'm reviewing the manual for "Set Analysis" (I was looking for "expression syntax", silly me!), and with your note, it's making a bit more sense. Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 16:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-understanding-syntax/m-p/371751#M1176185</guid>
      <dc:creator />
      <dc:date>2012-05-28T16:52:14Z</dc:date>
    </item>
  </channel>
</rss>

