<?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 only function with ranking to create sort order navigation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510944#M190882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's easier to create a consecutive number in the script. Then you can use that number to move back and forward to the specific image. Please see the attached file to see (I just created the serial, didn't change the text objects)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 20:49:13 GMT</pubDate>
    <dc:creator>Carlos_Reyes</dc:creator>
    <dc:date>2013-11-12T20:49:13Z</dc:date>
    <item>
      <title>Using only function with ranking to create sort order navigation</title>
      <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510943#M190881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying one image at a time in my app but I'm struggling to get the sorting order right. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="catsubcat.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/48864_catsubcat.PNG.png" style="width: 620px; height: 191px;" /&gt;&lt;/P&gt;&lt;P&gt;I've created a demo app you can try out.&lt;/P&gt;&lt;P&gt;In the screenshot you can see that I have CategoryID, SubcatID, CategoryIndex (SQL Row_number() Over (Partition By CategoryID)) and an ImgFileSource field ( '..\files\' &amp;amp; SubcatID &amp;amp; '.gif' AS ImgFileSource).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sorting should be as follows: &lt;STRONG&gt;CategoryID Desc + highest Index at rank = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So looking at the screenshot above it should be C0007, C0006, C0005(3), C0005(2), and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display the image in this order I tried without luck:&lt;/P&gt;&lt;P&gt;=only({&amp;lt;CategoryID={'=rank(CategoryID)=$(vRank)'}&amp;gt;}ImgFileSource)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the "NEXT RANK" action I used:&lt;/P&gt;&lt;P&gt;=if($(vRank)&amp;lt;max(aggr(rank(CategoryID),SubcatID)),$(vRank)+1,$(vRank))&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just added the CategoryIndex field but I don't know if I actually need it for my task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you can show me how to put this in order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 07:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510943#M190881</guid>
      <dc:creator />
      <dc:date>2013-11-12T07:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using only function with ranking to create sort order navigation</title>
      <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510944#M190882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's easier to create a consecutive number in the script. Then you can use that number to move back and forward to the specific image. Please see the attached file to see (I just created the serial, didn't change the text objects)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510944#M190882</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2013-11-12T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using only function with ranking to create sort order navigation</title>
      <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510945#M190883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a small code wich can be add to a action, to select the next alternative value of a field. If the last value is reached it will go to the first. With a little math you can create previous button, at the moment i am not able to get the ready code to copy it. If you need it i can copy it tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat can be sort if the sortfield is numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;concat&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'|'),'|',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;mod&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;substringcount&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;concat&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'|'),&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;index&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;concat&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'|'),&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)),'|')+1,&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; =&amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt; Feld&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;))+1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 21:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510945#M190883</guid>
      <dc:creator>jonasheisterkam</dc:creator>
      <dc:date>2013-11-12T21:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using only function with ranking to create sort order navigation</title>
      <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510946#M190884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for showing this way - I should be able to get it working from here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510946#M190884</guid>
      <dc:creator />
      <dc:date>2013-11-13T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using only function with ranking to create sort order navigation</title>
      <link>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510947#M190885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your code sample but I think I'll go the easier way here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 09:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-only-function-with-ranking-to-create-sort-order-navigation/m-p/510947#M190885</guid>
      <dc:creator />
      <dc:date>2013-11-13T09:42:19Z</dc:date>
    </item>
  </channel>
</rss>

