<?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 P&amp;L in a pivot table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289168#M107427</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;When building P&amp;amp;L statements in straight tables, I use &lt;STRONG&gt;separate fields to handle the sorting&lt;/STRONG&gt;. This works fine, the fields handle the sorting and I just hide them so they ain´t visible for the user. But when it comes to pivot tables, I do not figure out how to do proper sorting without having&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I have a P&amp;amp;L statement with:&lt;/P&gt;&lt;P&gt;A) Sales&lt;/P&gt;&lt;P&gt;B) Costs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next level for Sales I have "Sales domestic", "Sales EU", "Sales Export" (in that order).&lt;/P&gt;&lt;P&gt;In the next level for Costs I have "Variable costs", "Fixed internal costs", "Fixed external costs" (in that order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How can I get a pivot table to be sorted in this order?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I first did create two help filed to handle the sorting and did concatenate these filed: ie 1-Sales, 2-Costs and 1-Sales domestic, 2-Sales EU, 3-Sales Export, 4-Variable costs, 5-Fixed internal costs, 6-Fixed external costs. But it is not nice to have thes numbers in the P&amp;amp;L. &lt;SPAN style="text-decoration: underline;"&gt;Is there any way to exclude/not showing the first two letters in these fields in the pivot table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way of doing it could be to have the load of data in the same order, but in this case it is very difficult to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 07:45:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-09T07:45:47Z</dc:date>
    <item>
      <title>Sorting P&amp;L in a pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289168#M107427</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;When building P&amp;amp;L statements in straight tables, I use &lt;STRONG&gt;separate fields to handle the sorting&lt;/STRONG&gt;. This works fine, the fields handle the sorting and I just hide them so they ain´t visible for the user. But when it comes to pivot tables, I do not figure out how to do proper sorting without having&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I have a P&amp;amp;L statement with:&lt;/P&gt;&lt;P&gt;A) Sales&lt;/P&gt;&lt;P&gt;B) Costs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next level for Sales I have "Sales domestic", "Sales EU", "Sales Export" (in that order).&lt;/P&gt;&lt;P&gt;In the next level for Costs I have "Variable costs", "Fixed internal costs", "Fixed external costs" (in that order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How can I get a pivot table to be sorted in this order?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I first did create two help filed to handle the sorting and did concatenate these filed: ie 1-Sales, 2-Costs and 1-Sales domestic, 2-Sales EU, 3-Sales Export, 4-Variable costs, 5-Fixed internal costs, 6-Fixed external costs. But it is not nice to have thes numbers in the P&amp;amp;L. &lt;SPAN style="text-decoration: underline;"&gt;Is there any way to exclude/not showing the first two letters in these fields in the pivot table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way of doing it could be to have the load of data in the same order, but in this case it is very difficult to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 07:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289168#M107427</guid>
      <dc:creator />
      <dc:date>2011-12-09T07:45:47Z</dc:date>
    </item>
    <item>
      <title>Sorting P&amp;L in a pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289169#M107428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use SubField(F1,'-',2) for dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1 is the field that store something like 1-Sales,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sort data using your F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn Cheav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 08:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289169#M107428</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2011-12-09T08:12:40Z</dc:date>
    </item>
    <item>
      <title>Sorting P&amp;L in a pivot table?</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289170#M107429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try use dual function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Dual(dimension, sortorder) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 08:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-P-L-in-a-pivot-table/m-p/289170#M107429</guid>
      <dc:creator />
      <dc:date>2011-12-09T08:37:58Z</dc:date>
    </item>
  </channel>
</rss>

