<?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 expression with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258898#M869115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the sort expression I provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2016 16:46:30 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-01T16:46:30Z</dc:date>
    <item>
      <title>Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258891#M869108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi all,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So I am having trouble sorting by a subset of Open Balance. Currently, I have these buckets listed under the field name [Aging Groups]. Aging groups determines the number of days late on open balance of clients of our company.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Aging Groups includes&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'Current',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'1-30 Days Late',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'31-60 Days Late',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'61-90 Days Late',&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and '91+ Days Late'. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In one bar chart, I have sorted these open balances by the following expression: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;&lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({&amp;lt;&lt;/SPAN&gt;SheetName&lt;SPAN class="s2"&gt;={&lt;/SPAN&gt;"$(MaxSheetName)"&lt;SPAN class="s2"&gt;}&amp;gt;}&lt;/SPAN&gt;[Open Balance]&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;&lt;SPAN class="s2"&gt;This allows me to see the client with the highest open balance to the lowest open balance where SheetName is a field created to give the Open Balance for the current date and MaxSheetName is a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;However, I want to see the clients descending by the order of the amount in the 91+ Days Late.&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;Does anyone know how I would go about doing this in the sort expressions?&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13.3333px;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258891#M869108</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258892#M869109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="s2" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SheetName&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;"$(MaxSheetName)"&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&lt;SPAN style="color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Aging Groups] = {&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;'91+ Days Late'&lt;/SPAN&gt;}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Open Balance]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="s2" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 22:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258892#M869109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-30T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258893#M869110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="s1" style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SheetName&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"$(MaxSheetName)"&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; color: #ff0000;"&gt;[Aging Groups] = {"$(=If(WildMatch(&lt;SPAN style="; color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;[Aging Groups], &lt;SPAN style="; color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;'91+ Days Late'&lt;/STRONG&gt;&lt;/SPAN&gt;),&lt;SPAN style="; color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;[Aging Groups]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;)))"}&lt;/SPAN&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Open Balance]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="s2" style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="s2" style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;I Assume, You have the field called&lt;STRONG&gt; &lt;SPAN style="; color: #ff0000; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;[Aging Groups] &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;with the Values or else you may get those values using Aggregation. Can we get that expression for sorting&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 02:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258893#M869110</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-12-01T02:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258894#M869111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Try like this&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;SheetName&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;"$(MaxSheetName)"&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; color: #ff0000;"&gt;[Aging Groups] &amp;gt;= {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;'91+ Days Late'&lt;/SPAN&gt;}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;[Open Balance]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="s2" style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 03:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258894#M869111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-01T03:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258895#M869112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Melanie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking for following scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QVC.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145393_QVC.jpg" style="height: 179px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For above you can sort ageing group by giving expression like following&lt;/P&gt;&lt;P&gt;if(AgeingBucket='91+ Days Late',1,&lt;/P&gt;&lt;P&gt;if(AgeingBucket='61-90 Days Late',2,&lt;/P&gt;&lt;P&gt;if(AgeingBucket='31-60 Days Late',3,&lt;/P&gt;&lt;P&gt;if(AgeingBucket='1-30 Days Late',4,&lt;/P&gt;&lt;P&gt;if(AgeingBucket='Current',5)))))&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 Dec 2016 05:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258895#M869112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-01T05:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258896#M869113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Workbook .jpg" class="jive-image image-1" height="485" src="/legacyfs/online/145445_Workbook .jpg" style="height: 485px; width: 646.667px;" width="647" /&gt;&lt;/P&gt;&lt;P&gt;This is what I have currently. I did create the field [Aging Groups] which allows me to show the open balances like in the first chart. My set analysis expression in the original question allows me to have the stacked bar chart to the right with the clients lined up in order of the amount of open balances they have. However, I want to be able to view the clients instead by the amount of open balances they have that are 91+ days late. So in this scenario, it would be ordered Client B, A, D, C. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 16:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258896#M869113</guid>
      <dc:creator />
      <dc:date>2016-12-01T16:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258897#M869114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is in the back end to create the field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Alt&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;((&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;isNUll&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Aging]&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;)),0,&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Aging]&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;)) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Aging]&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;BR /&gt; //Creates Groups for aging&lt;BR /&gt; //Aging =0 so an accurate average can be taken&lt;BR /&gt; &lt;SPAN class="s2"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;isNUll&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Aging]&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;),'Current',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;gt;=1 &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;and&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &amp;lt;=30,'1-30 Days Late',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;gt;30 &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;and&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &amp;lt;=60,'31-60 Days Late',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;gt;60 &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;and&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Aging&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&amp;lt;=90,'61-90 Days Late','91+ Days Late')))) &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;AS&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;[Aging Groups] &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 16:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258897#M869114</guid>
      <dc:creator />
      <dc:date>2016-12-01T16:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258898#M869115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the sort expression I provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 16:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258898#M869115</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-01T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258899#M869116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're a god. I spent a majority of my yesterday on that. When I filter for 91+ days on my original client bar chart, it shows the same exact order for all of the clients who have red. However, on clients that do not have any balances within that bucket, the order seems disarray. Do you know why that would be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 17:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258899#M869116</guid>
      <dc:creator />
      <dc:date>2016-12-01T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sort expression with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258900#M869117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Melanie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to do this is using the DUAL function.&lt;/P&gt;&lt;P&gt;Then you can order your graph selecting Numeric Values (Ascending or descending) in the sort tab in the object properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this procedure.&lt;/P&gt;&lt;P&gt;1.- Create this inline in the first tab in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SortingAgingGroups:&lt;/P&gt;&lt;P&gt;MAPPING&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Name,&amp;nbsp;&amp;nbsp;&amp;nbsp; order&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Current,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1-30 Days Late,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;31-60 Days Late,&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;61-90 Days Late,&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;91+ Days Late,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't know the name of the field which contains the values 'Current', 1-30 Days...... etc.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am going to call it AgingGroup. You have to change it for the correct name.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2. In the script, where you LOAD the field AgingGroup:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AgingGroup AS....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You have to change the name of the field for a Dual function. Your LOAD Script looks like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DUAL(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;AgingGroup&lt;/SPAN&gt;, APPLYMAP('&lt;SPAN style="font-size: 13.3333px;"&gt;SortingAgingGroups&lt;/SPAN&gt;',AgingGroup)) AS AgingGroup,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;....&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-expression-with-set-analysis/m-p/1258900#M869117</guid>
      <dc:creator>jmmayoral3</dc:creator>
      <dc:date>2017-01-30T14:57:21Z</dc:date>
    </item>
  </channel>
</rss>

