<?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: Using calculated dimension order in sort (expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992960#M338171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put this in my calculated dimension. It didn't really change anything, Is there something I should do from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 14:33:00 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2015-11-13T14:33:00Z</dc:date>
    <item>
      <title>Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992958#M338169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created the following calculated dimension (which works well) to group buckets of Revenue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;5000,'Less Than 5,000',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;10001,'5,000-10,000',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;25001,'10,000-25,000',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;50001,'25,000-50,000',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;100001,'50,000-100,000',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount Revenue Est BoB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Producer]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;100000,'Greater than 100,000','NA'&lt;BR /&gt; )))))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But I want the the sort order the same order as it appears in the expression above. The problem it is sorting like this (with the 5,000-10,000 out of order)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Less Than 5,000&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,000-25,000&lt;BR /&gt;25&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,000-50,000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;,000-10,000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;50&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,000-100,000&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Greater than 100,000'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992958#M338169</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-11-13T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992959#M338170</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;SPAN style="font-size: 10pt; color: #575757;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer])&amp;lt;5000, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'Less Than 5,000'&lt;SPAN style="color: #ff0000;"&gt;, 1)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer])&amp;lt;10001, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'5,000-10,000'&lt;SPAN style="color: #ff0000;"&gt;, 2)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer])&amp;lt;25001, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'10,000-25,000'&lt;SPAN style="color: #ff0000;"&gt;, 3)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer])&amp;lt;50001, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'25,000-50,000'&lt;SPAN style="color: #ff0000;"&gt;, 4)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer])&amp;lt;100001, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'50,000-100,000'&lt;SPAN style="color: #ff0000;"&gt;, 5)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If(Aggr(Sum([Amount Revenue Est BoB]),[Customer Name],[Producer]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;)&amp;gt;100000, &lt;SPAN style="color: #ff0000;"&gt;Dual(&lt;/SPAN&gt;'Greater than 100,000'&lt;SPAN style="color: #ff0000;"&gt;, 6)&lt;/SPAN&gt;,'NA'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;))))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992959#M338170</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-13T14:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992960#M338171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I put this in my calculated dimension. It didn't really change anything, Is there something I should do from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992960#M338171</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-11-13T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992961#M338172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes use the numeric value sort ascending order and uncheck all others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992961#M338172</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-13T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992962#M338173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are u tried Sunny expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not,then u can place ur above syntax in load statement and use that statement label as ur dimension that will gives ur expected out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else share sample,we will quickly respond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 14:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992962#M338173</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-11-13T14:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992963#M338174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992963#M338174</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2015-11-13T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using calculated dimension order in sort (expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992964#M338175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-calculated-dimension-order-in-sort-expression/m-p/992964#M338175</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-13T15:12:19Z</dc:date>
    </item>
  </channel>
</rss>

