<?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 Issue with Sort in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193768#M385391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to sort a text field by manually assigning numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following formula in the SORT/Expression selection within a PivotTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ServiceLineCode='IC',1,if(ServiceLineCode='TDS',2,if(ServiceLineCode='FBD',3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then checked Numeric Value Ascending.&amp;nbsp; Doesn't seem to pick up the field and sort.&amp;nbsp; Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 18:40:33 GMT</pubDate>
    <dc:creator>kennyk20</dc:creator>
    <dc:date>2016-10-12T18:40:33Z</dc:date>
    <item>
      <title>Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193768#M385391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to sort a text field by manually assigning numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the following formula in the SORT/Expression selection within a PivotTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ServiceLineCode='IC',1,if(ServiceLineCode='TDS',2,if(ServiceLineCode='FBD',3)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then checked Numeric Value Ascending.&amp;nbsp; Doesn't seem to pick up the field and sort.&amp;nbsp; Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 18:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193768#M385391</guid>
      <dc:creator>kennyk20</dc:creator>
      <dc:date>2016-10-12T18:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193769#M385392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where you have been trying this out to see what you have right now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193769#M385392</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-12T19:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193770#M385393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe, sort by expression with : =index(ServiceLineCode, 'IC', 'TDS','FBD')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193770#M385393</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2016-10-12T19:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193771#M385394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sort tab...&amp;gt; expression...&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ServiceLineCode,'IC','TDS','FBD')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193771#M385394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T19:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193772#M385395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(ServiceLineCode='IC',1,if(ServiceLineCode='TDS',2,if(ServiceLineCode='FBD',3))) AS ServiceLineSort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The expression above would be in your load script, and the sort would be the field name above (ServiceLineSort) as your expression.&amp;nbsp; Alternatively you could use the match expression Alluraiah provided.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193772#M385395</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2016-10-12T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Sort</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193773#M385396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I generally handle this sort of sorting with an inline table at the top of the script that I drop at the end, then sorting in load order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Service Line Code Sort Order]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ServiceLineCode&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;IC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;TDS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FBD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...rest of script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE [Service Line Code Sort Order];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-Sort/m-p/1193773#M385396</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-12T23:11:53Z</dc:date>
    </item>
  </channel>
</rss>

