<?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: Problem with peek and table.fieldname in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2033912#M85196</link>
    <description>&lt;P&gt;try this (looks like Qualify and peek does not play well together):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TryMySelf:
Load EmployeeCode as TryMySelf.EmployeeCodex,
EmployeeCode as TryMySelf.EmployeeCode2,
Peek('TryMySelf.EmployeeCodex') As TryMySelf.EmpCode2,
StartDate as TryMySelf.StartDate,
EndDate as TryMySelf.EndDate
Resident EmployeeDates;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 13:46:18 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2023-02-03T13:46:18Z</dc:date>
    <item>
      <title>Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2033883#M85190</link>
      <description>&lt;P&gt;I have a lot of scripts using the peek function, and they work as expected.&lt;/P&gt;
&lt;P&gt;At this moment however I have problems with the function and I can not explain why. When using next script the results in table FirstEmployee I get the correct value in EmpCode.&amp;nbsp;&lt;BR /&gt;In table TryMySelf the value of Empcode2 remains empty. I tried various options, with and without rowno and tablename as second and third parameter in the peek function.&lt;/P&gt;
&lt;P&gt;In other scripts I allways use the tablename to refer to the previous row , Peek('Tablename.fieldname').&lt;/P&gt;
&lt;P&gt;What is wrong in the script creating table 'TryMySelf' ? We are using Qlikview May 2021 SR1&lt;/P&gt;
&lt;P&gt;EmployeeDates:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;/P&gt;
&lt;P&gt;EmployeeCode|StartDate|EndDate&lt;/P&gt;
&lt;P&gt;101|02/11/2010|23/06/2012&lt;/P&gt;
&lt;P&gt;102|01/11/2011|30/11/2013&lt;/P&gt;
&lt;P&gt;103|02/01/2012|&lt;BR /&gt;103|02/01/2013|&lt;BR /&gt;103|02/01/2014|&lt;/P&gt;
&lt;P&gt;104|02/01/2012|31/03/2012&lt;/P&gt;
&lt;P&gt;105|01/04/2012|31/01/2013&lt;/P&gt;
&lt;P&gt;106|02/11/2013|&lt;/P&gt;
&lt;P&gt;] (delimiter is '|');&lt;/P&gt;
&lt;P&gt;Qualify '*'; &lt;BR /&gt;TryMySelf:&lt;BR /&gt;Load EmployeeCode as EmployeeCodex,&lt;BR /&gt;EmployeeCode as EmployeeCode2,&lt;BR /&gt;Peek('TryMySelf.EmployeeCodex') As EmpCode2,&lt;BR /&gt;StartDate,&lt;BR /&gt;EndDate&lt;BR /&gt;Resident EmployeeDates;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;UNQUALIFY '*';&lt;BR /&gt;FirstEmployee:&lt;/P&gt;
&lt;P&gt;Load EmployeeCode, Peek('EmployeeCode',-1) As EmpCode&lt;/P&gt;
&lt;P&gt;Resident EmployeeDates;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 13:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2033883#M85190</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2023-02-03T13:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2033912#M85196</link>
      <description>&lt;P&gt;try this (looks like Qualify and peek does not play well together):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TryMySelf:
Load EmployeeCode as TryMySelf.EmployeeCodex,
EmployeeCode as TryMySelf.EmployeeCode2,
Peek('TryMySelf.EmployeeCodex') As TryMySelf.EmpCode2,
StartDate as TryMySelf.StartDate,
EndDate as TryMySelf.EndDate
Resident EmployeeDates;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 13:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2033912#M85196</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-02-03T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034279#M85234</link>
      <description>&lt;P&gt;not sure what exactly is happening here but using coalesce() with peek() on qualified and pre-qualified field works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/675"&gt;@MarcoWedel&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Qualify *;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TryMySelf:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Load EmployeeCode as EmployeeCodex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EmployeeCode as EmployeeCode2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;coalesce(Peek('TryMySelf.EmployeeCodex'),peek('EmployeeCodex')) As EmpCode2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;StartDate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EndDate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resident EmployeeDates;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 06:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034279#M85234</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-02-06T06:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034302#M85235</link>
      <description>&lt;P&gt;I notice that &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48508"&gt;@curiousfellow&lt;/a&gt;&amp;nbsp; are using single quotes.&lt;/P&gt;
