<?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: order by TimeBand in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387954#M422420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in "Sort by Expression":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(wildmatch(Period,'&amp;gt;*'),4,if(wildmatch(Period,'*and'),3,if(wildmatch(Period,'*d'),1,if(wildmatch(Period,'*m'),2,if(wildmatch(Period,'*y'),3,5)))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2017 11:26:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-14T11:26:47Z</dc:date>
    <item>
      <title>order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387953#M422419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hi, I have a field called TimeBand that contains the following data:&lt;BR /&gt; &lt;BR /&gt;&amp;gt; 5y&lt;BR /&gt;1m&lt;BR /&gt;2 and&lt;BR /&gt;3m&lt;BR /&gt;3y&lt;BR /&gt;4y&lt;BR /&gt;5y&lt;BR /&gt;6m&lt;BR /&gt;12m&lt;BR /&gt;1d&lt;BR /&gt;7d&lt;BR /&gt;1m&lt;BR /&gt;2m&lt;BR /&gt;3m&lt;BR /&gt;6m&lt;BR /&gt;1y&lt;BR /&gt;2 and&lt;BR /&gt;3y&lt;BR /&gt;4y&lt;BR /&gt;5y&lt;BR /&gt;+ 5y&lt;BR /&gt; &lt;BR /&gt;As you can see are periods of time. I need to sort them from minor to major but I do not know how to do it. What I want is for it to look like this: (days, months, years)&lt;BR /&gt; &lt;BR /&gt;1d&lt;BR /&gt;7d&lt;BR /&gt;1m&lt;BR /&gt;2m&lt;BR /&gt;3m&lt;BR /&gt;6m&lt;BR /&gt;12m&lt;BR /&gt;1y&lt;BR /&gt;2 and&lt;BR /&gt;3y&lt;BR /&gt;4y&lt;BR /&gt;5y&lt;BR /&gt;&amp;gt; 5y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387953#M422419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T10:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387954#M422420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in "Sort by Expression":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(wildmatch(Period,'&amp;gt;*'),4,if(wildmatch(Period,'*and'),3,if(wildmatch(Period,'*d'),1,if(wildmatch(Period,'*m'),2,if(wildmatch(Period,'*y'),3,5)))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387954#M422420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T11:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387955#M422421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks Aron,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt; the field where I get that data is called 'bucket', do I have to change the word period for bucket?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387955#M422421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387956#M422422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes change the &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;the word period for bucket or whatever the field name is. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387956#M422422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T11:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387957#M422423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these bands created in the script? I would suggest using dual function while your create these bands and then you can easily sort on numerically&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387957#M422423</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-14T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387958#M422424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;it is a field that comes like this from an excel. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;How is that function you are talking about?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387958#M422424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: order by TimeBand</title>
      <link>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387959#M422425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can read about Dual here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8106"&gt;How to use- Dual()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can use Mapping load to assign a numerical value to your field in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 11:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/order-by-TimeBand/m-p/1387959#M422425</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-14T11:58:44Z</dc:date>
    </item>
  </channel>
</rss>

