<?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 Pivot Table custom Display of Rows and Columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542441#M109415</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am having data for two Quarters. I want to show the data into a pivot table for two quarters at Column level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here from data we are getting two accounts 987024,987011&amp;nbsp; and its subdivisions (like 987024A, 987024B,987024C). I want to bring another account which is 987025 which is the ration of 987024 and 987011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(987025 = 987024/987011).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and i am having another mapping table, to bring summary name from AN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now my final requirement, I want to show a pivot table below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In Pivot table,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rows -&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Summary, AN, State (Row Hierarchy&amp;nbsp;Level1 --&amp;gt; Summary, Level2 --&amp;gt; AN and Level3 --&amp;gt; State)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column -&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Period&lt;/P&gt;&lt;P&gt;Posted same type of question Previously, but now different data sets (Data Inputs), but expecting same output as old query.&lt;/P&gt;&lt;P&gt;Attaching excel file with sample data ( 3 sheets - Fact table, Mapping table and Requirement sheets)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MMK_0-1770315175260.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186733i49AB7BEBEB5E49C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MMK_0-1770315175260.png" alt="MMK_0-1770315175260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Feb 2026 18:14:43 GMT</pubDate>
    <dc:creator>MMK</dc:creator>
    <dc:date>2026-02-05T18:14:43Z</dc:date>
    <item>
      <title>Pivot Table custom Display of Rows and Columns</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542441#M109415</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am having data for two Quarters. I want to show the data into a pivot table for two quarters at Column level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here from data we are getting two accounts 987024,987011&amp;nbsp; and its subdivisions (like 987024A, 987024B,987024C). I want to bring another account which is 987025 which is the ration of 987024 and 987011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(987025 = 987024/987011).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and i am having another mapping table, to bring summary name from AN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now my final requirement, I want to show a pivot table below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In Pivot table,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rows -&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Summary, AN, State (Row Hierarchy&amp;nbsp;Level1 --&amp;gt; Summary, Level2 --&amp;gt; AN and Level3 --&amp;gt; State)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Column -&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Period&lt;/P&gt;&lt;P&gt;Posted same type of question Previously, but now different data sets (Data Inputs), but expecting same output as old query.&lt;/P&gt;&lt;P&gt;Attaching excel file with sample data ( 3 sheets - Fact table, Mapping table and Requirement sheets)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MMK_0-1770315175260.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186733i49AB7BEBEB5E49C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MMK_0-1770315175260.png" alt="MMK_0-1770315175260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 18:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542441#M109415</guid>
      <dc:creator>MMK</dc:creator>
      <dc:date>2026-02-05T18:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table custom Display of Rows and Columns</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542470#M109419</link>
      <description>&lt;P&gt;Hi MMK, the work was mostly simple, but has one tricky part.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;1. I separated AN into &lt;STRONG&gt;base numbers&lt;/STRONG&gt; (like 987024) and &lt;STRONG&gt;A/B/C codes&lt;/STRONG&gt; (like 987024A).&lt;/P&gt;&lt;P&gt;2. I converted A/B/C codes back to their &lt;STRONG&gt;real BaseAN&lt;/STRONG&gt; (remove the last letter).&lt;/P&gt;&lt;P&gt;3. I matched every BaseAN with its &lt;STRONG&gt;Summary group&lt;/STRONG&gt; using your mapping table.&lt;/P&gt;&lt;P&gt;4. The only &lt;STRONG&gt;tricky step&lt;/STRONG&gt; was using &lt;STRONG&gt;only BaseAN values&lt;/STRONG&gt; in totals and completely ignoring A/B/C values — this made the numbers match your Excel output exactly.&lt;/P&gt;&lt;P&gt;5.After that, making the pivot table was easy.&lt;BR /&gt;&lt;BR /&gt;here is the script what I did:&lt;/P&gt;&lt;P&gt;MapSummary:&lt;BR /&gt;MAPPING&lt;BR /&gt;LOAD&lt;BR /&gt;If(IsNum(AN), AN, Left(AN, Len(AN)-1)) as BaseAN,&lt;BR /&gt;Summary&lt;BR /&gt;FROM [lib://testJass/Sample Data v3.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Mapping Table]);&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Period,&lt;BR /&gt;Country,&lt;BR /&gt;State,&lt;BR /&gt;AN,&lt;BR /&gt;Num(Value) AS Value,&lt;BR /&gt;If(IsNum(AN), 1, 0) as IsBase,&lt;BR /&gt;If(IsNum(AN), AN, Left(AN, Len(AN)-1)) as BaseAN,&lt;BR /&gt;ApplyMap('MapSummary', If(IsNum(AN), AN, Left(AN, Len(AN)-1)), 'UNMAPPED') as Summary&lt;BR /&gt;FROM [lib://testJass/Sample Data v3.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Final Dat Set 3]);&lt;BR /&gt;&lt;BR /&gt;here is the sample result in my test environment:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sayed_Mannan_0-1770360849984.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186743iD8967F902BB97AC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sayed_Mannan_0-1770360849984.png" alt="Sayed_Mannan_0-1770360849984.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the data I'm using in the pivot table:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sayed_Mannan_1-1770360903270.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186744i6ACF3A521D1AC94E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sayed_Mannan_1-1770360903270.png" alt="Sayed_Mannan_1-1770360903270.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark this as the solution.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 06:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542470#M109419</guid>
      <dc:creator>Sayed_Mannan</dc:creator>
      <dc:date>2026-02-06T06:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table custom Display of Rows and Columns</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542492#M109428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/260241"&gt;@Sayed_Mannan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is different. In addition to existing two accounts i want to show another account 987025. &lt;STRONG&gt;We need to calculate that ratio as 987025 = 987024/987011. I want to show that account in Pivot table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and Accounts names 987024A..e.t.c different numbers in my case just for easiness i gave those numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 14:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2542492#M109428</guid>
      <dc:creator>MMK</dc:creator>
      <dc:date>2026-02-06T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table custom Display of Rows and Columns</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2543768#M109596</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="georgia,palatino"&gt;IF(Only(Summary) = 'ANSTER'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;, IF(Dimensionality() = 3 // State rows&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;, Num(Sum({&amp;lt;Summary={'ANSTC'}&amp;gt;} TOTAL &amp;lt;Period, State&amp;gt; Value)/Sum({&amp;lt;Summary={'ANSIG'}&amp;gt;} TOTAL &amp;lt;Period, State&amp;gt; Value), '#.######')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;, Num(Sum({&amp;lt;Summary={'ANSTC'}&amp;gt;} TOTAL &amp;lt;Period&amp;gt; Value)/Sum({&amp;lt;Summary={'ANSIG'}&amp;gt;} TOTAL &amp;lt;Period&amp;gt; Value), '#.##') )// Total row (under ANSTER)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;, Sum(Value))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2542441 - Pivot Table custom Display of Rows and Columns.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187076iE5C6B727B7BF54A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2542441 - Pivot Table custom Display of Rows and Columns.PNG" alt="2542441 - Pivot Table custom Display of Rows and Columns.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 18:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-custom-Display-of-Rows-and-Columns/m-p/2543768#M109596</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2026-02-25T18:15:56Z</dc:date>
    </item>
  </channel>
</rss>

