<?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 New to set analysis. Why doesn't this work? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753014#M666167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use set analysis almost for the first time.&amp;nbsp; I think I'm getting hung up on syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView says the expression is OK, but it is still gives me the sum of cloudAgentSpaceUsedGB instead of limiting the set to the most recent cloudAgentSnapshotDate.&amp;nbsp; Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( {$&amp;lt;cloudAgentSnapshotDate = {"=max(cloudAgentSnapshotDate)"} &amp;gt;} cloudAgentSpaceUsedGB)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 18:14:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-01T18:14:39Z</dc:date>
    <item>
      <title>New to set analysis. Why doesn't this work?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753014#M666167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use set analysis almost for the first time.&amp;nbsp; I think I'm getting hung up on syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView says the expression is OK, but it is still gives me the sum of cloudAgentSpaceUsedGB instead of limiting the set to the most recent cloudAgentSnapshotDate.&amp;nbsp; Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum( {$&amp;lt;cloudAgentSnapshotDate = {"=max(cloudAgentSnapshotDate)"} &amp;gt;} cloudAgentSpaceUsedGB)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 18:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753014#M666167</guid>
      <dc:creator />
      <dc:date>2014-12-01T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: New to set analysis. Why doesn't this work?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753015#M666168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date comparisons can be tricky.&amp;nbsp; Try going with a literal (single quotes)&amp;nbsp; instead of a search&amp;nbsp; (double quotes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(&amp;nbsp; {$&amp;lt; = {"=max(cloudAgentSnapshotDate)"} &amp;gt;} cloudAgentSpaceUsedGB)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;=sum( {$&amp;lt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cloudAgentSnapshotDate&lt;/EM&gt;={'$(=Date(max(&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cloudAgentSnapshotDate&lt;/EM&gt;)))'}&amp;gt;}&amp;nbsp;&amp;nbsp; &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cloudAgentSpaceUsedGB&lt;/EM&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 18:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753015#M666168</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-12-01T18:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: New to set analysis. Why doesn't this work?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753016#M666169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;few things to consider:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. format of the date. max(cloudAgentSnapshotDate) will return numeric value of the date which is being compared to formatted time value, cloudAgentSnapshotDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Date function with the correct formatting should help. something like - Date(max(cloudAgentSnapshotDate), 'MM/DD/YYYY') - modify the format to your application. if the format is not correct, the sum value will not be what you expect as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. i would set a variable and use it in the set analysis expression. so define a variable vMaxDate as the expression in step 2 and for your sum expression the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; {$&amp;lt;cloudAgentSnapshotDate = {"$(=vMaxDate)"} &amp;gt;} cloudAgentSpaceUsedGB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 18:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753016#M666169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T18:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: New to set analysis. Why doesn't this work?</title>
      <link>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753017#M666170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jonathan!&amp;nbsp; It didn't like the Date function, but the single quotes did the trick.&amp;nbsp; I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 18:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-to-set-analysis-Why-doesn-t-this-work/m-p/753017#M666170</guid>
      <dc:creator />
      <dc:date>2014-12-01T18:34:24Z</dc:date>
    </item>
  </channel>
</rss>