&lt;P&gt;Qualify '*';&lt;/P&gt;
&lt;P&gt;Single quotes ' ' are normally interpreted as string values by Qlik.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try not to use quotes or use double instead.&lt;/P&gt;
&lt;P&gt;Qualify *;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Qualify "*";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that will solve your issue&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034302#M85235</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-02-06T08:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034309#M85236</link>
      <description>&lt;P&gt;Without doing any tests here I could imagine that you are struggling with the order in which the explicit field-renaming and the (per qualify) implicit field-renaming are performed.&lt;/P&gt;
&lt;P&gt;My recommendation is very simple: don't use qualifying! In my experience it's much overvalued and often applied without a real use within a BI tool like Qlik. That's more or less a "standard" within the sql-world makes it not mandatory useful within any reporting.&lt;/P&gt;
&lt;P&gt;Qualify looks so simple and easy but it makes many things within the data-model development much more complex - not only by the interrecord-functions else also by mapping/joining and even by storing/dropping any content. Further and more important it prevents often the right look on the data and keeping the people struggling with multiple fact-tables instead of merging them into a single table.&lt;/P&gt;
&lt;P&gt;If it's necessary to keep the source-information it could be often done with an appropriate source-field within the data and if any renaming on a few fields is necessary just to do it explicitly (which is always best practice).&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034309#M85236</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-02-06T08:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034773#M85282</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Translation"&gt;&lt;SPAN class="Y2IQFc"&gt;The first thing I learned on a Qlik course was "Use Qualify" :)

Also, in my data source I have 84 tables with the same column name. Many other field names also occur several times in the tables. Renaming the fields with the same column name takes too much time.

Of course I don't load all the tables and fields but this is what works best for me.

In this case, I now need to create a temporary table.
Thank you for your response.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 07:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034773#M85282</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2023-02-07T07:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034791#M85284</link>
      <description>&lt;P&gt;The training was just very basic with very simple examples. Of course they will say it's applicable to the most and more complex scenarios - but it's not true. As far as goes above you will need more knowledge and often other approaches because the provided simple solutions are rather the opposite to a professional work. That's now not specially for Qlik else the marketing and (pre-)sales guys of all tools do the same by creating the impression the tools could everything from alone respectively the wizards will automatically do all the magic ...&lt;/P&gt;
&lt;P&gt;84 tables with (mostly) the same columns - the only sensible way of connecting them will be to concatenate them into a single table by harmonizing at most as possible field-names and data-structures.&lt;/P&gt;
&lt;P&gt;Because if not it becomes quite difficult (whereby not impossible) to associate them to each other and to further tables without creating a bunch of synthetic keys and/or circular tables. After this it won't be easier because now you have dozens of fields with tableX.date, tableY.date, tableZ.date and so on. Do the table-prefixes really helping to understand which one comes from where and contained what beyond that to access them in dimensions and expressions and synchronize them and ... IMO it goes definitely in the wrong direction.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2034791#M85284</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-02-07T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2035410#M85327</link>
      <description>&lt;P&gt;I am afraid I have not been clear about the 84 tables. What I meant was that some of the fieldnames in those tables are the same name, adress or city for example. The tables contain other fields too.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2035410#M85327</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2023-02-08T10:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with peek and table.fieldname</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2035452#M85331</link>
      <description>&lt;P&gt;To get asynchron tables because not all concatenated tables have the same data-structures are not a technically issue and will often work smoothly. Of course it will depend ... by only 3 common columns and each 3 dozens different ones it may not be the most suitable solution but it's reverse and just a few columns are different it's a very sensible data-model.&lt;/P&gt;
&lt;P&gt;The essential point is to reduce the number of tables (not only per concatenating else also per join + mapping) ideally in the direction of a star-scheme (a single fact-table with n dimension-tables) because it avoids all the challenges with synthetic keys and circular loops without qualifying everything, is easy to develop and to maintain, simplified the dimension-access + selections and the creation of rather simple expressions - and it performs very well. Therefore it's the officially recommendation of a data-model as best compromise in regard to efforts and results.&lt;/P&gt;
&lt;P&gt;Regardless to each kind of data-model is that you to know the data - what is what + from where + how is the data-quality + any missing data and so on? If anything needs to be done - cleaning + preparing + filling/matching + populating + what ever on the data - it must be done so or so ...&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-peek-and-table-fieldname/m-p/2035452#M85331</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-02-08T11:42:40Z</dc:date>
    </item>
  </channel>
</rss>

