<?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: Time difference between two columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1996041#M82478</link>
    <description>&lt;P&gt;erste spalte steht 155000 = 15:50:05&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zweite spalte steht&amp;nbsp;163000 =16:30:00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Es muss als richtiges Differenz Ergebnis zurückgeben: 00:40:55 (40 Minuten und 55 Sekunde)&lt;/P&gt;
&lt;P&gt;Gibt es so eine andere Methode um die Zeit zu subtrahieren?&lt;/P&gt;
&lt;P&gt;Auch bei der Subtraktion von Zeiten handelt es sich nicht um eine Subtraktion zwischen Zahlen.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 09:48:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-24T09:48:25Z</dc:date>
    <item>
      <title>Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995491#M82419</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I wanted to calculate the Time difference between two columns like the following code:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;//First I plotted the time for 2 columns before the difference.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Timestamp(Timestamp#(@1,'YYYYMMDDhhmmss'),'hh:mm:ss') as Dat1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Timestamp(Timestamp#(@14,'YYYYMMDDhhmmss'),'hh:mm:ss') as Dat2,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;//&amp;nbsp;before Time difference between two columns&lt;BR /&gt;&lt;STRONG&gt;interval(Timestamp(Timestamp#(@1,'YYYYMMDDhhmmss'),'hh:mm:ss') - Timestamp(Timestamp#(@14,'YYYYMMDDhhmmss'),'hh:mm:ss') , 'hh:mm:ss') as diff&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;But it gives me wrong values.&amp;nbsp;In addition, the date and time is the following: 20221007115001&lt;/P&gt;
&lt;P&gt;If anyone can help me I would be grateful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995491#M82419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995654#M82421</link>
      <description>&lt;P&gt;What's your expected output from this &lt;STRONG&gt;20221007115001&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 16:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995654#M82421</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-10-21T16:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995753#M82439</link>
      <description>&lt;P&gt;please post some sample data and your expected result.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Oct 2022 10:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995753#M82439</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-10-22T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995873#M82457</link>
      <description>&lt;P&gt;When handling dates I always recommend to focus on working with the underlying numbers first, and converting into a human readable date/timestamp/time as the absolute last step. So firstly check whether your @1-field is being interpreting properly by the timestamp#-function, and then do the same for @14-field. A proper timestamp number will be something like 44000,5 or 44325.25. These numbers are easy to subtract in an understandable fashion, the difference between my examples being 324.75, or 324 days and 18 hours.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 20:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1995873#M82457</guid>
      <dc:creator>oskartoivonen</dc:creator>
      <dc:date>2022-10-23T20:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1996041#M82478</link>
      <description>&lt;P&gt;erste spalte steht 155000 = 15:50:05&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zweite spalte steht&amp;nbsp;163000 =16:30:00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Es muss als richtiges Differenz Ergebnis zurückgeben: 00:40:55 (40 Minuten und 55 Sekunde)&lt;/P&gt;
&lt;P&gt;Gibt es so eine andere Methode um die Zeit zu subtrahieren?&lt;/P&gt;
&lt;P&gt;Auch bei der Subtraktion von Zeiten handelt es sich nicht um eine Subtraktion zwischen Zahlen.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 09:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1996041#M82478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T09:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between two columns</title>
      <link>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1996301#M82491</link>
      <description>&lt;P&gt;I'm not sure how&amp;nbsp;&lt;SPAN&gt;155000 is supposed to represent 15:50:05 and the difference between&amp;nbsp;15:50:05 and&amp;nbsp;16:30:00 could be&amp;nbsp;00:40:55, but maybe this example helps:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1666643333709.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92036i7B41A619D04F413B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1666643333709.png" alt="MarcoWedel_0-1666643333709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD Time(Time#(@1,'hhmmss'),'hh:mm:ss') as Time1,
     Time(Time#(@2,'hhmmss'),'hh:mm:ss') as Time2,
     Interval(Time#(@2,'hhmmss')-Time#(@1,'hhmmss'),'hh:mm:ss') as diff
Inline [
155005, 163000
123456, 234543
012345, 123454
](no labels);
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 20:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-difference-between-two-columns/m-p/1996301#M82491</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-10-24T20:30:07Z</dc:date>
    </item>
  </channel>
</rss>

