<?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: Calculate Differences in a Column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611662#M45472</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/75411"&gt;@rohi__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't know if I got it right... See&lt;/P&gt;&lt;P&gt;In load editor:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table:
load order, cumulated, If(order = previous(order), cumulated - previous(cumulated), 0) as single inline [
order, cumulated,
1,0,
1,1,
1,3,
1,6,
1,9,
1,10,
1,208,
2,0,
2,3,
2,6,
2,9,
2,10,
2,167,
3,0,
3,1,
3,1,
3,3,
3,4,
3,11,
3,55
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.png" style="width: 500px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16889i2A6C2E9DE29A6B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.png" alt="table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 15:06:41 GMT</pubDate>
    <dc:creator>Ezirraffner</dc:creator>
    <dc:date>2019-08-12T15:06:41Z</dc:date>
    <item>
      <title>Calculate Differences in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611616#M45468</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have several orders with a cumulative duration. Now I want to calculate the single duration per step.&lt;/P&gt;&lt;P&gt;I have tried this with&lt;/P&gt;&lt;P&gt;If(Order = previous(Order), Previous(cumulated)-cumulated, 0) as single&lt;/P&gt;&lt;P&gt;Now the single time is shifted by one row.&lt;/P&gt;&lt;P&gt;How do I achieve that it's not shifted anymore?&lt;/P&gt;&lt;P&gt;Thank you very much for your support.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611616#M45468</guid>
      <dc:creator>rohi__</dc:creator>
      <dc:date>2024-11-16T20:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Differences in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611662#M45472</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/75411"&gt;@rohi__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I don't know if I got it right... See&lt;/P&gt;&lt;P&gt;In load editor:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table:
load order, cumulated, If(order = previous(order), cumulated - previous(cumulated), 0) as single inline [
order, cumulated,
1,0,
1,1,
1,3,
1,6,
1,9,
1,10,
1,208,
2,0,
2,3,
2,6,
2,9,
2,10,
2,167,
3,0,
3,1,
3,1,
3,3,
3,4,
3,11,
3,55
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.png" style="width: 500px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16889i2A6C2E9DE29A6B5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.png" alt="table.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 15:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611662#M45472</guid>
      <dc:creator>Ezirraffner</dc:creator>
      <dc:date>2019-08-12T15:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Differences in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611859#M45487</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/73227"&gt;@Ezirraffner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I had to order the data properly...&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the App it showed me the correct sequence but when i looked up the Data Model Viewer it was all messed up.&lt;/P&gt;&lt;P&gt;Thanks for your Reply!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 07:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Differences-in-a-Column/m-p/1611859#M45487</guid>
      <dc:creator>rohi__</dc:creator>
      <dc:date>2019-08-13T07:55:36Z</dc:date>
    </item>
  </channel>
</rss>

