<?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: Track renamed fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1255240#M871823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Margaret,&lt;/P&gt;&lt;P&gt;This is something I have wanted for a long time. I believe there is nothing native in QV that can provide this information. You could write code to parse the logs, but I think that would be a significant undertaking. I know of a couple of vendors that are looking to create such a feature, but I don't know the status. I have also discussed this requirement with folks at Qlik. Bottom line, nothing I know of exists today to reverse engineer this type of lineage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Forward engineered" solutions are possible, and are used by some of my customers. The simplest implementation requires you adhere to a specific script pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a rename mapping table -- excel sheets or database table(s) -- that define the original fieldnames and the new names.&lt;/P&gt;&lt;P&gt;2. Load the rename table as a mapping table and apply to your data model with script "RENAME FIELDS USING mapname".&lt;/P&gt;&lt;P&gt;3. Avoid using "AS" or "RENAME FIELD xxx" in the script. Derived fields can be given a temporary name in the script and renamed to a permanent name in the map. For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; (UnitPrice*Quantity) * (1-Discount) AS Derived.TotalPrice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then "&lt;SPAN style="font-size: 13.3333px;"&gt;Derived.TotalPrice" is renamed to "Line Total" in the map. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this approach, the mapping file becomes the data dictionary. You can include other data -- like source table -- in the mapping file to make this very rich. This approach does require that script follow the standard.&amp;nbsp; It's easy enough to audit QVD and QVW fields against the mapping dictionary and call out any fields that may have circumvented the standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A final thought.&amp;nbsp; Some customers who find they need a higher degree of auditabily and control over data opt to build out a full Data Warehouse (DW) using a more sophisticated product that has inbuilt lineage tracking. And then minimize the QV script to simply "SELECT *" from DW tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 03:44:46 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2016-11-16T03:44:46Z</dc:date>
    <item>
      <title>Track renamed fields</title>
      <link>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1255239#M871822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a tool, or a way to build a tool, that can parse through a qlikview script, and output a table with each dimension's initial name and the way it was renamed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example; if the below was my input qlikview script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_2 as [Renamed Field 2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field_3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;[&amp;lt;FILEPATH&amp;gt;.qvd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would want the output:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="97.181818" style="border: 1px solid rgb(0, 0, 0); width: 242.182px; height: 54.1818px;"&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;Input Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Output Name&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Field_1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Field_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Field_2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;[Renamed Field 2]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Field_3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Field_3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My questions about this are:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there an existing tool?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there a platform that would be well suited to build this?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Is this information stored anywhere in the documents?&lt;/LI&gt;&lt;LI&gt;Is there a subroutine or a method that could do this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Margaret&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/Track-renamed-fields/m-p/1255239#M871822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Track renamed fields</title>
      <link>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1255240#M871823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Margaret,&lt;/P&gt;&lt;P&gt;This is something I have wanted for a long time. I believe there is nothing native in QV that can provide this information. You could write code to parse the logs, but I think that would be a significant undertaking. I know of a couple of vendors that are looking to create such a feature, but I don't know the status. I have also discussed this requirement with folks at Qlik. Bottom line, nothing I know of exists today to reverse engineer this type of lineage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Forward engineered" solutions are possible, and are used by some of my customers. The simplest implementation requires you adhere to a specific script pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a rename mapping table -- excel sheets or database table(s) -- that define the original fieldnames and the new names.&lt;/P&gt;&lt;P&gt;2. Load the rename table as a mapping table and apply to your data model with script "RENAME FIELDS USING mapname".&lt;/P&gt;&lt;P&gt;3. Avoid using "AS" or "RENAME FIELD xxx" in the script. Derived fields can be given a temporary name in the script and renamed to a permanent name in the map. For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; (UnitPrice*Quantity) * (1-Discount) AS Derived.TotalPrice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then "&lt;SPAN style="font-size: 13.3333px;"&gt;Derived.TotalPrice" is renamed to "Line Total" in the map. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this approach, the mapping file becomes the data dictionary. You can include other data -- like source table -- in the mapping file to make this very rich. This approach does require that script follow the standard.&amp;nbsp; It's easy enough to audit QVD and QVW fields against the mapping dictionary and call out any fields that may have circumvented the standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A final thought.&amp;nbsp; Some customers who find they need a higher degree of auditabily and control over data opt to build out a full Data Warehouse (DW) using a more sophisticated product that has inbuilt lineage tracking. And then minimize the QV script to simply "SELECT *" from DW tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 03:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1255240#M871823</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-11-16T03:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Track renamed fields</title>
      <link>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1766357#M871824</link>
      <description>&lt;P&gt;Thank you for these informations. The post dates from 2016, is there maybe new ideas in 2020 ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Track-renamed-fields/m-p/1766357#M871824</guid>
      <dc:creator>SweatyHands</dc:creator>
      <dc:date>2020-12-04T15:39:37Z</dc:date>
    </item>
  </channel>
</rss>

