<?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 How to conduct muti-level table header through 'mapping' table in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1797393#M8754</link>
    <description>&lt;P&gt;I am trying to built a pivot table which have multi-level table headers like shown below. I tried to use the mapping function in the data load scripting area to build each level, yet it ended up with the third level (order book sum, overdue order, undue order) are spreaded not only by 'order book', but also by 'backlog-sum' and 'shipment without invoicing'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mapping tables I wrote can be seen below. How can I build the table header as the one shown below? Can I build mapping table inside of another mapping table? Or is there any other way to realize this table header?&lt;/P&gt;&lt;P&gt;Thanks a lot!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mapping1:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;backlog&lt;BR /&gt;backlog-sum&lt;BR /&gt;order book&lt;BR /&gt;Shipment without invoicing&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Mapping2:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;order book&lt;BR /&gt;order book sum&lt;BR /&gt;overdue order&lt;BR /&gt;Undue order&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aria_0-1617764993826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52491i129D3125672DBCE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aria_0-1617764993826.png" alt="Aria_0-1617764993826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 03:09:31 GMT</pubDate>
    <dc:creator>Aria</dc:creator>
    <dc:date>2021-04-07T03:09:31Z</dc:date>
    <item>
      <title>How to conduct muti-level table header through 'mapping' table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1797393#M8754</link>
      <description>&lt;P&gt;I am trying to built a pivot table which have multi-level table headers like shown below. I tried to use the mapping function in the data load scripting area to build each level, yet it ended up with the third level (order book sum, overdue order, undue order) are spreaded not only by 'order book', but also by 'backlog-sum' and 'shipment without invoicing'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The mapping tables I wrote can be seen below. How can I build the table header as the one shown below? Can I build mapping table inside of another mapping table? Or is there any other way to realize this table header?&lt;/P&gt;&lt;P&gt;Thanks a lot!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mapping1:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;backlog&lt;BR /&gt;backlog-sum&lt;BR /&gt;order book&lt;BR /&gt;Shipment without invoicing&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Mapping2:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;order book&lt;BR /&gt;order book sum&lt;BR /&gt;overdue order&lt;BR /&gt;Undue order&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aria_0-1617764993826.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52491i129D3125672DBCE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aria_0-1617764993826.png" alt="Aria_0-1617764993826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 03:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1797393#M8754</guid>
      <dc:creator>Aria</dc:creator>
      <dc:date>2021-04-07T03:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct muti-level table header through 'mapping' table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1801377#M8827</link>
      <description>&lt;P&gt;The way you have constructed your table doesn't fit with what you are trying to show. This is what is shown in the data manager:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mapping.png" style="width: 448px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53386iB12601472E8E8271/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mapping.png" alt="Mapping.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You need to think about and model the columns so that there is a hierarchy as desired. Notice how in this code I've designed Category, Sub Category and Minor Category to be the levels reflected in your desired image:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Data:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Month, Category, Sub Category, Minor Category, Value&lt;BR /&gt;April, Sales Org, ,, 100&lt;BR /&gt;April, Backlog, Backlog-sum, , 75&lt;BR /&gt;April, Backlog, Order book, order book sum, 30&lt;BR /&gt;April, Backlog, Order book, overdue order, 65&lt;BR /&gt;April, Backlog, Order book, undue order, 92&lt;BR /&gt;April, Backlog, Shipment without invoicing,, 33&lt;BR /&gt;April, Budget Sales, ,, 81&lt;BR /&gt;April, difference between budget, ,, 19&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;That yields a table that looks like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappingData.png" style="width: 575px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53387i6EE90BC721A6554A/image-size/large?v=v2&amp;amp;px=999" role="button" title="MappingData.png" alt="MappingData.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then used the Month as the ROW for the pivot table&lt;/P&gt;&lt;P&gt;And the Category, Sub Category and Minor Category as the COLUMNS for the pivot table and Sum(Value) for the Measure&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappingPivot.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53389i66A56D0F2A6C5779/image-size/large?v=v2&amp;amp;px=999" role="button" title="MappingPivot.png" alt="MappingPivot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which is close to what you drew. If I remove the automatic sort for the Category so that it isn't in alphabetical order and isn't in numerical order, it will load it based on the way the values were loaded into the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MappingPivotSortedLoadOrder.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53390i7051506CD4717503/image-size/large?v=v2&amp;amp;px=999" role="button" title="MappingPivotSortedLoadOrder.png" alt="MappingPivotSortedLoadOrder.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 14:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1801377#M8827</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-04-21T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct muti-level table header through 'mapping' table</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1801575#M8834</link>
      <description>&lt;P&gt;Thank you so much Dalton!! It works perfect. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 05:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-conduct-muti-level-table-header-through-mapping-table/m-p/1801575#M8834</guid>
      <dc:creator>Aria</dc:creator>
      <dc:date>2021-04-22T05:07:54Z</dc:date>
    </item>
  </channel>
</rss>

