<?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 Help Needed in Set Analyis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Needed-in-Set-Analyis/m-p/596808#M221028</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 want to write a set analysis expression&amp;nbsp; i have&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Hours&lt;/P&gt;&lt;P&gt;TotalGallons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example Date (04/15/204 , hours from 6 to 24 and Date 04/16/2014 hours 1 to 6)&lt;/P&gt;&lt;P&gt;when i select the max date it should do this calculation:&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 209px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" width="209"&gt;4/15/14 6:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20"&gt;4/16/14 600 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TagName = {'FM_MB_Total'},Date={'$(vMaxDate)'}&amp;gt;}TotalGallons)&lt;/P&gt;&lt;P&gt;this expression gives the readings for max date from 1 to 24 hours&amp;nbsp; i want to calculate from between current and previous date 6 am to 6 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Apr 2014 00:34:26 GMT</pubDate>
    <dc:creator>shree909</dc:creator>
    <dc:date>2014-04-19T00:34:26Z</dc:date>
    <item>
      <title>Help Needed in Set Analyis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-in-Set-Analyis/m-p/596808#M221028</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 want to write a set analysis expression&amp;nbsp; i have&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Hours&lt;/P&gt;&lt;P&gt;TotalGallons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example Date (04/15/204 , hours from 6 to 24 and Date 04/16/2014 hours 1 to 6)&lt;/P&gt;&lt;P&gt;when i select the max date it should do this calculation:&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 209px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20" width="209"&gt;4/15/14 6:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="20"&gt;4/16/14 600 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TagName = {'FM_MB_Total'},Date={'$(vMaxDate)'}&amp;gt;}TotalGallons)&lt;/P&gt;&lt;P&gt;this expression gives the readings for max date from 1 to 24 hours&amp;nbsp; i want to calculate from between current and previous date 6 am to 6 am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 00:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-in-Set-Analyis/m-p/596808#M221028</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2014-04-19T00:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed in Set Analyis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-in-Set-Analyis/m-p/596809#M221029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment; I generate some test data using a datetime field (datetime in below expression)&lt;/P&gt;&lt;P&gt;My expression is (I suppose you should adapt to your requirement adding TagName and changing date and time format at the beginning of the script)&lt;/P&gt;&lt;P&gt;=Sum ({$&amp;lt;datetime={"&amp;gt;=$(=Date(Max(date)-1 +0.25,'DD/MM/YYYY hh:mm:ss'))&amp;lt;=$(=Date(Max(date) + 0.25,'DD/MM/YYYY hh:mm:ss'))"}&amp;gt;} TotalGallons)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Apr 2014 21:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-in-Set-Analyis/m-p/596809#M221029</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-20T21:23:13Z</dc:date>
    </item>
  </channel>
</rss>

