<?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: Re: Re: Help required for calculation in chart for date difference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771077#M1051178</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;LOAD *, if(previous(EQUNR_S=EQUNR_S, Doc_Date - previous(Doc_Date),0) as TT,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S&amp;lt;&amp;gt;EQUNR_S, 1, 0) AS Flag,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S=EQUNR_S, RangeSum(Peek([TT]), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Doc_Date - previous(Doc_Date)), (&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Doc_Date - previous(Doc_Date)) AS AccumSum&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Order By EQUNR_S, Doc_Date;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Result:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S&amp;lt;&amp;gt;EQUNR_S, 1, 0) AS Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Order By EQUNR_S, Doc_Date DESC;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Now in front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Chart : Straight Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Dimension: &lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;EQUNR, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Act_Typ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;Expression: Sum({&amp;lt;Flag ={1}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #ffffee;"&gt;AccumSum)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;REgards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 06:13:23 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-11-06T06:13:23Z</dc:date>
    <item>
      <title>Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771067#M1051168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Expert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need help for EQUNR_S to get Act_Typ difference for same field Doc-Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to calculate the same in chart or while loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 577px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="58"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="132"&gt;Ship_Key&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="83"&gt;Doc_Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="81"&gt;EQUNR_S&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="69"&gt;Act_Typ&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="154"&gt;get date difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000000001000101397Z20&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01.02.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000000002000101397Z30&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01.02.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;10076&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000001797000201397Z30&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10.06.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;129.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;10078&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000001798000201397Z30&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13.06.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;3.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;10080&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000001799000201397Z20&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;13.06.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;T&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;11256&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002262000101397Z20&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;16.07.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;33.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="19" style="border-top: none;"&gt;13189&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003284000101397Z30&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;29.10.2011&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1397&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;I&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;105.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771067#M1051168</guid>
      <dc:creator />
      <dc:date>2014-11-05T09:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771068#M1051169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ship_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EQUNR_S,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Act_Typ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(EQUNR_S=previous(EQUNR_S),Doc_Date - previous(Doc_Date),0) as [get date difference]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...somewhere...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771068#M1051169</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-05T09:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771069#M1051170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above data is sor&lt;/P&gt;&lt;P&gt;Its giving 0 value in load statement as mentioned by you.&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;Ashif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 11:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771069#M1051170</guid>
      <dc:creator />
      <dc:date>2014-11-05T11:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771070#M1051171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Doc_Date field contains only one value. Every record has the same Doc_Date value, so there's never a difference between the Doc_Date value of one record and the Doc_Date value of another record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 11:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771070#M1051171</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-05T11:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771071#M1051172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've loaded all the records with example. Check the same. There is difference in date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771071#M1051172</guid>
      <dc:creator />
      <dc:date>2014-11-05T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771072#M1051173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is that your data is not sorted by EQUNR_S first. You can resolve that using a resident load with an order by clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * FROM YourQVD (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD *, if(previous(EQUNR_S=EQUNR_S, Doc_Date - previous(Doc_Date),0) as TT;&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Order By EQUNR_S, Doc_Date;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 13:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771072#M1051173</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-05T13:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771073#M1051174</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;Can you post the entire script, are you using any aggregate functions like Sum(), Count(), Max(), Min() etc.&amp;nbsp; If you are using then use Group by in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load EQUNR_S,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Doc_Date,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(SomeField) AS Total&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM DataSource&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by EQUNR_S, Doc_Date; -- You have to specify all the fields here given in the Load.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 05:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771073#M1051174</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-06T05:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771074#M1051175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now i want the chart to appear like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 540px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="35"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="57"&gt;EQUNR&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="60"&gt;Act_Typ&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;Sender&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;Receiver&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="59"&gt;Doc_Type&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;Doc_Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="135"&gt;Operation time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2015&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/02/2011&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2169&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/02/2011&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;282&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;14511&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10/11/2011&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;296&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25160&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/09/2012&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25667&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25668&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25668&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25666&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;T&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000002948&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0000003398&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me with chart expression to get the result as current result is getting like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;EQUNR&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Act_Typ&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;Operation time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-578&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;326&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 05:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771074#M1051175</guid>
      <dc:creator />
      <dc:date>2014-11-06T05:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771075#M1051176</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;Add one more column in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Result:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;LOAD *, if(previous(EQUNR_S=EQUNR_S, Doc_Date - previous(Doc_Date),0) as TT,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #ffffee;"&gt;if(previous(EQUNR_S&amp;lt;&amp;gt;EQUNR_S, 1, 0) AS Flag,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #ffffee; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(previous(EQUNR_S=EQUNR_S, RangeSum(Peek([TT]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #ffffee;"&gt;Doc_Date - previous(Doc_Date)), (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #ffffee;"&gt;Doc_Date - previous(Doc_Date)) AS AccumSum&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Order By EQUNR_S, Doc_Date;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Now in front end&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Chart : Straight Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Dimension: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;EQUNR, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Act_Typ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Expression: Sum({&amp;lt;Flag ={1}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #ffffee;"&gt;AccumSum)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 05:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771075#M1051176</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-06T05:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771076#M1051177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not gettong the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="239" style="width: 323px; height: 241px;" width="321"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="35"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="72"&gt;EQUNR_S&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="60"&gt;Act_Typ&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;Doc_Date&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2015&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/02/2011&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2169&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/02/2011&lt;/TD&gt;&lt;TD align="right"&gt;282&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;14511&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;F&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10/11/2011&lt;/TD&gt;&lt;TD align="right"&gt;296&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25160&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/09/2012&lt;/TD&gt;&lt;TD align="right"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25666&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;T&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25667&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;ER&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25668&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;01/10/2012&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 06:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771076#M1051177</guid>
      <dc:creator />
      <dc:date>2014-11-06T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Help required for calculation in chart for date difference</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771077#M1051178</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;LOAD *, if(previous(EQUNR_S=EQUNR_S, Doc_Date - previous(Doc_Date),0) as TT,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S&amp;lt;&amp;gt;EQUNR_S, 1, 0) AS Flag,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S=EQUNR_S, RangeSum(Peek([TT]), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Doc_Date - previous(Doc_Date)), (&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Doc_Date - previous(Doc_Date)) AS AccumSum&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Order By EQUNR_S, Doc_Date;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Result:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;if(previous(EQUNR_S&amp;lt;&amp;gt;EQUNR_S, 1, 0) AS Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Resident Temp&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Order By EQUNR_S, Doc_Date DESC;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Now in front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Chart : Straight Table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;Dimension: &lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;EQUNR, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Act_Typ&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #f6f6f6;"&gt;Expression: Sum({&amp;lt;Flag ={1}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; background-color: #ffffee;"&gt;AccumSum)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;REgards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #ffffee;"&gt;&lt;SPAN style="font-style: inherit; background-color: #ffffee; font-weight: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 06:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-for-calculation-in-chart-for-date-difference/m-p/771077#M1051178</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-06T06:13:23Z</dc:date>
    </item>
  </channel>
</rss>

