<?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: Previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1644472#M594026</link>
    <description>&lt;P&gt;Anders, I am hesitant to post this, but I figured it might help you a little, it's a pretty short Design Blog post on previous v peek functions, but I thought it might help put something into perspective for you.&amp;nbsp; Sunny is pretty sharp, so you are in good hands there, just shout back if you need more help, and I am sure he will holler back or someone else may jump in as well.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 20:10:39 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-11-07T20:10:39Z</dc:date>
    <item>
      <title>Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1642001#M594022</link>
      <description>&lt;P&gt;Hi everybody&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the Previous function. Probably just an understanding issue :-X&lt;/P&gt;&lt;P&gt;I have a resident load that looks like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Carryforward_check_FLAG,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ExcelSæson,&lt;/P&gt;&lt;P&gt;Previous(ExcelSæson) as PrevSæson,&lt;/P&gt;&lt;P&gt;Previous(Carryforward_check_FLAG) as PrevCarryFlag,&lt;/P&gt;&lt;P&gt;if((ExcelSæson&amp;lt;&amp;gt;Previous(ExcelSæson)) and (Carryforward_check_FLAG=Previous(Carryforward_check_FLAG)),1,0) as ExcelCarry,&lt;/P&gt;&lt;P&gt;resident Excel&amp;nbsp;&lt;/P&gt;&lt;P&gt;order by&amp;nbsp;Carryforward_check_FLAG, ExcelSæson;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an if-statement, that marks rows with a 1 where the previous Carryforweard_check_FLAG is equal to current rows&amp;nbsp;Carryforweard_check_FLAG&amp;nbsp; and the ExcelSæson changes.&lt;/P&gt;&lt;P&gt;Below is a data sample of the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect the 0 (fat, red text) to be 1 since ExcelSæson changes from 2017,3 to 2018,3 and&amp;nbsp;Carryforward_check_FLAG does not change.&lt;/P&gt;&lt;P&gt;I can very well see that PrevSæson and PrevCarryFlag do not return the 'correct' previous value, so that explains the If-functions return result. By why does this happen?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Carryforward_check_FLAG&lt;/TD&gt;&lt;TD&gt;ExcelSæson&lt;/TD&gt;&lt;TD&gt;ExcelCarry&lt;/TD&gt;&lt;TD&gt;PrevSæson&lt;/TD&gt;&lt;TD&gt;PrevCarryFlag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59055&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP59055&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59055&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2018,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP51070&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP59055&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;TD&gt;2018,3&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;2018,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;TD&gt;2018,3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2017,3&lt;/TD&gt;&lt;TD&gt;AM-441631/WHGP59061&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help with some an advice&lt;/P&gt;&lt;P&gt;Thanks in advancve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards Anders&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 09:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1642001#M594022</guid>
      <dc:creator>arhadisqlik</dc:creator>
      <dc:date>2019-11-01T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1642075#M594023</link>
      <description>&lt;P&gt;If you look closely at PrevSeason, the row where you expect to see 0, have a PrevSeason&amp;nbsp; of 2018... so what this tells you is that while loading the data, the 2nd last row is probably the loaded after the last row... it's just displaying it in a different order... but if you want to see 1 for the second last row, then you probably need to add another field to Order by which would force 2nd last row to load before the last row.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 13:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1642075#M594023</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-01T13:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1642488#M594024</link>
      <description>&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;I've been away during the weekend hence the long response time.&lt;/P&gt;&lt;P&gt;It makes sense, thanks.&lt;/P&gt;&lt;P&gt;However, I do not have a third field which can be used to force the order I want.&lt;/P&gt;&lt;P&gt;I've tried loading everything into a tmp-table that is ordered by Carryforward_Flag and season and then load from this but it seems to ignore the order from the tmp-table.&lt;/P&gt;&lt;P&gt;Basically I'm just trying to identify the Carryforward_flags that span multiple seasons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A count grouped by Carryforward_flag kills the script and wont work.&lt;/P&gt;&lt;P&gt;All ideas are welcome.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 10:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1642488#M594024</guid>
      <dc:creator>arhadisqlik</dc:creator>
      <dc:date>2019-11-04T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1642509#M594025</link>
      <description>&lt;P&gt;You can add RowNo() field in the previous load and may be use that to sort... I just don't know what is the difference between seeing a 1 on the last row vs second last row? It is just the difference in the display... may be the front end display should switch the row?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1642509#M594025</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-11-04T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1644472#M594026</link>
      <description>&lt;P&gt;Anders, I am hesitant to post this, but I figured it might help you a little, it's a pretty short Design Blog post on previous v peek functions, but I thought it might help put something into perspective for you.&amp;nbsp; Sunny is pretty sharp, so you are in good hands there, just shout back if you need more help, and I am sure he will holler back or someone else may jump in as well.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Peek-vs-Previous-When-to-Use-Each/ba-p/1475913&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 20:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1644472#M594026</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-11-07T20:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1645170#M594027</link>
      <description>&lt;P&gt;Hi Brett Thank you for the link - it cleared a few things up for me, namely which part of the load each function operates on.&lt;/P&gt;&lt;P&gt;Sunny's suggestion with the rowno() did the trick - and now that I am back behind the keyboard it will get accepted as the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards - and thanks again&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1645170#M594027</guid>
      <dc:creator>arhadisqlik</dc:creator>
      <dc:date>2019-11-11T07:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous</title>
      <link>https://community.qlik.com/t5/QlikView/Previous/m-p/1645171#M594028</link>
      <description>&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;P&gt;The RowNo() solved my problem!&lt;/P&gt;&lt;P&gt;Enjoy the day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 07:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous/m-p/1645171#M594028</guid>
      <dc:creator>arhadisqlik</dc:creator>
      <dc:date>2019-11-11T07:18:44Z</dc:date>
    </item>
  </channel>
</rss>

