<?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 within a dimension in a pivot table. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213334#M23337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pratyush for the reply. Can you send me a qvf file.&lt;/P&gt;&lt;P&gt;This file doesnot runs on my Qlik Sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 13:35:46 GMT</pubDate>
    <dc:creator>amanjain57</dc:creator>
    <dc:date>2017-02-17T13:35:46Z</dc:date>
    <item>
      <title>Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213329#M23332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use a sorting function but due to the logic its unable to perform.&lt;/P&gt;&lt;P&gt;I will explain through a example.&lt;/P&gt;&lt;P&gt;Suppose I have two dimensions : Product Family and Customer.&lt;/P&gt;&lt;P&gt;Each product family have different customers. Customers in different product families could be the same.&lt;/P&gt;&lt;P&gt;Eg: Product Family : ABC,&amp;nbsp; XYZ&lt;/P&gt;&lt;P&gt; Customer : Ford , Nissan&lt;/P&gt;&lt;P&gt;Measure : Sum (Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a pivot table which has Primary Sorting for Product Family by Revenue(descending order). The seconday sorting is for Customer again by Revenue&lt;SPAN style="font-size: 13.3333px;"&gt;(descending order)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;Product Family&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ford&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nissan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ 200&lt;/P&gt;&lt;P&gt;XYZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ford&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nissan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total of ABC =$ 300, XYZ = $210.&lt;/P&gt;&lt;P&gt;So the sorting is Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what i want is that Ford and Nissan should also rearrange themselves in descending order in their product families.&lt;/P&gt;&lt;P&gt;According to the logic, it sums up the revenue for Ford =$300, Nissan=$210 and that is why Ford always appears above Nissan in product families.&lt;/P&gt;&lt;P&gt;How could we accomplish this task ??&lt;/P&gt;&lt;P&gt;So that in ABC the order is Nissan, then Ford. Xyz has the order Ford then Nissan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213329#M23332</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2024-11-16T10:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213330#M23333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌ explains in &lt;A href="https://community.qlik.com/thread/165277"&gt;Is it possible to sort measure in pivot table using Qlik Sense?&lt;/A&gt;, you need to replace the dimension you want to sort by with a dual function. So... your first dimension will be ProductFamily but the second will be " Dual(Customer, Aggr(Sum(Revenue),ProductFamily,Customer)) ". Then you can sort the second dimension numerically in the sort tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Review the enclosed file to see the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 00:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213330#M23333</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2017-02-17T00:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213331#M23334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Sorting Tab,&lt;/P&gt;&lt;P&gt;Go to Customer - Choose sort by Expression, use Revenue Expression there and apply descending order.&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 05:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213331#M23334</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-02-17T05:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213332#M23335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA the attached .qvw for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 07:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213332#M23335</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-02-17T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213333#M23336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;It works, but when i try to select something in the filter, the filter shows no value.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error 1.JPG" class="jive-image image-1" src="/legacyfs/online/153518_Error 1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It should show me Ford GM etc. &lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213333#M23336</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2017-02-17T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213334#M23337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pratyush for the reply. Can you send me a qvf file.&lt;/P&gt;&lt;P&gt;This file doesnot runs on my Qlik Sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213334#M23337</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2017-02-17T13:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213335#M23338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharddha,&lt;/P&gt;&lt;P&gt;I tried that and simply sorting it out was not solving the problem.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213335#M23338</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2017-02-17T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213336#M23339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, when i just try Customer in the expression.&lt;/P&gt;&lt;P&gt;The filter works.&lt;/P&gt;&lt;P&gt;It only doesnot works with the dual expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213336#M23339</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2017-02-17T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213337#M23340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, i got a way to run the QVW file in QVF,&lt;/P&gt;&lt;P&gt;But i could not see any sheet or any visualization.&lt;/P&gt;&lt;P&gt;Can you please send me the expression you used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213337#M23340</guid>
      <dc:creator>amanjain57</dc:creator>
      <dc:date>2017-02-17T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213338#M23341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works unless you rearrange dimensions in pivot table (e.g. "Customer" before "Product Family")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 14:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1213338#M23341</guid>
      <dc:creator>paolo_mapelli</dc:creator>
      <dc:date>2017-12-19T14:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting within a dimension in a pivot table.</title>
      <link>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1644480#M48069</link>
      <description>&lt;P&gt;if i reverse the order of the pivot table do i have to change the expressions for each measure?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 20:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sorting-within-a-dimension-in-a-pivot-table/m-p/1644480#M48069</guid>
      <dc:creator>johndoub</dc:creator>
      <dc:date>2019-11-07T20:31:11Z</dc:date>
    </item>
  </channel>
</rss>

