<?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: Renaming Fields to names that already exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303036#M405867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your approach couldn't work because the renaming won't match/merge the different symbol-tables behind the fields - I think you will need a different method to create your loosen tables.&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, 29 Mar 2017 15:53:21 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-03-29T15:53:21Z</dc:date>
    <item>
      <title>Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303034#M405865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following Sub Routine, I loop through all the tables and fields and find the prefix and rename the field without the prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-03-29_1540.png" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/158104_2017-03-29_1540.png" style="height: 293.316px; width: 356px;" width="356" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I call the routine, I get an error message when trying to rename a field that is used on another table (If the field is unique across all tables it works perfectly!!)&lt;/P&gt;&lt;P&gt;take the below example using ctrl + Q + Q to generate random data, notice I have Num in 3 tables, however when I try to remove the prefix of . by renaming it, I get an error message as the field is named in 2 other tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before you ask&lt;/P&gt;&lt;P&gt;I add the prefix of . to create a data island of dimensions that can be used for adhoc reporting (still having other issues with that :-))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-03-29_1545.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/158123_2017-03-29_1545.png" style="height: 531px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 15:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303034#M405865</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2017-03-29T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303035#M405866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a restriction that the RENAME statement cannot rename to an existing name.&amp;nbsp; The workaround is to recreate the field using the AS clause.&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, 29 Mar 2017 15:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303035#M405866</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-03-29T15:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303036#M405867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your approach couldn't work because the renaming won't match/merge the different symbol-tables behind the fields - I think you will need a different method to create your loosen tables.&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, 29 Mar 2017 15:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303036#M405867</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-29T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303037#M405868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob, Have you created a Sub Routine that loops over the tables and fields and creates a Data Island for Adhoc Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a Data Island Table if the fieldname begins with .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have it working for the _Dimension, but I am struggling to get an output similar to below. Not really sure how to Dynamically create the ID and ParentID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AdhocDimensions_tmp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, ParentID, _Dimension&lt;/P&gt;&lt;P&gt;A, , Users&lt;/P&gt;&lt;P&gt;1A, A, OperativeName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B, B, Calendar&lt;/P&gt;&lt;P&gt;1B, B, Year&lt;/P&gt;&lt;P&gt;2B, B, Month&lt;/P&gt;&lt;P&gt;3B, B, Week&lt;/P&gt;&lt;P&gt;4B, B, Weekday&lt;/P&gt;&lt;P&gt;5B, B, Shift&lt;/P&gt;&lt;P&gt;6B, B, Date&lt;SPAN style="font-size: 10pt;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create another thread if it's something you could shed some light on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 08:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303037#M405868</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2017-03-31T08:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303038#M405869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alan,&lt;/P&gt;&lt;P&gt;When creating a table for adhoc Dimensions, I generally just load the fieldname as _Dimension. I don't both with any id field.&amp;nbsp; Can you show how (the chart expression/conditional) you are using the adhoc dim?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 07:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303038#M405869</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-04-03T07:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Fields to names that already exists</title>
      <link>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303039#M405870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the List Box as Tree View, based on the table I generate, but I want to dynamically create the below table&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-04-03_1650.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/158735_2017-04-03_1650.png" style="height: 402px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then display the TreeView_Dimension as a List box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-04-03_1651.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/158736_2017-04-03_1651.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but I want the code to create the above table. so if I have fields called&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[.Customer_Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[.Customer_Type] &lt;SPAN style="font-size: 13.3333px;"&gt; (the . means I want to include it as an adhoc dimension)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would like to create them in the AdhocDimensions_Tmp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;So it would look like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;C, , Customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1C, C, &lt;SPAN style="font-size: 13.3333px;"&gt;Customer_Name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2C, C, &lt;SPAN style="font-size: 13.3333px;"&gt;Customer_Type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope that explains it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Renaming-Fields-to-names-that-already-exists/m-p/1303039#M405870</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2017-04-03T15:59:43Z</dc:date>
    </item>
  </channel>
</rss>

