<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392650#M490421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at the attached sample qvw. I remember there is also a preceding thread to this one that might explain some stuff a little better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As first step, we don't actually use the search object, but an input field and store the pasted in values in 1 variable vSearch.&lt;/P&gt;&lt;P&gt;Then we've created a button with a select in field action that does the search for us:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;replace(trim(vSearch),'&amp;nbsp; ','|')&amp;amp;')' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This search action is somewhat specific to the input format of the pasted Excel file values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 13:03:05 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-04-25T13:03:05Z</dc:date>
    <item>
      <title>Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392641#M490412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a challenge for you.&amp;nbsp; I have an input box that allows the user to paste a column of Shipment ID Numbers from an Excel file, click 'Search' and get the required results.&amp;nbsp; If one or more Shipment IDs are not found, then a text box pops up to let the user know which value was not found in the data.&amp;nbsp; This all works great. However, now I have run into a problem that I can't seem to solve. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our end users have requested that the report be sorted in the order entered in the search box. I am betting that there is a way to do this using the Sort expression, but I cannot get it to work for the life of me.&amp;nbsp; If anyone can figure it out I will be both grateful and impressed. I have attached a sample file and an Excel document with an example of a search request.&amp;nbsp; The end report will need to match this order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392641#M490412</guid>
      <dc:creator />
      <dc:date>2012-10-08T19:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392642#M490413</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;Go to sort tab on the chart properties and enter as sort expression for your ID field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=match(ShipmentNumber,$(=replace(vSearch,'&amp;nbsp; ',',')))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 20:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392642#M490413</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-08T20:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392643#M490414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!! You are a genius, as always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 20:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392643#M490414</guid>
      <dc:creator />
      <dc:date>2012-10-08T20:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392644#M490415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question:&amp;nbsp; The match expression is working perfectly in my test file, but isn't having any effect in my actual file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Search variable is vProNum and the field is FBProNum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Match expression for the sort is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;match&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FBProNum&lt;/SPAN&gt;,&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;$(=replace(vProNum,'&amp;nbsp; ',','))&lt;/EM&gt;&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something obvious?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392644#M490415</guid>
      <dc:creator />
      <dc:date>2012-10-09T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392645#M490416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dollar sign expansion should not be different from the replace used in your search expression used with the search button action. I just noticed that you are using an additional trim() in your search expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;match&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FBProNum&lt;/SPAN&gt;,&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;$(=replace(trim(vProNum),'&amp;nbsp; ',','))&lt;/EM&gt;&lt;/STRONG&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if your search works ok, this should also work. The essential idea is to expand to something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;match&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;FBProNum&lt;/SPAN&gt;, &lt;/SPAN&gt;679521,123431,987123,123432,123430)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(using the sample data). If your delimiter of your values you paste in the input box is different from '&amp;nbsp; ' (two spaces), you must adapt to something more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can actually check the outcome of the dollar sign expansion by pasting it to a text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392645#M490416</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-09T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392646#M490417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I came across this discussion and it is just what I was looking for. I want to paste several values into a search box. however (from your example file) when I paste a bunch of shipping ID into the search box nothing happens. Only when I did a single shipment ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks from your statement above "I have an input box that allows the user to paste a column of Shipment ID Numbers from an Excel file, click 'Search' and get the required results. "&amp;nbsp; that you can do multiple at one time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 14:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392646#M490417</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2012-11-09T14:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392647#M490418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is built to be able to enter multiple values at once.&amp;nbsp; Although your requirements may vary, if you select a column on shipment IDs, paste them into the search box, click in the grey area, and then click 'Search' it will work.&amp;nbsp; See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy values in Excel column:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24879" class="jive-image" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/24879_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Paste in to Input Box, then click outside the box:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24881" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/24881_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Click Search:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24882" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.JPG" src="https://community.qlik.com/legacyfs/online/24882_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;In the example above I disabled all the conditions so that you could see all fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 14:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392647#M490418</guid>
      <dc:creator />
      <dc:date>2012-11-09T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392648#M490419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIR, the coded action was a little specific to the format of the pasted content (look how I replaced multiple spaces with a comma).&lt;/P&gt;&lt;P&gt;So, it's not really a generic copy&amp;amp;paste solution, i.e. if you're input format differs, the action might not work as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 15:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392648#M490419</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-09T15:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392649#M490420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like it would be a great option but it I can't get it to work like your pictures above. I am sure I am missing a few steps but I added a new search object, then tried to paste my values into it...it didn't recognize the "paste" at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide the details from adding a search object through the pasting of the values into the object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 12:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392649#M490420</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-04-25T12:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392650#M490421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please have a look at the attached sample qvw. I remember there is also a preceding thread to this one that might explain some stuff a little better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As first step, we don't actually use the search object, but an input field and store the pasted in values in 1 variable vSearch.&lt;/P&gt;&lt;P&gt;Then we've created a button with a select in field action that does the search for us:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;replace(trim(vSearch),'&amp;nbsp; ','|')&amp;amp;')' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This search action is somewhat specific to the input format of the pasted Excel file values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-Expression/m-p/392650#M490421</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-25T13:03:05Z</dc:date>
    </item>
  </channel>
</rss>

