<?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 Shift Column up by one row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563862#M597460</link>
    <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;i hope you can help me, i have the following question :&lt;/P&gt;&lt;P&gt;How can I move a list one row up?&lt;/P&gt;&lt;P&gt;I have the Origin&amp;nbsp; Column : "myTimeStamp"&amp;nbsp; and would like to create a second column but shift it up by one row.&lt;/P&gt;&lt;P&gt;I want to calculate the time differences&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;If you don't have a script solution, I would also be happy with a nonscript solution.&lt;/P&gt;&lt;P&gt;The solution should look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sniptimestamp.PNG" style="width: 375px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9258i0B8684934736883C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sniptimestamp.PNG" alt="sniptimestamp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 14:48:17 GMT</pubDate>
    <dc:creator>mherdt1992</dc:creator>
    <dc:date>2019-04-02T14:48:17Z</dc:date>
    <item>
      <title>Shift Column up by one row</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563862#M597460</link>
      <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;i hope you can help me, i have the following question :&lt;/P&gt;&lt;P&gt;How can I move a list one row up?&lt;/P&gt;&lt;P&gt;I have the Origin&amp;nbsp; Column : "myTimeStamp"&amp;nbsp; and would like to create a second column but shift it up by one row.&lt;/P&gt;&lt;P&gt;I want to calculate the time differences&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;If you don't have a script solution, I would also be happy with a nonscript solution.&lt;/P&gt;&lt;P&gt;The solution should look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sniptimestamp.PNG" style="width: 375px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9258i0B8684934736883C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sniptimestamp.PNG" alt="sniptimestamp.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 14:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563862#M597460</guid>
      <dc:creator>mherdt1992</dc:creator>
      <dc:date>2019-04-02T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563870#M597461</link>
      <description>&lt;P&gt;You can sort the table in the script in descending order and then use Peek() or Previous function to pull the value from the previous row&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563870#M597461</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T12:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563879#M597462</link>
      <description>&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Load myTimeStamp,&lt;/P&gt;&lt;P&gt;Peek(myTimeStamp,-1) ?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563879#M597462</guid>
      <dc:creator>mherdt1992</dc:creator>
      <dc:date>2019-04-02T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563886#M597463</link>
      <description>&lt;P&gt;Yup, something along those lines... but make sure to order the timestamp in descending order. Also, do you have another dimension which would restart this process? or do you want to stamp the next timestamp across the whole data set regardless of any other dimension?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563886#M597463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T12:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563892#M597464</link>
      <description>&lt;P&gt;yes i have also have the user names as a dimension.&lt;/P&gt;&lt;P&gt;5 users have a schedule every day.&lt;/P&gt;&lt;P&gt;my initial goal is, to calculate the time difference and create a schedule plan, to visually see their schedule&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 12:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563892#M597464</guid>
      <dc:creator>mherdt1992</dc:creator>
      <dc:date>2019-04-02T12:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563950#M597465</link>
      <description>&lt;P&gt;Then all you need to do is to sort first by username and then timestamp desc. and add an if statement to the peek function like this&lt;/P&gt;&lt;P&gt;If(username = previous(username), peek('TimeStamp'), 0) as Next_TimeStamp&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563950#M597465</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T13:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shif Column up by one Rows</title>
      <link>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563989#M597466</link>
      <description>&lt;P&gt;That helps, thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Shift-Column-up-by-one-row/m-p/1563989#M597466</guid>
      <dc:creator>mherdt1992</dc:creator>
      <dc:date>2019-04-02T13:46:41Z</dc:date>
    </item>
  </channel>
</rss>

