<?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 with multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728699#M592752</link>
    <description>&lt;P&gt;AsOfTable could be a nice approach here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Create it daily wise.&lt;/P&gt;&lt;P&gt;then you can use an easy expression.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({$&amp;lt;AsOf_Days_Ago={"1"}&amp;gt;} cases) //cases previous date&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 06:00:27 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2020-07-17T06:00:27Z</dc:date>
    <item>
      <title>peek with multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728692#M592750</link>
      <description>&lt;P&gt;I need to retrieve previous date's cases by county. So for san Francisco, I need to receive value of 3000. When I use peek function, I receive value of 5100. This is a very simplified data set. Actual data set has 100,000 rows with a data point for multiple counties for each date. Any thoughts are greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; county &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cases&lt;BR /&gt;4/1/20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New York &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5000&lt;BR /&gt;4/1/20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; San Francisco &amp;nbsp;&amp;nbsp; 3000&lt;BR /&gt;4/2/20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New York &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5100&lt;BR /&gt;4/2/20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; San Francisco &amp;nbsp;&amp;nbsp; 3200&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 05:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728692#M592750</guid>
      <dc:creator>spags1965</dc:creator>
      <dc:date>2020-07-17T05:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: peek with multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728696#M592751</link>
      <description>&lt;P&gt;Firstly you need to sort the table. Try the code below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tmp1:&lt;BR /&gt;NoConcatenate LOAD *&lt;BR /&gt;Resident tmp&lt;BR /&gt;Order By country asc, date asc;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;tmp:&lt;BR /&gt;LOAD *&lt;BR /&gt;,If(country = Peek(country), Peek(cases), cases) as cases2&lt;BR /&gt;Resident tmp1;&lt;/P&gt;&lt;P&gt;DROP Table tmp1;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 05:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728696#M592751</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2020-07-17T05:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: peek with multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728699#M592752</link>
      <description>&lt;P&gt;AsOfTable could be a nice approach here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Create it daily wise.&lt;/P&gt;&lt;P&gt;then you can use an easy expression.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum({$&amp;lt;AsOf_Days_Ago={"1"}&amp;gt;} cases) //cases previous date&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 06:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728699#M592752</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-07-17T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: peek with multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728849#M592753</link>
      <description>&lt;P&gt;Thank you for the advice. I am still missing something. Below is the script I am using to ensure table is being sorted. But table still seems to be unsorted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT&gt;tmp:&lt;BR /&gt;LOAD date#(date, 'YYYY-MM-DD') as date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text(county) as county,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; state,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fips,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cases,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deaths&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;FROM&lt;BR /&gt;[N:\data\covid-19-data-master\us-counties.xls]&lt;BR /&gt;(txt, codepage is 28591, embedded labels, delimiter is ',', msq;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;BR /&gt;tmp1:&lt;BR /&gt;NoConcatenate LOAD *&lt;BR /&gt;Resident tmp&lt;BR /&gt;//Order By county asc;&lt;BR /&gt;Order By county asc, date desc;&lt;BR /&gt;DROP Table tmp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 308px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37646i1AEF6F76EF2C2805/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Jul 2020 14:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1728849#M592753</guid>
      <dc:creator>spags1965</dc:creator>
      <dc:date>2020-07-17T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: peek with multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1731725#M592754</link>
      <description>&lt;P&gt;Really need QVW file to be able to dig into things at this point, only other thing would be to review the Help to be sure something has not been missed there, but I cannot see anything, but you can review yourself too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/Load.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The only other thing may be a known issue in the release you are running, so if you are not on the most current SR, I would update and try with that release too just to be sure you are not running into something that may have been addressed there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 11:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/peek-with-multiple-fields/m-p/1731725#M592754</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-29T11:40:46Z</dc:date>
    </item>
  </channel>
</rss>

