<?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 function - Populate missing data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842887#M1014976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to show a small sample data-set that represents the problem your having. &lt;/P&gt;&lt;P&gt;Then the community will be able to help you easier. Or even better upload a sample QVW if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 20:40:24 GMT</pubDate>
    <dc:creator>b_garside</dc:creator>
    <dc:date>2015-04-15T20:40:24Z</dc:date>
    <item>
      <title>Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842885#M1014974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading a few discussion on the forum, I kind of found what I needed but not exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 qvd files and one common variable between the 2 files.&lt;/P&gt;&lt;P&gt;I used the join function to obtain only one unique qvd.&lt;/P&gt;&lt;P&gt;What I want to do now is to populate the missing data from the second file.&lt;/P&gt;&lt;P&gt;See as below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Data_TEST:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REPORT_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST DOCUMENT NUMBER]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST REFERENCE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST AMOUNT]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST TYPE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(RootDir_FACT)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;monthlysummary_TEST*.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Outer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Data_TEST)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST REFERENCE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[TEST CREATION DATE]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(RootDir_FACT)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;dailyworkflow_TEST*.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;STORE&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Data_TEST &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(RootDir_QLIKMART)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;TEST_volume_full_data.qvd; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As you can see, the field TEST REFERENCE is common to the 2 files.&lt;/P&gt;&lt;P&gt;I'm trying to get the REPORT_Code field filled up for the second file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following function, but PEEK only populate the empty cells using the above records.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// if(isnull(REPORT_Code) AND [TEST REFERENCE]=peek([TEST REFERENCE]), peek(REPORT_Code), REPORT_Code) as REPORT_Code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Furthermore, I'm trying to get to do all of this before I store both loaded data into one QVD file, so I won't have to create 2 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help would be greatly appreciated &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842885#M1014974</guid>
      <dc:creator />
      <dc:date>2015-04-15T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842886#M1014975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; What exactly is the problem you are facing right now? &lt;SPAN style="font-size: 13.3333330154419px;"&gt;You might need to use the order by statement to make sure that the correct Report_Code is getting copied down.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842886#M1014975</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-15T20:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842887#M1014976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to show a small sample data-set that represents the problem your having. &lt;/P&gt;&lt;P&gt;Then the community will be able to help you easier. Or even better upload a sample QVW if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842887#M1014976</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2015-04-15T20:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842888#M1014977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this example, all the nulls are replaced using&amp;nbsp; peek, it depends on the order by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;z:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load f1, if(len(trim(f2))=0, null(), f2) as f2, rowno() as id inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f1,f2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,b&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,b&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2,d&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;z2: NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD id, f1, if(isnull(f2) and Peek(f1)=f1, Peek(f2), f2) as f2&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident z&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by f1, f2 desc;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table z;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842888#M1014977</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-15T20:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842889#M1014978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides the pbm regarding the peek function, I'm actually having trouble trouble executing what I want within the script before I store the two qvd into one. Let me re explain since I was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I load 2 differents QVD one after the other. Let's call them X and Y (see above)&lt;/P&gt;&lt;P&gt;2) The first QVD X contains my report_code but not the other. But they both have the test_reference field in common.&lt;/P&gt;&lt;P&gt;3) Before I store these 2 QVD into one QVD Z, I'm trying to use the peek function to populate the missing data within QVD Y.&lt;/P&gt;&lt;P&gt;4) When I reload QVD Y doesnt find the field report_code because those aren't joined yet.&lt;/P&gt;&lt;P&gt;5) I know I could do this in 2 steps, using the peek function in the unique QVD Z, but I need to do this in one step only. As new to qlikview, I'm having trouble understanding the concepts of "resident table", "temp table" etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I was not clear at the first time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 22:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842889#M1014978</guid>
      <dc:creator />
      <dc:date>2015-04-15T22:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Peek function - Populate missing data</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842890#M1014979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to do an outer join between x and y, after that you could have some null report_code (from y qvd)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;to replace null report_code&lt;/SPAN&gt; you have to resident load the result of the outer join&lt;/P&gt;&lt;P&gt;2 steps; you can't outer join and replace null report_code at the same time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;As new to qlikview, I'm having trouble understanding the concepts of "resident table", "temp table" etc&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;resident table is a table you have already loaded in memory; resident because when you read it you need a resident load (load * resident table)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5698"&gt;LOAD data into QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 23:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-function-Populate-missing-data/m-p/842890#M1014979</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-15T23:00:03Z</dc:date>
    </item>
  </channel>
</rss>

