<?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 Displaying Hierarchical Data in Text Box in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-Hierarchical-Data-in-Text-Box/m-p/1222279#M23776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings Everyone,&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am new to qlik and qlik community. I came across a requirement in which when selection is made in the hierarchical field the available values in the lower hierarchy had to be displayed in the text box . For example if there are two fields, viz, Brand and Parent-Brand hierarchy, When selection is made in Brand, text box should display all the distinct available fields in the Parent-Brand and vice versa. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;One way I thought it could be done is using the Concat and Aggr function&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=Concat(Distinct Aggr(Concat(Distinct Brand, ' '),Parent-Brand ), ' ' )&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So if nothing is selected in the Parent-Brand, the above expression would display all the brands under the parent brand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have faced similar requirements or any similar requirements please share your views in the comments. Also do check out the app attached with this showing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Feb 2017 18:31:58 GMT</pubDate>
    <dc:creator>vikraant</dc:creator>
    <dc:date>2017-02-19T18:31:58Z</dc:date>
    <item>
      <title>Displaying Hierarchical Data in Text Box</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-Hierarchical-Data-in-Text-Box/m-p/1222279#M23776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings Everyone,&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am new to qlik and qlik community. I came across a requirement in which when selection is made in the hierarchical field the available values in the lower hierarchy had to be displayed in the text box . For example if there are two fields, viz, Brand and Parent-Brand hierarchy, When selection is made in Brand, text box should display all the distinct available fields in the Parent-Brand and vice versa. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;One way I thought it could be done is using the Concat and Aggr function&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=Concat(Distinct Aggr(Concat(Distinct Brand, ' '),Parent-Brand ), ' ' )&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So if nothing is selected in the Parent-Brand, the above expression would display all the brands under the parent brand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have faced similar requirements or any similar requirements please share your views in the comments. Also do check out the app attached with this showing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 18:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-Hierarchical-Data-in-Text-Box/m-p/1222279#M23776</guid>
      <dc:creator>vikraant</dc:creator>
      <dc:date>2017-02-19T18:31:58Z</dc:date>
    </item>
  </channel>
</rss>

