<?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: Summing duration / slider not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421917#M512009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Avg({$&amp;lt;JourneyTime={"&amp;gt;=$(=Interval(vStartJourneyTime, 'mm'))&amp;lt;=$(=Interval(vEndJourneyTime, 'mm'))"}&amp;gt;} JourneyTime),'h:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 14:23:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-04T14:23:55Z</dc:date>
    <item>
      <title>Summing duration / slider not working</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421916#M512008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I originally had this formula in script editor&lt;/P&gt;&lt;P&gt;// Time(num(time#(DDURATION, 'hh:mm')) + num(time#(RDURATION, 'hh:mm')) , 'hh:mm') as JourneyTime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then I realized if the duration went over 24 hours it would not calculate correctly. So if one duration was 15:30 and the other was 12:45 minutes it would look at is as 3:15 hours instead of 28:15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two sliders each with a variable (they wanted sliders). One variable as vStartJourneyTime and the other slider with vEndJourneyTime. Both are showing Number as Interval hh:mm. This worked until we noticed it was calculating total duration in hours. In the script I changed it to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; interval(Time((DDURATION+RDURATION),'hh:mm'),'mm')&amp;nbsp; AS JourneyTime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the sliders are not working when working with the chart. This was the original expression in the chart:&lt;/P&gt;&lt;P&gt;=Interval(Avg({$&amp;lt;JourneyTime={'&amp;gt;=$(vStartJourneyTime)&amp;lt;=$(vEndJourneyTime)'}&amp;gt;}JourneyTime),'h:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work without the set analysis statement&lt;/P&gt;&lt;P&gt;=Interval(Avg(JourneyTime),'h:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421916#M512008</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-12-04T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summing duration / slider not working</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421917#M512009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Interval(Avg({$&amp;lt;JourneyTime={"&amp;gt;=$(=Interval(vStartJourneyTime, 'mm'))&amp;lt;=$(=Interval(vEndJourneyTime, 'mm'))"}&amp;gt;} JourneyTime),'h:mm')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421917#M512009</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-04T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Summing duration / slider not working</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421918#M512010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! That worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-duration-slider-not-working/m-p/1421918#M512010</guid>
      <dc:creator>mp802377</dc:creator>
      <dc:date>2017-12-04T14:37:26Z</dc:date>
    </item>
  </channel>
</rss>

