<?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: How to sort the numeric value Of List box. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226271#M391366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This date field according to user want to see Year and Week number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already i have created date logic in edit script&amp;nbsp; that is Year and Week number(2016-1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I also showed this value in Dashboard in List box.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but i want to proper sort order so how i sort this? that means &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;like this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 10:46:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-07T10:46:20Z</dc:date>
    <item>
      <title>How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226269#M391364</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 date field in below format and i have to sort this value in List box in ascending order.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;2016-12,&lt;/P&gt;&lt;P&gt;2016-1,&lt;/P&gt;&lt;P&gt;2016-10,&lt;/P&gt;&lt;P&gt;2016-5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Output &lt;/P&gt;&lt;P&gt;2016-1,&lt;/P&gt;&lt;P&gt;2016-5,&lt;/P&gt;&lt;P&gt;2016-10,&lt;/P&gt;&lt;P&gt;2016-12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also refer below image&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Date.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152273_Date.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226269#M391364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T10:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226270#M391365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this field read as date by QlikView? May be try like this in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Date#(Date, 'YYYY-MM')&lt;SPAN style="font-size: 13.3333px;"&gt;, 'YYYY-MM')&lt;/SPAN&gt; as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, read here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226270#M391365</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226271#M391366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This date field according to user want to see Year and Week number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Already i have created date logic in edit script&amp;nbsp; that is Year and Week number(2016-1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I also showed this value in Dashboard in List box.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but i want to proper sort order so how i sort this? that means &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2016-19&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;like this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226271#M391366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T10:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226272#M391367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you create this Year and Week field in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226272#M391367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T10:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226273#M391368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this as sort expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Makeweekdate(Left(&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Field_Name&lt;/STRONG&gt;&lt;/SPAN&gt;,4),SubField(&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Field_Name&lt;/STRONG&gt;&lt;/SPAN&gt;,'-',2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But best practice is to format the date field in script itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226273#M391368</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2017-02-07T10:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226274#M391369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have written below code for week in edit script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Year(Date) &amp;amp;'-'&amp;amp; Week (Date) As WEEK&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Date is my date field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;this WEEK field showing me below result and i want to show this WEEK in ascending sort order in List box&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Pleas refer below screen shot &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Date.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152285_Date.png" style="height: 350px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 10:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226274#M391369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226275#M391370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Year(Date) &amp;amp;'-'&amp;amp; Week (Date), WeekStart(Date)) As WEEK&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226275#M391370</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226276#M391371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written logic for WEEK field in edit script and i want to show that field in List box in Ascending order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226276#M391371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T11:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226277#M391372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help your logic is working properly. I got solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you explain me your logic. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226277#M391372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T11:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226278#M391373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. your logic is working properly. i got solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pleas can you explain me your logic. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 11:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226278#M391373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226279#M391374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual function assigns a numeric and text value to a field. For text, we are using what you wanted to see and for numeric we used WeekStart() function which basically helps you sort the text value best of the underlying numeric value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 12:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226279#M391374</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort the numeric value Of List box.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226280#M391375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now i understood. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 12:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-the-numeric-value-Of-List-box/m-p/1226280#M391375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T12:36:06Z</dc:date>
    </item>
  </channel>
</rss>

