<?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: calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculation/m-p/998998#M339690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample is attached and ExpectedOutput and required conditions are mentioned in the attached excel file. !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 11:29:31 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-10-30T11:29:31Z</dc:date>
    <item>
      <title>calculation</title>
      <link>https://community.qlik.com/t5/QlikView/calculation/m-p/998996#M339688</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;Can some one help to get the expected output column calculation in the attached file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:If it's possible the calculation should be from front end(chart level) else from load statement(I'm trying with previous/peek functions) but data is not in sequential manner(especially the status),so i'm not getting expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 10:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation/m-p/998996#M339688</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-10-30T10:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculation</title>
      <link>https://community.qlik.com/t5/QlikView/calculation/m-p/998997#M339689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you load the data into a qlikview document at least, and then upload the qvw file rather than just the spreadsheet. You can still include the spreadsheet if the question relates to the loading of the data. I don't have time to build the app from scratch myself, and&amp;nbsp; that probably applies to other people chow could potentially help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 11:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation/m-p/998997#M339689</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-30T11:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculation</title>
      <link>https://community.qlik.com/t5/QlikView/calculation/m-p/998998#M339690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample is attached and ExpectedOutput and required conditions are mentioned in the attached excel file. !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 11:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation/m-p/998998#M339690</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-10-30T11:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: calculation</title>
      <link>https://community.qlik.com/t5/QlikView/calculation/m-p/998999#M339691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *, If(STATUS='Awaiting Reply',floor(LASTCHANGEDTS)-alt(CalcDate,floor(CREATETS))) as OutPut;&lt;/P&gt;&lt;P&gt;LOAD TASK_REF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TASK_VERSION_KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSIONID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CREATETS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASTCHANGEDTS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExpectedOutPut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Conditions:],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(previous(STATUS)='Awaiting Reply' and STATUS='Reply Received',floor(LASTCHANGEDTS),Peek('CalcDate')) as CalcDate&lt;/P&gt;&lt;P&gt;FROM [comm189784.xlsx] (ooxml, embedded labels, table is Data);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation/m-p/998999#M339691</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-30T12:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculation</title>
      <link>https://community.qlik.com/t5/QlikView/calculation/m-p/999000#M339692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for your above script,that is working only for one case which I shared earlier above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i tried to apply the above script for few more case that 's not working,because of my data is very dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u look into the attached cases &amp;amp; help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, Actually i'm assuming for calculation even data is dynamic---&amp;gt;&lt;/P&gt;&lt;P&gt;For same ticket,&lt;/P&gt;&lt;P&gt;Case 1: First time status as "&lt;SPAN style="font-size: 13.3333px;"&gt;Awaiting Reply&lt;/SPAN&gt;": &lt;SPAN style="font-size: 13.3333px;"&gt;Outbound emails (Awaiting Reply)&lt;/SPAN&gt; - CreatedDate&lt;/P&gt;&lt;P&gt;Case 2: if status as &lt;SPAN style="font-size: 13.3333px;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Awaiting Reply&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;" 2nd time: &lt;/SPAN&gt;Outbound emails 2nd time (Awaiting Reply)- Inbound-emails 1'st Time (Reply received)&lt;/P&gt;&lt;P&gt;..etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me it's challenging right now, could you assist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 16:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation/m-p/999000#M339692</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-10-30T16:11:54Z</dc:date>
    </item>
  </channel>
</rss>

