<?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 Qlikview sort by expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-sort-by-expression/m-p/951497#M973965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys am back again with a sort by expression issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In continuation to the question i asked earlier in the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="177092" data-objecttype="1" href="https://community.qlik.com/thread/177092"&gt;https://community.qlik.com/thread/177092&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the expression below but my sort using the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;v_Volume_in_Litres,Month=,MonthYear={'$(v_MaxMonthYear_1)'},Year=,[Account Business Cust Type]={'CPT'}&amp;gt;}[PYTHON Value]) + sum({$&amp;lt;v_Volume_in_Litres,Month=,MonthYear={'$(v_MaxMonthYear_1)'},Year=,[Account Business Cust Type]={'FLAT'},[Transaction Product Group]={'Fuel'}&amp;gt;}[PYTHON Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is always taking the largest of first expression and adding to the second expression and total is sorted based on the final total.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to illustrate further i have the example dataset attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the table with dimension limits set to top 20 and top 30 in 2 different screens. some of them marked in yellow are in 30 but not when i set to top 20. This is happening due to the value of CPT being lower but the overall total along with FLAT is higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97626_Capture.PNG" style="height: 304px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;can any one explain why this is happening ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2015 01:26:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-02T01:26:05Z</dc:date>
    <item>
      <title>Qlikview sort by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-sort-by-expression/m-p/951497#M973965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys am back again with a sort by expression issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In continuation to the question i asked earlier in the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="177092" data-objecttype="1" href="https://community.qlik.com/thread/177092"&gt;https://community.qlik.com/thread/177092&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the expression below but my sort using the expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;v_Volume_in_Litres,Month=,MonthYear={'$(v_MaxMonthYear_1)'},Year=,[Account Business Cust Type]={'CPT'}&amp;gt;}[PYTHON Value]) + sum({$&amp;lt;v_Volume_in_Litres,Month=,MonthYear={'$(v_MaxMonthYear_1)'},Year=,[Account Business Cust Type]={'FLAT'},[Transaction Product Group]={'Fuel'}&amp;gt;}[PYTHON Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is always taking the largest of first expression and adding to the second expression and total is sorted based on the final total.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to illustrate further i have the example dataset attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the table with dimension limits set to top 20 and top 30 in 2 different screens. some of them marked in yellow are in 30 but not when i set to top 20. This is happening due to the value of CPT being lower but the overall total along with FLAT is higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97626_Capture.PNG" style="height: 304px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;can any one explain why this is happening ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 01:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-sort-by-expression/m-p/951497#M973965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-02T01:26:05Z</dc:date>
    </item>
  </channel>
</rss>

