<?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: Set Analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797630#M1030337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you have a date formatting problem - the field Birthdate looks like a proper Date, while the function max(Birthdate) returns a number. Plus, you are missing an opening bracket before the field Birthdate, which likely causes your Set Analysis to be ignored altogether. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The corrected syntax should be something like this (typing it "in the dark"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Birthdate ={"=$(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;num(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Birthdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;))=&lt;/SPAN&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Birthdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;))"}&amp;gt;} [&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;If it's still wrong, please post an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 17:14:20 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2015-02-12T17:14:20Z</dc:date>
    <item>
      <title>Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797627#M1030334</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 have the below data loaded in a table and wanted to show the sum of Salary whose Birthdate is the biggest in the current selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 229pt; border-collapse: collapse;" width="305"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD class="xl63" height="20" style="background-color: transparent; width: 48pt; height: 15pt; border: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Emp ID&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; width: 56pt; border-left-color: windowtext; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="75"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Birthdate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; width: 77pt; border-left-color: windowtext; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="102"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Emp Name&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; width: 48pt; border-left-color: windowtext; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="64"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Salary&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;111&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;05/05/1955&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;AAAA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;100000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;04/04/1944&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;BBBB&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;1000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;333&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;03/03/1933&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;EEEEE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;444&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;02/02/1922&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;CCCC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;555&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;01/01/1911&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;DDDD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;10000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;666&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;06/06/1966&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;EEEEE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;9999&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD align="right" class="xl63" height="20" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; height: 15pt; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;02/02/1922&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;FFFF&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-bottom: windowtext 0.5pt solid; background-color: transparent; border-top-color: windowtext; border-left-color: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;3333&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I added a Text object with this expression:&lt;/SPAN&gt;&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;sum&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Birthdate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=(max([Birthdate]))}&amp;gt;} [Salary]) &lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What's wrong with this expression cos it is only showing a '-'.... ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 16:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797627#M1030334</guid>
      <dc:creator />
      <dc:date>2015-02-12T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797628#M1030335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your field [Salary] should not be in italic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore your set analysis is not closed ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to close the max part in with ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 8pt; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;[Birthdate]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt; = &lt;SPAN style="text-decoration: line-through;"&gt;{&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;"=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-style: inherit; text-decoration: line-through; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080; text-decoration: line-through;"&gt;&lt;EM&gt;$(=(max([Birthdate]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt; font-family: inherit; text-decoration: line-through; font-weight: inherit;"&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="text-decoration: line-through;"&gt;}&lt;/SPAN&gt;&amp;gt;} [Salary])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"=$(=Max(Birthdate))"}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em; color: #808080; font-style: inherit; font-size: 8pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 16:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797628#M1030335</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-12T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797629#M1030336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michiel.&amp;nbsp; It is now showing a sum, but the total is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is showing a sum of all the salary in the selection.&amp;nbsp; If I don't select anything, it shows 124442, which is the sum of all salary.&amp;nbsp; if I just select some rows, it will add up their salary, instead of only summing up the largest birthdate's salary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is still not correct here:&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="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Birthdate] ={"=$(=Max([&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Birthdate&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;]))"}&amp;gt;} [&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style=": ; color: #800000; font-size: 1;"&gt;]) &lt;/SPAN&gt;&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: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any other suggestions please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 16:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797629#M1030336</guid>
      <dc:creator />
      <dc:date>2015-02-12T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797630#M1030337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you have a date formatting problem - the field Birthdate looks like a proper Date, while the function max(Birthdate) returns a number. Plus, you are missing an opening bracket before the field Birthdate, which likely causes your Set Analysis to be ignored altogether. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The corrected syntax should be something like this (typing it "in the dark"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Birthdate ={"=$(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;num(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Birthdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;))=&lt;/SPAN&gt;$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Birthdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;))"}&amp;gt;} [&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Salary&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;If it's still wrong, please post an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.6666679382324px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Come and learn Set Analysis and Advanced Aggregation with me at &lt;STRONG&gt;www.masterssummit.com&lt;/STRONG&gt; - take your QlikView skills to the next level!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797630#M1030337</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-12T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797631#M1030338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This worked for me. Qlikview will underline this as a syntax error, but it is fine. At least in my test.&lt;/SPAN&gt;&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;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;[Birthdate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(=Max(Date(Birthdate, 'MM/DD/YYYY')))'} &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797631#M1030338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797632#M1030339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks blackmon!&amp;nbsp; You saved my day!&lt;/P&gt;&lt;P&gt;I've slightly modified it to format the Birthdate to MM/DD/YYYY as above in the load statement, and take away the Date conversion in the expression statement and still works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question/m-p/797632#M1030339</guid>
      <dc:creator />
      <dc:date>2015-02-12T17:35:48Z</dc:date>
    </item>
  </channel>
</rss>

