<?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 Sorting in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-in-Pivot-Table/m-p/1537914#M38825</link>
    <description>&lt;P&gt;Does anyone know why a pivot table wouldn't sort correctly using an expression?&lt;/P&gt;&lt;P&gt;The two tables below use the same expression to sort the dimension. The straight table sorts correctly while the pivot table doesn't. The sort works on all dimensions except for one, which is the one I need to show in the pivot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pivot Table" style="width: 116px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4949iED5BBCE3E1A49F86/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pivot Sort.JPG" alt="Pivot Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pivot Table&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Straight Table" style="width: 114px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4950iC0AD8803820DC57C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Straight table Sort.JPG" alt="Straight Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Straight Table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The 'variable' in this case is from the variable extension (button)&lt;/P&gt;&lt;P&gt;=if($(variable)= 'All',&lt;BR /&gt;Sum({$&amp;lt;[(Y/N)] = {'Company1', 'All Others'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;}[Vol])&lt;BR /&gt;,&lt;BR /&gt;if($(variable)= 'All Others',&lt;BR /&gt;Sum(({$&amp;lt;[(Y/N)] = {'All Others'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;} [Vol])&lt;BR /&gt;,&lt;BR /&gt;Sum({$&amp;lt;[(Y/N)] = {'Company1'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;} [Vol])&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:42:26 GMT</pubDate>
    <dc:creator>egoss_cynosure_</dc:creator>
    <dc:date>2024-11-16T06:42:26Z</dc:date>
    <item>
      <title>Sorting in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-in-Pivot-Table/m-p/1537914#M38825</link>
      <description>&lt;P&gt;Does anyone know why a pivot table wouldn't sort correctly using an expression?&lt;/P&gt;&lt;P&gt;The two tables below use the same expression to sort the dimension. The straight table sorts correctly while the pivot table doesn't. The sort works on all dimensions except for one, which is the one I need to show in the pivot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pivot Table" style="width: 116px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4949iED5BBCE3E1A49F86/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pivot Sort.JPG" alt="Pivot Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Pivot Table&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Straight Table" style="width: 114px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4950iC0AD8803820DC57C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Straight table Sort.JPG" alt="Straight Table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Straight Table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The 'variable' in this case is from the variable extension (button)&lt;/P&gt;&lt;P&gt;=if($(variable)= 'All',&lt;BR /&gt;Sum({$&amp;lt;[(Y/N)] = {'Company1', 'All Others'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;}[Vol])&lt;BR /&gt;,&lt;BR /&gt;if($(variable)= 'All Others',&lt;BR /&gt;Sum(({$&amp;lt;[(Y/N)] = {'All Others'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;} [Vol])&lt;BR /&gt;,&lt;BR /&gt;Sum({$&amp;lt;[(Y/N)] = {'Company1'}, [X or Y] = {'X'}, [Recent] = {'Y'}&amp;gt;} [Vol])&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-in-Pivot-Table/m-p/1537914#M38825</guid>
      <dc:creator>egoss_cynosure_</dc:creator>
      <dc:date>2024-11-16T06:42:26Z</dc:date>
    </item>
  </channel>
</rss>

