<?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 Numbers as text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528474#M553484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a product number field that is alpha numeric that I would like to sort as text.&amp;nbsp; For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently product 10000 would come after product 1111 because it is a larger number.&amp;nbsp; On the sort tab I am using sort alphabetically A --&amp;gt; Z and the product number field is stored as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like Qlikview to read the numbers as letters meaning:&lt;/P&gt;&lt;P&gt;0 = A&lt;/P&gt;&lt;P&gt;1 = B&lt;/P&gt;&lt;P&gt;2 = C&lt;/P&gt;&lt;P&gt;3 = D&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone done this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 14:55:12 GMT</pubDate>
    <dc:creator>jpapador</dc:creator>
    <dc:date>2013-10-08T14:55:12Z</dc:date>
    <item>
      <title>Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528474#M553484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a product number field that is alpha numeric that I would like to sort as text.&amp;nbsp; For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently product 10000 would come after product 1111 because it is a larger number.&amp;nbsp; On the sort tab I am using sort alphabetically A --&amp;gt; Z and the product number field is stored as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like Qlikview to read the numbers as letters meaning:&lt;/P&gt;&lt;P&gt;0 = A&lt;/P&gt;&lt;P&gt;1 = B&lt;/P&gt;&lt;P&gt;2 = C&lt;/P&gt;&lt;P&gt;3 = D&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone done this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 14:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528474#M553484</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-08T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528475#M553485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jpapador,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use a mapping table (with two fields, mapping the numbers against letters just like you've done here) and use the APPLYMAP() function to create a "sorting_field".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528475#M553485</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-10-08T15:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528476#M553486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try sorting by expression and use as expression something like &lt;EM&gt;MyField&amp;amp;Repeat('0',10-len(MyField)). &lt;/EM&gt;Replace MyField with the name of your field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528476#M553486</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-08T16:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528477#M553487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, go to the sort tab, check Text and select Z -&amp;gt; A and see if that works. J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 16:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528477#M553487</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-10-08T16:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528478#M553488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the product numbers aren't single numbers they are like 1111, where could I apply the map so that it reads 1111 as aaaa?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 22:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528478#M553488</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-08T22:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528479#M553489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use the Dual() function. This is the kind of function used to tell QlikView that "may" should be the 5th month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 22:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528479#M553489</guid>
      <dc:creator>vivientexier</dc:creator>
      <dc:date>2013-10-08T22:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528480#M553490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jappador,&lt;/P&gt;&lt;P&gt;I think there is 2 ways to do that:&lt;/P&gt;&lt;P&gt;1 ) Create a Expression Text( Field ) and order by A -&amp;gt; Z&lt;/P&gt;&lt;P&gt;2 ) Sort by expression.&amp;nbsp; Text( Field ).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Numbers.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47358_Numbers.png" /&gt;&lt;/P&gt;&lt;P&gt;They show diferents results, but the 10000 comes before 1111 in both approaches. See results and attached, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 00:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528480#M553490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-09T00:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528481#M553491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still cannot get it just right... I have attached a sample QVW.&amp;nbsp; As you can see I created a field where I replaced the product numbers with letters and the sort works if I create a table box with both fields and sort on the new field created.&amp;nbsp; The problem comes in when you just try to sort product numbers without the field in the same table.&amp;nbsp; I can't figure out how to write the expression. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 16:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528481#M553491</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-10-09T16:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sorting Numbers as text</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528482#M553492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached. Sort your field in load order (like in the sample file's list box) and compare to your table sorted by the other field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 16:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Numbers-as-text/m-p/528482#M553492</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-10-09T16:45:25Z</dc:date>
    </item>
  </channel>
</rss>

