<?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 Interval on set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289818#M461640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis with this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Region = {'Asia'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an interval involved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="100.666666" style="width: 433.667px; height: 58.6667px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="97" width="395"&gt;Interval(Date1-Date2,'mm') &amp;lt; 121&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need to calculate where the sum of amount for asia only where the difference between the two timestamp are &amp;lt; 121 mins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I def. need to do it all in one expression. cant do it in dimension, is there any way that i can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 11:06:39 GMT</pubDate>
    <dc:creator>n1ef5ng1</dc:creator>
    <dc:date>2016-12-20T11:06:39Z</dc:date>
    <item>
      <title>Interval on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289818#M461640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis with this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Region = {'Asia'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an interval involved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="100.666666" style="width: 433.667px; height: 58.6667px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="97" width="395"&gt;Interval(Date1-Date2,'mm') &amp;lt; 121&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need to calculate where the sum of amount for asia only where the difference between the two timestamp are &amp;lt; 121 mins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I def. need to do it all in one expression. cant do it in dimension, is there any way that i can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289818#M461640</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2016-12-20T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interval on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289819#M461641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calculate interval in script to create a field and then use that field in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Region = {'Asia'},IntervalField = {"&amp;lt;121"}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289819#M461641</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2016-12-20T11:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interval on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289820#M461642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try this, I hope you may have separate field for Interval in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Region, Date1, Date2, Interval(Date1-Date,'mm') as DateDiff, Amount;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Region, Date1, Date2, Amount from DataSource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;sum({&amp;lt;Region = {'Asia'}, DateDiff = {"$(=Hour(DateDiff) &amp;lt; 121/(24*60))"}&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289820#M461642</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-20T11:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interval on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289821#M461643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Region = {'Asia'}, Amount = {"=Interval(Date1-Date2,'mm')&amp;lt;121"} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;if(Interval(Date1-Date2,'mm') &amp;lt; 121, sum({&amp;lt;Region = {'Asia'}&amp;gt;}Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby it might be useful to do calculation-step within the script like suggested within the other answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 12:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289821#M461643</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-12-20T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interval on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289822#M461644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be this:&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;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;Region = {'Asia'}&amp;gt;} If(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Date1-Date2&lt;/SPAN&gt; &amp;lt; MakeTime(2, 1), Amount))&lt;/STRONG&gt;&lt;/SPAN&gt;&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;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Create Date1-Date2 in script and then like this:&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: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date1-Date2 as IntervalField&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="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;Sum({&amp;lt;Region = {'Asia'}, &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;IntervalField&lt;/STRONG&gt; = {$(=121/(24*60))}&amp;gt;} Amount)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 12:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-on-set-analysis/m-p/1289822#M461644</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T12:10:27Z</dc:date>
    </item>
  </channel>
</rss>

