<?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: Peek() and Previous() with multiple dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162773#M889869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a slight different approach without peek and previous to get the data on a weekly-level and not only the differences between the current and last data. I think it will be suitable for your requirement than now you could simply select your data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD Code, Date as LastDate, kg as kg_cum, Amount as Amount_cum&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (t1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Code, Date, kg, Amount&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load Code, LastDate as Date, alt(kg_cum - kg, kg_cum) as kg, alt(Amount_cum - Amount, Amount_cum) as Amount resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(t2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Code, Date, kg, Amount&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135416" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135416_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 10:52:11 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-08-24T10:52:11Z</dc:date>
    <item>
      <title>Peek() and Previous() with multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162772#M889868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched the community discussion for a solution to my problem but up to now did not find a sufficient answer. I am quite a Newbie with QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My starting position:&lt;/P&gt;&lt;P&gt;From one very small company of our business group I get an Excel file with a weekly update of sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions are Code and Date. Values are kg and Amount&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;kg&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;05.08.2016&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;DEF&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;GHI&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following week I get the&amp;nbsp; accumulated values for two weeks:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Code&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;kg&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;550&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;DEF&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;75&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;GHI&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;JKL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should report only sales by week:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Code&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;kg&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;DEF&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;GHI&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;JKL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.08.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I read about peek() and previous() but the examples I found only work with a single dimension.&lt;/P&gt;&lt;P&gt;How can I solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan Zwick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liebe Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ich habe schon die Diskussionen durchsucht aber bisher keine Lösung gefunden. Ich bin ein Anfänger was QV betrifft.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Augangslage. Von einer sehr kleinen Gesellschaft in unserem Konzern erhalte ich jede Woche eine Excel Datei mit Verkaufszahlen. Diese kommen als kumulierte Zahlen daher. Gewünscht sind jedoch die wöchentlichen Veränderungen.&lt;/P&gt;&lt;P&gt;Die von mir gefundenen Beiträge zu previous und peek gehen (nach meinem Verstandnis) immer von einer einzigen Dimension aus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irgendwelche Ideen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vielen Dank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan Zwick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162772#M889868</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Peek() and Previous() with multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162773#M889869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a slight different approach without peek and previous to get the data on a weekly-level and not only the differences between the current and last data. I think it will be suitable for your requirement than now you could simply select your data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;LOAD Code, Date as LastDate, kg as kg_cum, Amount as Amount_cum&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (t1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Code, Date, kg, Amount&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load Code, LastDate as Date, alt(kg_cum - kg, kg_cum) as kg, alt(Amount_cum - Amount, Amount_cum) as Amount resident t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(t2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Code, Date, kg, Amount&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="230210" data-objecttype="1" href="https://community.qlik.com/thread/230210"&gt;https://community.qlik.com/thread/230210&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="135416" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135416_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 10:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162773#M889869</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-24T10:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Peek() and Previous() with multiple dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162774#M889870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least now I know that previous()/peek() is not suitable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 11:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-and-Previous-with-multiple-dimensions/m-p/1162774#M889870</guid>
      <dc:creator />
      <dc:date>2016-08-24T11:21:30Z</dc:date>
    </item>
  </channel>
</rss>

