<?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 values that contain both text and numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978049#M334100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field as below which works out the fiscal quarter :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q'&amp;amp; Ceil(If(Month($(vDate)) &amp;gt; 3, Month($(vDate)) - 3, Month($(vDate)) + 9) / 3) as Fiscal_Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values returned ie Q1,Q2,Q3,Q4 currently appear in a jumbled up order ( due to the 'Q' ) even though it has been sorted in ascending order. How do I get the values to appear in the correct ascending order ? Do I need to modify the script line or would it be a change in the 'Sort by' options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 11:11:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-01T11:11:08Z</dc:date>
    <item>
      <title>Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978049#M334100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field as below which works out the fiscal quarter :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q'&amp;amp; Ceil(If(Month($(vDate)) &amp;gt; 3, Month($(vDate)) - 3, Month($(vDate)) + 9) / 3) as Fiscal_Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values returned ie Q1,Q2,Q3,Q4 currently appear in a jumbled up order ( due to the 'Q' ) even though it has been sorted in ascending order. How do I get the values to appear in the correct ascending order ? Do I need to modify the script line or would it be a change in the 'Sort by' options ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978049#M334100</guid>
      <dc:creator />
      <dc:date>2015-10-01T11:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978050#M334101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Dual field instead like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(Fiscal_Quarter, QuarterStart($vDate)) as &lt;STRONG&gt;D&lt;/STRONG&gt;Fiscal_Quarter;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // preceding load&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp; Ceil(If(Month($(vDate)) &amp;gt; 3, Month($(vDate)) - 3, Month($(vDate)) + 9) / 3) as Fiscal_Quarter&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use this new dual field in your chart which would sort correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978050#M334101</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-10-01T11:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978051#M334102</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;Dual(&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;'Q'&amp;amp; Ceil(If(Month($(vDate)) &amp;gt; 3, Month($(vDate)) - 3, Month($(vDate)) + 9) / 3) &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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ceil(If(Month($(vDate)) &amp;gt; 3, Month($(vDate)) - 3, Month($(vDate)) + 9) / 3&lt;/SPAN&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;as Fiscal_Quarter&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;Will give you a Dual field that use Q1, Q2, Q3, Q4 as display values in the UI and sort according to the Quarter number in list boxes and other places...&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978051#M334102</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-01T11:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978052#M334103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked perfect with the dual function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly how would this work if using the pick match function ? This time for fiscal year :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pick( WildMatch((If(Month($(vDate)) &amp;gt; 3, Year($(vDate))+1, Year($(vDate)))),'*2013*','*2014*','*2015*', ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'FY 13','FY 14','FY 15') as FYear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978052#M334103</guid>
      <dc:creator />
      <dc:date>2015-10-01T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978053#M334104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would advice you to have a look at this document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-7094" title="https://community.qlik.com/docs/DOC-7094"&gt;https://community.qlik.com/docs/DOC-7094&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978053#M334104</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-01T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting values that contain both text and numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978054#M334105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or have a look at the QlikView Components QVC which gives you all these "calculations" for free ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/169636"&gt;"Qlikview Components" Open Source Project&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 12:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-values-that-contain-both-text-and-numbers/m-p/978054#M334105</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-01T12:31:32Z</dc:date>
    </item>
  </channel>
</rss>

