<?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: Dynamic sort is not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2454119#M98248</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your error is that you are not looking at the dimensionality of the pivot table. The sort by expression applies the same order of dimension values accross all levels based on expression used. That being said we cannot tell from your image how many dimensions you have in your pivot table. If you have multiple dimensions then sorting by measure will likely not work the way you imagine it as in Pivot table you are not able to sort dimension values based on measures independently on each nested dimension level. Instead the total sort is being used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way of actually sorting by measure values is by using "Sort by first measure" option which (yes) - is limited) to only first measure of your pivot table and yes that is the only way of actually sorting by values on all levels&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 09:48:47 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2024-05-20T09:48:47Z</dc:date>
    <item>
      <title>Dynamic sort is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2454111#M98247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I did a dynamic sort operation with the formula below for Pivot. However, the descending or ascending ones do not work exactly correctly. Where could my error be? Or how can I solve it?&lt;/P&gt;
&lt;P&gt;='~A-Z|'&lt;BR /&gt;&amp;amp;'sum(Quantity)~ Sort(Descending) ▼ |'&lt;BR /&gt;&amp;amp;'sum(Quantity) *-1 ~ Sort(Ascending) ▲'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Milaf_2-1716196841028.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166411i9E7E3B9A6756B402/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Milaf_2-1716196841028.png" alt="Milaf_2-1716196841028.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Milaf_0-1716196630440.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166409i4A75435092927072/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Milaf_0-1716196630440.png" alt="Milaf_0-1716196630440.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="Milaf_1-1716196717914.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166410iC77001502CD419B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Milaf_1-1716196717914.png" alt="Milaf_1-1716196717914.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2454111#M98247</guid>
      <dc:creator>Milaf</dc:creator>
      <dc:date>2024-05-20T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic sort is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2454119#M98248</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your error is that you are not looking at the dimensionality of the pivot table. The sort by expression applies the same order of dimension values accross all levels based on expression used. That being said we cannot tell from your image how many dimensions you have in your pivot table. If you have multiple dimensions then sorting by measure will likely not work the way you imagine it as in Pivot table you are not able to sort dimension values based on measures independently on each nested dimension level. Instead the total sort is being used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way of actually sorting by measure values is by using "Sort by first measure" option which (yes) - is limited) to only first measure of your pivot table and yes that is the only way of actually sorting by values on all levels&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2454119#M98248</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-05-20T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic sort is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2456614#M98516</link>
      <description>&lt;P&gt;If you give 1 to the variable and write the following formula in the sort expression field, it works.&lt;/P&gt;
&lt;P&gt;if(vPivotSort=1,&lt;BR /&gt;SUM(Quantity) ,&lt;BR /&gt;SUM(Quantity*-1))&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 13:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-sort-is-not-working/m-p/2456614#M98516</guid>
      <dc:creator>Milaf</dc:creator>
      <dc:date>2024-05-27T13:51:41Z</dc:date>
    </item>
  </channel>
</rss>

