<?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: Sorting a pivot table using &amp;quot;Sort by Expression&amp;quot; isn't working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503992#M103705</link>
    <description>&lt;P&gt;That doesn't work either. I think I am going to have to use a third-party Pivot Table from Vizlib; I know that it can handle sorting by a hidden column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2025 15:53:58 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2025-01-31T15:53:58Z</dc:date>
    <item>
      <title>Sorting a pivot table using "Sort by Expression" isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503629#M103630</link>
      <description>&lt;P&gt;I have a pivot table with Parent customer as a row dimension and Total 6wkAvg as a Measure. The measure can be changed using a variable,&amp;nbsp; but I always want the Parent customer to be sorted in descending order by a default measure, such as:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;ShipDate_DayOfWeek=,$(vSixWk),ShipYear=&amp;gt;}EquivalentUnits)/6&lt;/P&gt;
&lt;P&gt;I applied this formula to Expression in the Sort by Expression setting for the Parent dimension, but when I use the variable selector to change the measure to something else, the sorting is not being applied.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1738184959594.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177050iBC4C1F2B337E67CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1738184959594.png" alt="mikegrattan_0-1738184959594.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_1-1738185104601.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177051iFD286A9E8B053E5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_1-1738185104601.png" alt="mikegrattan_1-1738185104601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Changed measure, and the sorting is lost (not applied from the expression)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_2-1738185228747.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177052iF51A9C9F2CCEA756/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_2-1738185228747.png" alt="mikegrattan_2-1738185228747.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 21:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503629#M103630</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-29T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table using "Sort by Expression" isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503658#M103637</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49220"&gt;@mikegrattan&lt;/a&gt;&amp;nbsp;In your expression&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;ShipDate_DayOfWeek=,$(vSixWk),ShipYear=&amp;gt;}EquivalentUnits)/6&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EquivalentUnits &lt;/STRONG&gt;is mentioned so sorting will not work. either you can create variable using pick match and put that variable in expression&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;ShipDate_DayOfWeek=,$(vSixWk),ShipYear=&amp;gt;}variable)/6.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So when you pick&amp;nbsp;EquivalentUnits in variable it will automatically take the measure related to it, then if you select&amp;nbsp;EquivalentPrice then&amp;nbsp;it will automatically take the measure related to Price in sort expression measure.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 05:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503658#M103637</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-30T05:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table using "Sort by Expression" isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503778#M103667</link>
      <description>&lt;P&gt;The challenge presented to me is to always sort the table by EquivalentUnits, no matter which measure is selected from the variable selector. Is that possible? I tried with a hidden column but that didn't work either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 15:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503778#M103667</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-30T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table using "Sort by Expression" isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503855#M103677</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49220"&gt;@mikegrattan&lt;/a&gt;&amp;nbsp;Enable only Sort By expression other all sorting based on other parameters disable it and then try, write your sorting expression in sort by expression and disable all other sorts.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 03:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503855#M103677</guid>
      <dc:creator>Bhushan_Mahajan</dc:creator>
      <dc:date>2025-01-31T03:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a pivot table using "Sort by Expression" isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503992#M103705</link>
      <description>&lt;P&gt;That doesn't work either. I think I am going to have to use a third-party Pivot Table from Vizlib; I know that it can handle sorting by a hidden column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 15:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-a-pivot-table-using-quot-Sort-by-Expression-quot-isn-t/m-p/2503992#M103705</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2025-01-31T15:53:58Z</dc:date>
    </item>
  </channel>
</rss>

