<?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: Show 'previous' activity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605653#M682421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach a sample source file.&lt;/P&gt;&lt;P&gt;Also why can't you make it a straight table and then apply this logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 19:30:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T19:30:47Z</dc:date>
    <item>
      <title>Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605647#M682415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am dealing with an issue at the moment.&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;currently I am building a dashboard that should function as a timeline. with this I mean: I have a few activities that are linked to a startdate. the startdate from the second activity however, is the enddate of the first activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;the following example should explain it:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;given is the following table:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="195.18181824684143" style="border: 0px; font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="152.18181824684143"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;activity&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="66"&gt;date&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;talking&lt;/TD&gt;&lt;TD align="right" class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;1-1-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;drinking&lt;/TD&gt;&lt;TD align="right" class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;20-1-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;eating&lt;/TD&gt;&lt;TD align="right" class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;22-2-2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;running&lt;/TD&gt;&lt;TD align="right" class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;12-5-2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;sleeping&lt;/TD&gt;&lt;TD align="right" class="xl63" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2-6-2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;now the activity 'Talking' starts at 1-1-2013 and ends at 20-1-2013, because then the activity 'Drinking' starts. The activity 'Drinking' ends on 22-2-2013 because then the activity 'eating' starts and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;so when I should click the date 15-1-2013, the activity 'talking' should be activated, and so on&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i made this working with the following script:&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Activity1:&lt;/P&gt;&lt;P&gt;NoConcatenate Load DISTINCT Date, &lt;/P&gt;&lt;P&gt;Month(Date) as CalendarMonth,&lt;/P&gt;&lt;P&gt;Day(Date) as CalendarDay,&lt;/P&gt;&lt;P&gt;Week(Date) as CalendarWeek,&lt;/P&gt;&lt;P&gt;Year(Date) as CalendarYear,&lt;/P&gt;&lt;P&gt;IF (Ceil(num(Month(Date)))/3 &amp;gt; 0, 'Q' &amp;amp; Ceil(num(Month(Date))/3), null()) AS CalendarQuarter,&lt;/P&gt;&lt;P&gt; If( IsNull( Activiteit ), Peek( Activiteit ), Activiteit ) as Activiteit,&lt;/P&gt;&lt;P&gt; If( IsNull(Afdeling), Peek(Afdeling),Afdeling) as Afdeling,&lt;/P&gt;&lt;P&gt; If( IsNull(Rij), Peek(Rij),Rij) as Rij,&lt;/P&gt;&lt;P&gt; If( IsNull(Soort), Peek(Soort),Soort) as Soort&lt;/P&gt;&lt;P&gt; Resident TempFactTable1 &lt;/P&gt;&lt;P&gt; Where Date&amp;lt;&amp;gt;''&lt;/P&gt;&lt;P&gt; Order By Date ; // so that above values can be propagated downwards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i have the range of the dates linked to my activities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now comes the tricky part:&lt;/P&gt;&lt;P&gt;I want to get the 'previous' activity with the startdate.&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I currently have this, but I cant figure out what to do.&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you guys help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 17:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605647#M682415</guid>
      <dc:creator>dickelsa</dc:creator>
      <dc:date>2014-03-05T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605648#M682416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Quick question. How do you determine the order. Like Talking&amp;nbsp; is 1, drinking is 2, eating is 3, etx..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605648#M682416</guid>
      <dc:creator />
      <dc:date>2014-03-05T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605649#M682417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I dont 'number' the activties, but if you want to number them autonumber(activtiy) as activitynr&lt;/P&gt;&lt;P&gt;greets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605649#M682417</guid>
      <dc:creator>dickelsa</dc:creator>
      <dc:date>2014-03-05T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605650#M682418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a table with StartDate and EndDate as per your logic. So now you can get your results based on which ever date you want to use.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 19:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605650#M682418</guid>
      <dc:creator />
      <dc:date>2014-03-05T19:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605651#M682419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You try Peek(Date) as pervious date&lt;/P&gt;&lt;P&gt;i think i will help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 19:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605651#M682419</guid>
      <dc:creator>santharubban</dc:creator>
      <dc:date>2014-03-05T19:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605652#M682420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is, my table is not a straight table but a crosstable in loadscript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 19:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605652#M682420</guid>
      <dc:creator>dickelsa</dc:creator>
      <dc:date>2014-03-05T19:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Show 'previous' activity</title>
      <link>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605653#M682421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attach a sample source file.&lt;/P&gt;&lt;P&gt;Also why can't you make it a straight table and then apply this logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 19:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-previous-activity/m-p/605653#M682421</guid>
      <dc:creator />
      <dc:date>2014-03-05T19:30:47Z</dc:date>
    </item>
  </channel>
</rss>

