<?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: Unable to sort dimensions in row in pivot table by measure value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542793#M109451</link>
    <description>&lt;P&gt;I saved this solution, credits to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Sorting-2nd-dimension-Issue/td-p/1558354" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Sorting-2nd-dimension-Issue/td-p/1558354&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In your child dimension:&lt;/P&gt;&lt;P&gt;Child = Aggr(Dual(Child, RowNo(TOTAL)), Parent, Child)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And in the classification tab, enter your measure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_0-1770819288279.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186841iE3359E82EA5C8ABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1770819288279.png" alt="MatheusC_0-1770819288279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Regards, Matheus&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 14:15:02 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2026-02-11T14:15:02Z</dc:date>
    <item>
      <title>Unable to sort dimensions in row in pivot table by measure value</title>
      <link>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542764#M109449</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I have this sample data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theqlikguy_0-1770808961065.png" style="width: 273px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186836i5F8BD0451598A868/image-dimensions/273x257?v=v2" width="273" height="257" role="button" title="theqlikguy_0-1770808961065.png" alt="theqlikguy_0-1770808961065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to create a pivot table with dimensions parent and child in row and year in columns and measure sum(Value), and then order the value of parent and child dimensions by measure (total of the years) desc.&lt;/P&gt;&lt;P&gt;The desired result is like excel&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pivot_excel.png" style="width: 439px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186834iB9F2B79BADFA8F61/image-size/large?v=v2&amp;amp;px=999" role="button" title="pivot_excel.png" alt="pivot_excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Y is the first under B but is the second after A.&lt;/P&gt;&lt;P&gt;I can't able to reach this reasult in qlik apparently:&amp;nbsp;Y remain in the first place under A.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theqlikguy_0-1770808651041.png" style="width: 662px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186835iBDFCA4BDDDBD0D0B/image-dimensions/662x393?v=v2" width="662" height="393" role="button" title="theqlikguy_0-1770808651041.png" alt="theqlikguy_0-1770808651041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the sort options I set custom sort by expression for both parent and child with expression sum(Value).&lt;/P&gt;&lt;P&gt;Disabled option "order by first measure".&lt;/P&gt;&lt;P&gt;Y is in the first place if I use child as first dimension of the hierarchy, so I think that it is not ordering correct for the couple of values, so I tried also forcing the context in the sort expression with&amp;nbsp;sum(total &amp;lt;Parent,Child&amp;gt; Value) but nothing change.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 11:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542764#M109449</guid>
      <dc:creator>theqlikguy</dc:creator>
      <dc:date>2026-02-11T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort dimensions in row in pivot table by measure value</title>
      <link>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542791#M109450</link>
      <description>&lt;P&gt;Try this in sort expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sum(TOTAL &amp;lt;Parent,Child&amp;gt; Value),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Parent,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Child&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542791#M109450</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2026-02-11T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort dimensions in row in pivot table by measure value</title>
      <link>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542793#M109451</link>
      <description>&lt;P&gt;I saved this solution, credits to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Sorting-2nd-dimension-Issue/td-p/1558354" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Sorting-2nd-dimension-Issue/td-p/1558354&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In your child dimension:&lt;/P&gt;&lt;P&gt;Child = Aggr(Dual(Child, RowNo(TOTAL)), Parent, Child)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And in the classification tab, enter your measure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MatheusC_0-1770819288279.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186841iE3359E82EA5C8ABE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1770819288279.png" alt="MatheusC_0-1770819288279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Regards, Matheus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542793#M109451</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2026-02-11T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sort dimensions in row in pivot table by measure value</title>
      <link>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542799#M109452</link>
      <description>&lt;P&gt;Ok, it works, thanks.&lt;/P&gt;&lt;P&gt;If I need to do the same on more than two dimensions, I think that I can do the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aggr(Dual(third dim, RowNo(TOTAL)), Parent, Child, third dim)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and so on, correct?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Unable-to-sort-dimensions-in-row-in-pivot-table-by-measure-value/m-p/2542799#M109452</guid>
      <dc:creator>theqlikguy</dc:creator>
      <dc:date>2026-02-11T14:54:04Z</dc:date>
    </item>
  </channel>
</rss>

