<?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: Using hierarchy with qualify in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497672#M693040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not surprised that this works, but I am not sure that I want to support this solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question to me is, why do you want to rename the fields? Or rather, why not do it properly? You can read what my view is on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/09/25/how-to-rename-fields"&gt;How to Rename Fields.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 21:38:53 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-09-06T21:38:53Z</dc:date>
    <item>
      <title>Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497668#M693036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting errors when trying to use hierarchy. The following is a simple example that illustrates what I am trying to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have the following in my script, everything runs just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Hierarchy(ID, ParentID, Name)&lt;/P&gt;&lt;P&gt;LOAD ID, ParentID, Name&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;[ ID, ParentID, Name&lt;/P&gt;&lt;P&gt;1, 0, root1&lt;/P&gt;&lt;P&gt;2, 0, root2&lt;/P&gt;&lt;P&gt;3, 1, 1-1&lt;/P&gt;&lt;P&gt;4, 3, 1-1-1&lt;/P&gt;&lt;P&gt;5, 2, 2-1&lt;/P&gt;&lt;P&gt;6, 3, 1-1-2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I add the qualify statement at the top, reload errors out. (Error: HIERARCHY parameter NodeName (="Name") is not a valid field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Hierarchy(ID, ParentID, Name)&lt;/P&gt;&lt;P&gt;LOAD ID, ParentID, Name&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;[ ID, ParentID, Name&lt;/P&gt;&lt;P&gt;1, 0, root1&lt;/P&gt;&lt;P&gt;2, 0, root2&lt;/P&gt;&lt;P&gt;3, 1, 1-1&lt;/P&gt;&lt;P&gt;4, 3, 1-1-1&lt;/P&gt;&lt;P&gt;5, 2, 2-1&lt;/P&gt;&lt;P&gt;6, 3, 1-1-2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding table name as the prefix to the parameters, but that didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any explanation would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 22:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497668#M693036</guid>
      <dc:creator />
      <dc:date>2013-07-18T22:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497669#M693037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I notice the same thing. Did you ever get around this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 18:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497669#M693037</guid>
      <dc:creator>olac</dc:creator>
      <dc:date>2013-09-06T18:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497670#M693038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hierarchy is quite a complex transformation that uses several steps and creates temporary tables, so that it unfortunately is incompatible with the Qualify statement, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I can only say: Don't use Hierarchy together with Qualify. Rename the fields some other way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 19:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497670#M693038</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-09-06T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497671#M693039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While trying to figure out a probable solution for this, I found that when I referred to fields in the Hierarchy() with a suffix of: &lt;STRONG&gt;&amp;lt;TableName&amp;gt;-NodeList&lt;/STRONG&gt;, the Qualify seemed to work. &lt;/P&gt;&lt;P&gt;Is this an alternative or would it fail in most other scenarios?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyTable&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Hierarchy([&lt;STRONG&gt;MyTable-NodeList&lt;/STRONG&gt;.ID], [&lt;STRONG&gt;MyTable-NodeList&lt;/STRONG&gt;.ParentID], [&lt;STRONG&gt;MyTable-NodeList&lt;/STRONG&gt;.Name])&lt;/P&gt;&lt;P&gt;LOAD ID, ParentID, Name&lt;/P&gt;&lt;P&gt;INLINE&lt;/P&gt;&lt;P&gt;[ ID, ParentID, Name&lt;/P&gt;&lt;P&gt;1, 0, USA&lt;/P&gt;&lt;P&gt;2, 0, UK&lt;/P&gt;&lt;P&gt;3, 1, CA&lt;/P&gt;&lt;P&gt;4, 3, SF&lt;/P&gt;&lt;P&gt;5, 2, LN&lt;/P&gt;&lt;P&gt;6, 3, LA&lt;/P&gt;&lt;P&gt;7, 4, OAK&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting columns get qualified as&amp;nbsp; &lt;STRONG&gt;&amp;lt;TableName&amp;gt;.&amp;lt;TableName&amp;gt;-NodeList.FieldName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;any inputs on the same would be most appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 20:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497671#M693039</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-06T20:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497672#M693040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not surprised that this works, but I am not sure that I want to support this solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question to me is, why do you want to rename the fields? Or rather, why not do it properly? You can read what my view is on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/09/25/how-to-rename-fields"&gt;How to Rename Fields.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 21:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497672#M693040</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-09-06T21:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497673#M693041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks Henric. Not a big issue just nice to know the reason, helps to remember it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497673#M693041</guid>
      <dc:creator>olac</dc:creator>
      <dc:date>2013-09-11T13:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497674#M693042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wei &amp;amp; Ola,&lt;/P&gt;&lt;P&gt;I know this is an older post, but I just came across this issue today and was able to create a work around. In my scenario I am loading data from a flat file. This file contains a meta data export from Essbase. Since I am loading a number of dimensions with the same file/field layout, I used a variable to prefix the field names during the hierarchy import. This got me around the qualifier issue. Below is an example, hopefully this helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just keep in mind, the code below is only being used for demo/POC purposes. I am not sure that this would be the best scenario for a production app. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Variable_Hierarchy.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50878_Variable_Hierarchy.png" style="width: 620px; height: 222px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 22:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497674#M693042</guid>
      <dc:creator>robert_connelly</dc:creator>
      <dc:date>2013-12-27T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using hierarchy with qualify</title>
      <link>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497675#M693043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah clever. Thanks a lot for remembering us and sharing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 00:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-hierarchy-with-qualify/m-p/497675#M693043</guid>
      <dc:creator>olac</dc:creator>
      <dc:date>2013-12-28T00:41:54Z</dc:date>
    </item>
  </channel>
</rss>

