<?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: Using an ID as Sort Expression on Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369351#M573704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find below some screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18954" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Report.jpg" src="https://community.qlik.com/legacyfs/online/18954_MF_Report.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The sort order is set:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18955" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Sort_Order.jpg" src="https://community.qlik.com/legacyfs/online/18955_MF_Sort_Order.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;As written in a post above, the sorting doesn't work correctly. If I add the field "man_sort_order_qv" to the dimensions, sorting suddenly works:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18959" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Report_with_Sort_ID.jpg" src="https://community.qlik.com/legacyfs/online/18959_MF_Report_with_Sort_ID.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And this works even though I didn't add a sort order for the new dimension:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18960" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Sort_ID_Sort_Order.jpg" src="https://community.qlik.com/legacyfs/online/18960_MF_Sort_ID_Sort_Order.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The sort order for the dimension "Description" is still set as visible in picture above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2012 08:54:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-27T08:54:22Z</dc:date>
    <item>
      <title>Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369347#M573700</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 created our Manufacturing Report on Qlikview 10 SR1 a few days ago and have the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there are lots of KPIs (+/- 80) which should be sorted by a predefined order. I created an additional column with an ID per KPI therefore. E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Company&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;KPI-ID&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;KPI-Desc&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Value&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A100&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Set up Avg Time&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A100&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Total Waste&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A100&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Speed in Run Time&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A100&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Run Time&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A102&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Budgeted working hours&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A102&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Run Time&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A102&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Speed in Run Time&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A102&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Set up (tool exchange)&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simplified I want to show just the KPI-Desc and the Value per Company which works fine. But unfortunatelly the correct order does not work, if I set the KPI-ID as Sort Expression for the KPI-Desc (neither if I use e.g. "avg(KPI-ID)" or sum,min,max... etc.). It works if I add the KPI-ID as additional column in the table, but that is not my target. I don't want to see the ID in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 12:12:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369347#M573700</guid>
      <dc:creator />
      <dc:date>2012-07-26T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369348#M573701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should sort ID by expression and paste there &lt;/P&gt;&lt;P&gt;=min(KPI-ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 12:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369348#M573701</guid>
      <dc:creator />
      <dc:date>2012-07-26T12:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369349#M573702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for your quick answer.&lt;/P&gt;&lt;P&gt;But this is exactly what I'm trying without success. I'm on the "Sort" tab, mark "Sort by Expression" and add =min(KPI-ID) there. It doesn't work. If I add another Dimension with the KPI-ID it works well, but that's what I don't want...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 12:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369349#M573702</guid>
      <dc:creator />
      <dc:date>2012-07-26T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369350#M573703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;send snapshot of your data structure:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 12:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369350#M573703</guid>
      <dc:creator />
      <dc:date>2012-07-26T12:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369351#M573704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find below some screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18954" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Report.jpg" src="https://community.qlik.com/legacyfs/online/18954_MF_Report.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The sort order is set:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18955" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Sort_Order.jpg" src="https://community.qlik.com/legacyfs/online/18955_MF_Sort_Order.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;As written in a post above, the sorting doesn't work correctly. If I add the field "man_sort_order_qv" to the dimensions, sorting suddenly works:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18959" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Report_with_Sort_ID.jpg" src="https://community.qlik.com/legacyfs/online/18959_MF_Report_with_Sort_ID.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;And this works even though I didn't add a sort order for the new dimension:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18960" class="jive-image-thumbnail jive-image" onclick="" alt="MF_Sort_ID_Sort_Order.jpg" src="https://community.qlik.com/legacyfs/online/18960_MF_Sort_ID_Sort_Order.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The sort order for the dimension "Description" is still set as visible in picture above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 08:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369351#M573704</guid>
      <dc:creator />
      <dc:date>2012-07-27T08:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369352#M573705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we get some sample report? &lt;/P&gt;&lt;P&gt;What if you omit the min function from the sorting expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369352#M573705</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-27T09:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369353#M573706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what it the first dimension (which has no label)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369353#M573706</guid>
      <dc:creator />
      <dc:date>2012-07-27T09:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369354#M573707</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;One way to solve this problem is to load Description as a dual. A dual has a text representation (in this case the description itself) and a numeric representation (in this case the sort order). You would load it with something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(Description, man_sort_order_qv) As Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the table sort dialog, check the Numeric Value check box for Description. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - as description is now considered by QV to be a numeric field, it will right align it and will replace the text with #'s if it is too long to fit. You can use Text(Description) to override this behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 09:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369354#M573707</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-07-27T09:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using an ID as Sort Expression on Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369355#M573708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;Thank you very much. This helped!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@all, thanks for your help as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-an-ID-as-Sort-Expression-on-Pivot-Table/m-p/369355#M573708</guid>
      <dc:creator />
      <dc:date>2012-08-09T14:04:53Z</dc:date>
    </item>
  </channel>
</rss>

