<?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 How to compare the rows with in One Column and Substract the time stamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24512#M775003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have to compare the values present in two rows in Columns only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STOREID &lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3630&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02.05.2018 05:07:24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;525&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;525&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3635&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.05.2018 09:10:29&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3635&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.05.2018 15:16:24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #33cccc;"&gt;123&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #000000;"&gt;A/F3635&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;05.05.2018&amp;nbsp; 16:52:29&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3638&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11.05.2018 19:24:28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;565&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;565&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3639&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.05.2018 18:26:25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;141&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;141&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;Here the STOREID and DateTime and Sales are 3 fields. When the transaction is happened with in the 2 hours it should be consider as only one transaction.&amp;nbsp; For above example: STORE ID A/F3635 has done 3 transactions. There are 2 transctions are happend with in the 2 hours. so i considered as only One sales, i.e., 123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below sample attachment file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ravikumar_iyana</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24512#M775003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have to compare the values present in two rows in Columns only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;STOREID &lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date Time&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3630&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02.05.2018 05:07:24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;525&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;525&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3635&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.05.2018 09:10:29&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3635&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.05.2018 15:16:24&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #33cccc;"&gt;123&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #000000;"&gt;A/F3635&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;05.05.2018&amp;nbsp; 16:52:29&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3638&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11.05.2018 19:24:28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;565&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;565&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A/F3639&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.05.2018 18:26:25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;141&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;141&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;Here the STOREID and DateTime and Sales are 3 fields. When the transaction is happened with in the 2 hours it should be consider as only one transaction.&amp;nbsp; For above example: STORE ID A/F3635 has done 3 transactions. There are 2 transctions are happend with in the 2 hours. so i considered as only One sales, i.e., 123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below sample attachment file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24512#M775003</guid>
      <dc:creator>ravikumar_iyana</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24513#M775004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide sample data? It will be appreciated &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 05:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24513#M775004</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T05:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24514#M775005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pfa, Hope this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 05:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24514#M775005</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-14T05:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24515#M775006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest on Int column. when the Date and time is seperate.&lt;/P&gt;&lt;P&gt;As per the Ravi Source data, The below script is supporting for to generate Int column. If there is seperate column for Date and Time. &lt;/P&gt;&lt;P&gt;Like below i tried. &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt; timestamp#(Ac.GI date &amp;amp;' '&amp;amp; Time(PGI_Time) ,'DD/MM/YY hh:mm:ss') as DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Store ID, &lt;/P&gt;&lt;P&gt;Time(PGI_Time) as Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ac.GI date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Interval( Timestamp#(Ac.GI date,'MM.DD.YYYY hh:mm:ss')-Previous(Timestamp#(Ac.GI date,'MM.DD.YYYY //hh:mm:ss')),'h') as Int,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Interval( timestamp#(Ac.GI date, &amp;amp;' '&amp;amp;Time(PGI_Time) ,'DD/MM/YY hh:mm:ss')-Previous(timestamp#(Ac.GI date&amp;amp;' '&amp;amp; Time(PGI_Time) ,'DD/MM/YY hh:mm:ss')),'hh:mm:ss') as Int,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: green;"&gt;if(STOREID=Previous(STOREID) and Interval(Time#([Date Time],'M.D.YYYY h:mm:ss')-Previous(Time#([Date Time],'M.D.YYYY h:mm:ss')),'h')&amp;lt;='2',Sales,'') as New&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: maroon;"&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="301146" data-objecttype="1" href="https://community.qlik.com/thread/301146"&gt;https://community.qlik.com/thread/301146&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;html&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;codepage&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt; 1252, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt; @1, filters(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;Remove&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;Col&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;Pos&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: blue;"&gt;Top&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;, 4))&lt;BR /&gt; )); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 07:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24515#M775006</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T07:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24516#M775007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, if the Date and time are two different field , then you can combine them and make a proper date.&lt;/P&gt;&lt;P&gt;The ides is to have the Field in proper timestamp format so Qlikview can understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below should work, the logic goes the same.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;timestamp#(date(Ac.GI date,'DD/MM/YY') &amp;amp;' '&amp;amp; Time(PGI_Time) ,'DD/MM/YY hh:mm:ss') as DateTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Br,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;KC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 08:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24516#M775007</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-14T08:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24517#M775008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jyothish, Its working but i used&amp;nbsp; this in the&amp;nbsp; interval function. Int column not showing any thing.&lt;/P&gt;&lt;P&gt;Can you please check this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; Interval( timestamp#(Ac.GI date, &amp;amp;' '&amp;amp;Time(PGI_Time) ,'DD/MM/YY hh:mm:ss')-Previous(timestamp#(Ac.GI date&amp;amp;' '&amp;amp; Time(PGI_Time) ,'DD/MM/YY hh:mm:ss')),&lt;STRONG&gt;'hh:mm:ss') as&lt;/STRONG&gt; Int,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 08:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24517#M775008</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T08:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24518#M775009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the exact format of both date and time field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 08:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24518#M775009</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-14T08:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24519#M775010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your great response.&lt;/P&gt;&lt;P&gt;Please consider A,B,C,D columns. &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="299"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="88"&gt;Store ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="69"&gt;Sales&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="72"&gt;Ac.GI date&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="70"&gt;PGI_Time&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load *,&lt;/P&gt;&lt;P&gt;//if( [Vehicle Number]=Previous([Vehicle Number]) and peek(Int)&amp;lt;='2','',Sales) as NEw;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; timestamp#(Ac.GI date &amp;amp;' '&amp;amp; time(PGI_Time), 'DD/MM/YY hh:mm:ss') as DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [Vehicle Number], &lt;/P&gt;&lt;P&gt;Time(PGI_Time) as Time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ac.GI date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Interval( timestamp#(Ac.GI date &amp;amp;' '&amp;amp;&amp;nbsp; time(PGI_Time) ,'DD/MM/YY hh:mm:ss')-Previous(timestamp#(Ac.GI date&amp;amp;' '&amp;amp; time(PGI_Time),'DD/MM/YY hh:mm:ss')),'mm') as Int,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( [Vehicle Number]=Previous( [Vehicle Number]) and Interval(Time#(Ac.GI date,'M.D.YYYY h:mm:ss')-Previous(Time#(Ac.GI date,'M.D.YYYY h:mm:ss')),'h')&amp;lt;='2',Quantity,'') as New1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[D:\....&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Constantia','serif'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 08:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24519#M775010</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T08:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24520#M775011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;interval(timestamp(timestamp#(Date(Date#(Date,'DD/MM/YY'),'DD/MM/YY')&amp;amp;' '&amp;amp;time(Time#(Time,'hh:mm:ss')),'DD/MM/YY hh:mm:ss TT'),'DD/MM/YY hh:mm:ss TT') -&lt;/P&gt;&lt;P&gt;previous(timestamp(timestamp#(Date(Date#(Date,'DD/MM/YY'),'DD/MM/YY')&amp;amp;' '&amp;amp;time(Time#(Time,'hh:mm:ss')),'DD/MM/YY hh:mm:ss TT'),'DD/MM/YY hh:mm:ss TT')),'h') as Int ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, Time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25/08/17, 3:03:21 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25/08/17, 4:05:21 &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24520#M775011</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-14T09:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24521#M775012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Jyothish, Not working this one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24521#M775012</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24522#M775013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is working for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Store ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date([Ac.GI date],'MM/DD/YY') as [Ac.GI date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time(PGI_Time,'hh:mm:ss') as PGI_Time ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interval(timestamp(timestamp#(date([Ac.GI date],'MM/DD/YY')&amp;amp;' '&amp;amp;time(PGI_Time,'hh:mm:ss'),'MM/DD/YY hh:mm:ss'),'MM/DD/YY hh:mm:ss') - &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previous(timestamp(timestamp#(date([Ac.GI date],'MM/DD/YY')&amp;amp;' '&amp;amp;time(PGI_Time,'hh:mm:ss'),'MM/DD/YY hh:mm:ss'),'MM/DD/YY hh:mm:ss')),'h') as New&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Multiple Logic Building], filters(&lt;/P&gt;&lt;P&gt;Remove(Col, Pos(Top, 6)),&lt;/P&gt;&lt;P&gt;Remove(Col, Pos(Top, 5))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24522#M775013</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-14T09:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24523#M775014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one will be correct answer.&amp;nbsp; I tried with my Actual Data. &lt;/P&gt;&lt;P&gt;There is Vehiclenumber transactions happened in the same data and time difference is also more than 2 hours, At this criteria NEw Column should get both values. 35 and 35.&lt;/P&gt;&lt;P&gt;If the Time difference is lessthan 2 hours at that time we can consider as only one value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="smallclarity.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202303_smallclarity.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 10:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24523#M775014</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24524#M775016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Jyothish, Its working fine. But the problem is here, Even we put the condition peek(Int)&amp;lt;='2', Its not considering the time difference. Below highlighted screenshot the time difference is more than 2 hours. Still the finalQuantity is not taken. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Intarval.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/202307_Intarval.PNG" style="height: 381px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 10:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24524#M775016</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24525#M775018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it Jyothish,&amp;nbsp; I very sorry. &lt;/P&gt;&lt;P&gt;Instead Lessthan i put it Greater than. &lt;/P&gt;&lt;P&gt;@ Ravi, Hope you got the answer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 10:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24525#M775018</guid>
      <dc:creator>rkpatelqlikview</dc:creator>
      <dc:date>2018-05-14T10:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the rows with in One Column and Substract the time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24526#M775021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a Lot Jyothish&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 13:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-the-rows-with-in-One-Column-and-Substract-the/m-p/24526#M775021</guid>
      <dc:creator>ravikumar_iyana</dc:creator>
      <dc:date>2018-05-14T13:22:56Z</dc:date>
    </item>
  </channel>
</rss>

