<?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: Bubble Sort in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572173#M213192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 15:11:23 GMT</pubDate>
    <dc:creator>rulohx87</dc:creator>
    <dc:date>2014-04-07T15:11:23Z</dc:date>
    <item>
      <title>Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572162#M213181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;¡Hey!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like use this code in an expression. Which are the functions? There are a "FOR" or "WHILE"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="394" style="border: 1px solid rgb(0, 0, 0); width: 299px; height: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Codigo&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;int A[] = {20,10,50,70};&lt;/P&gt;&lt;P&gt;int Aux= 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; for(int i=0; i &amp;lt; A.length-1; i++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("&amp;nbsp; EMP: "+i+" "+A&lt;I&gt;);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int j = 0; j &amp;lt; A.length-i-1 ; j++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("J: "+j+" "+A&lt;J&gt;);&lt;/J&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; f(A[j+1] &amp;lt; A&lt;J&gt; )&lt;/J&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&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;&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;&amp;nbsp; Aux = A[j+1];&lt;/P&gt;&lt;P&gt;&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;&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;&amp;nbsp; A[j+1] = A&lt;J&gt;;&lt;/J&gt;&lt;/P&gt;&lt;P&gt;&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;&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;&amp;nbsp; A&lt;J&gt; = Aux;&lt;/J&gt;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&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; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 16:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572162#M213181</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-03-27T16:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572163#M213182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why re-engineer QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a field that contains the data you want to sort on, and use this as the sort field in your charts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 16:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572163#M213182</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-03-27T16:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572164#M213183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the information is in multiple columns and the idea is to create a "text object" dynamic with the photo of the seller who sold more in this city. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The objective is to determine the first, second and third place for each city. I'm doing it with "IF" but it is very slow. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; V1&amp;nbsp; V2&amp;nbsp; V3 ... Vn&lt;/P&gt;&lt;P&gt;USA&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; 1 ...&lt;/P&gt;&lt;P&gt;U.K.&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 2&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;Mex&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 9&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Country_n&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572164#M213183</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-03-27T17:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572165#M213184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;STRONG&gt;concat&lt;/STRONG&gt;() function&lt;/P&gt;&lt;P&gt;there is an argument to sort the field you want to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572165#M213184</guid>
      <dc:creator />
      <dc:date>2014-03-27T17:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572166#M213185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your current expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572166#M213185</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-03-27T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572167#M213186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you may use also FirstSortedValue()&lt;/P&gt;&lt;P&gt;There is an argument to take the nth value&lt;/P&gt;&lt;P&gt;If you have only 3 texts to display, you can use this function for the 1st one &amp;amp; this function for the second one ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572167#M213186</guid>
      <dc:creator />
      <dc:date>2014-03-27T17:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572168#M213187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my idea. However, this is only 3 columns and easy. But it is not the same with 10 columns.&amp;nbsp; For the "text object" information is dynamic.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ej.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56064_ej.png" style="width: 620px; height: 189px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572168#M213187</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-03-27T17:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572169#M213188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try. Thanks for the tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572169#M213188</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-03-27T17:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572170#M213189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh no&lt;/P&gt;&lt;P&gt;As Colin said, do not re-engeneer QlikView: use in-built function that do the sort for you, that will take the top 3 etc.&lt;/P&gt;&lt;P&gt;If you want to display images, you can do&lt;/P&gt;&lt;P&gt;1) load into a field the path to the images&lt;/P&gt;&lt;P&gt;2) display this field as an image (not text). You have this possibility into the table or the text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572170#M213189</guid>
      <dc:creator />
      <dc:date>2014-03-27T18:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572171#M213190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I thought that I could make a little more simple. I think my code is very big with "IF" lol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572171#M213190</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-03-27T18:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572172#M213191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you would be able to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(rangemax(sum(V1), sum(V2), sum(V3)), sum(V1), sum(V2), sum(V3)), 'V1', 'V2', 'V3')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace V1, V2, ... with your pictures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just be careful when you have 2 sums that are the max, will pick the first one in list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify, V1, V2, ... are separate fields right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572172#M213191</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-03-27T18:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bubble Sort in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572173#M213192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bubble-Sort-in-QlikView/m-p/572173#M213192</guid>
      <dc:creator>rulohx87</dc:creator>
      <dc:date>2014-04-07T15:11:23Z</dc:date>
    </item>
  </channel>
</rss>

