<?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: Sort Data Based on Number of Leading Zeros in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445207#M97625</link>
    <description>&lt;P&gt;You may try it with the following as sort-index:&lt;/P&gt;
&lt;P&gt;findoneof(lower(YourField), '123456789abc...xyz') as SortIndex&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 10:14:18 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-04-26T10:14:18Z</dc:date>
    <item>
      <title>Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443018#M97466</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;How to sort data based on leading zeros and not the actual number in qlik&lt;/P&gt;
&lt;P&gt;Below is my example&lt;/P&gt;
&lt;TABLE width="101"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="101"&gt;Item Num&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;000670402&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0065FR&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;CS-CD-PSW-10-00&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;010240410&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;The data should be sorted based on number of zeros at the start in ascending order.&lt;/P&gt;
&lt;P&gt;My final output should be like the below table&lt;/P&gt;
&lt;TABLE width="101"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="101"&gt;Item Num&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;000670402&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0065FR&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;010240410&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;CS-CD-PSW-10-00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Note : This is just an example . I have more that 30000 item numbers like this and i want to sort based on number of leading zeros&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443018#M97466</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2024-11-15T20:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443021#M97468</link>
      <description>&lt;P&gt;Have you try to disable the sort by numeric and have only the sort by alphabetically on?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443021#M97468</guid>
      <dc:creator>igoralcantara</dc:creator>
      <dc:date>2024-04-19T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443067#M97469</link>
      <description>&lt;P&gt;load len(PurgeChar(field,123456789)) as ZeroLength,field;&lt;BR /&gt;load * Inline [&lt;BR /&gt;field&lt;BR /&gt;001234&lt;BR /&gt;12008750&lt;BR /&gt;000765&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;use&amp;nbsp;ZeroLength field for sorting&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 16:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2443067#M97469</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-04-19T16:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445099#M97615</link>
      <description>&lt;P&gt;Yes I have tried . But its not working as expected&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 05:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445099#M97615</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2024-04-26T05:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445100#M97616</link>
      <description>&lt;P&gt;I have tried this. But not getting desired output&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 05:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445100#M97616</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2024-04-26T05:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Data Based on Number of Leading Zeros</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445207#M97625</link>
      <description>&lt;P&gt;You may try it with the following as sort-index:&lt;/P&gt;
&lt;P&gt;findoneof(lower(YourField), '123456789abc...xyz') as SortIndex&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 10:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-Data-Based-on-Number-of-Leading-Zeros/m-p/2445207#M97625</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-26T10:14:18Z</dc:date>
    </item>
  </channel>
</rss>

