<?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 Straight Table Sort by Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-Sort-by-Expression/m-p/135639#M457796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with some calculated fields and other fields have expressions:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sort_correct.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210740_sort_correct.PNG" style="height: 101px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Columns with expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 4: &lt;SPAN style="color: #575757;"&gt;&lt;EM&gt;aggr(only({&amp;lt;[CALL SERVICE TYPE]={'EM','PM','IS','ROP'}&amp;gt;} [SERVICE NO.]), [SERVICE NO.])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Column 13: &lt;EM&gt;if([CALL SERVICE TYPE]='EM' and [PROBLEM TYPE]='HW' and not([REPAIR CODE]&amp;gt;=40 and [REPAIR CODE]&amp;lt;=43) and (above(total [MIF SERIAL])=[MIF SERIAL] and [SO DATE]-above(total [SO DATE])&amp;lt;=7),1,0)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Now there a catch, Column 3 then Column 4 must be sorted ascending to compute the value for Column 13 and 14 but I want to remove the Column 3 and sort by Column 1 and it is affecting the result by just changing the sort criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sort_wrong.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/210741_sort_wrong.PNG" style="height: 116px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Again, the goal is to remove the Column 3, but retaining the sort order [via some expressions(?)] to achieve the same result shown in image 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 05:50:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-14T05:50:19Z</dc:date>
    <item>
      <title>Straight Table Sort by Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Sort-by-Expression/m-p/135639#M457796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with some calculated fields and other fields have expressions:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sort_correct.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210740_sort_correct.PNG" style="height: 101px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Columns with expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column 4: &lt;SPAN style="color: #575757;"&gt;&lt;EM&gt;aggr(only({&amp;lt;[CALL SERVICE TYPE]={'EM','PM','IS','ROP'}&amp;gt;} [SERVICE NO.]), [SERVICE NO.])&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Column 13: &lt;EM&gt;if([CALL SERVICE TYPE]='EM' and [PROBLEM TYPE]='HW' and not([REPAIR CODE]&amp;gt;=40 and [REPAIR CODE]&amp;lt;=43) and (above(total [MIF SERIAL])=[MIF SERIAL] and [SO DATE]-above(total [SO DATE])&amp;lt;=7),1,0)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Now there a catch, Column 3 then Column 4 must be sorted ascending to compute the value for Column 13 and 14 but I want to remove the Column 3 and sort by Column 1 and it is affecting the result by just changing the sort criteria.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sort_wrong.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/210741_sort_wrong.PNG" style="height: 116px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Again, the goal is to remove the Column 3, but retaining the sort order [via some expressions(?)] to achieve the same result shown in image 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 05:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Sort-by-Expression/m-p/135639#M457796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T05:50:19Z</dc:date>
    </item>
  </channel>
</rss>

