<?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 Problem in sorting with expression! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179621#M501903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just giving this a bump up. Probably should have created a new thread rather than tagging onto this one. Any ideas?&lt;/P&gt;&lt;P&gt;Regards, Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 08:14:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-18T08:14:55Z</dc:date>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179611#M501893</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 am using the following expression in one of chart for sorting the dimension. The problem what I am facing here is that whenever I select 2011 it is not getting sorted properly but for the rest of the years it is getting sorted properly. One of the possible reason for this may be because 2011 contains only one period(A1).&lt;/P&gt;&lt;P&gt;Can some one please check and let me know what could be done with this expression. For your understanding, A1,A2,...,A12 are months only which is named like this.&lt;/P&gt;&lt;P&gt;For your information A1-A12 are months only it is calculated in script.&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=wildmatch(PERIOD,'A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;When selecting 2011 sorting in proper may be because it contains only one period(A1):&lt;/P&gt;&lt;P&gt;'A1','A10','A11','A12','A2','A3','A4','A5','A6','A7','A8','A9'&lt;/P&gt;&lt;P&gt;When I select other years(2010,2009) sorting is proper as shown below. May be because it contains all the period(A1-A12)&lt;/P&gt;&lt;P&gt;'A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 13:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179611#M501893</guid>
      <dc:creator />
      <dc:date>2011-01-21T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179612#M501894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Does any knows the solution for this. I am still working on this problem but not able to find out the solution for this.&lt;/P&gt;&lt;P&gt;The reason why it is not working is may because 2011 contains only one period A1 and for other periods there is no value(A2-A12). So ths expression works only for those year where the periods are there. When there is no value of the periods for particular year(2011) qlikview not considering this expression to sort. It is displaying the periods by default.&lt;/P&gt;&lt;P&gt;I think we may need to find out where those value are taken in qlikview. I think it is just displaying the periods as it is.&lt;/P&gt;&lt;P&gt;Just a thought!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 07:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179612#M501894</guid>
      <dc:creator />
      <dc:date>2011-01-25T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179613#M501895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rght(Period,2) it will gives you period in number so you can sort it easily&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 08:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179613#M501895</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-25T08:15:08Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179614#M501896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Sunil&lt;/P&gt;&lt;P&gt;Thats true but I don't want to display the period in number. I want to display the period in the same format only (A1,A2,...A12)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 08:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179614#M501896</guid>
      <dc:creator />
      <dc:date>2011-01-25T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179615#M501897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Attitude,&lt;/P&gt;&lt;P&gt;Please give Desc in Script So it will sort by Desc Order.&lt;/P&gt;&lt;P&gt;or else you can also Sort it in QlikView by Sorting it in Sort Tab Descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 12:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179615#M501897</guid>
      <dc:creator />
      <dc:date>2011-01-25T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179616#M501898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav,&lt;/P&gt;&lt;P&gt;I am not sure what how to give Desc in the script could you please explain it in a better way.&lt;/P&gt;&lt;P&gt;By the way I have already tried sorting in Descending order from the sort tab. It does work for 2009 and 2010 but not for 2011 which contains only 2 periods(A1 and A2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179616#M501898</guid>
      <dc:creator />
      <dc:date>2011-01-25T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179617#M501899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can sor by my previous suggestion but dispaly in original manner.&lt;/P&gt;&lt;P&gt;that works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179617#M501899</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-25T13:39:44Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179618#M501900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunil&lt;/P&gt;&lt;P&gt;I have tried it but it didn't work in that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 13:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179618#M501900</guid>
      <dc:creator />
      <dc:date>2011-01-25T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179619#M501901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Has anyone else come across this and worked out what is happening?&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;I have a pivot table with sort on expression. This table shows last 13 weeks sales so in first 13 weeks of year lowest numbers show last across top of table..&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;If(&lt;I&gt;vCurrentWeek&lt;/I&gt;&lt;/B&gt; &amp;lt; '14', wildmatch(Week,'40','41','42','43','44','45','46','47','48','49','50','51','52','1','2','3','4','5','6','7','8','9','10','11','12','13') , &lt;B style="mso-bidi-font-weight:normal;"&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;B style="mso-bidi-font-weight:normal;"&gt;wildmatch(Week,'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43','44','45','46','47','48','49','50','51','52'))&lt;/B&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;This works great but if a week is selected this week appears last in sort even though state is unticked on sort screen.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;I have expression, numeric and text selected on sort. Get same results with just expression.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Without the expression the sort works as I would expect even with a selected week.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Week is the second of two dimensions. The first is just set to sort by text and shows down vertical side.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Any help appreciated.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;"&gt;Regards, Paul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 15:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179619#M501901</guid>
      <dc:creator />
      <dc:date>2011-04-15T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179620#M501902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried to replicate the issue in this example.&lt;/P&gt;&lt;P&gt;Apologies for data being a bit random. It's Friday p.m?&lt;/P&gt;&lt;P&gt;Sort seems even less predictable in this example than in the application.&lt;/P&gt;&lt;P&gt;A workaround would be to not allow selection of "Number" as selection does not effect data displayed but need to allow selection on other dimension and can't find a way to only disable one dimension from being selectable but I may have missed this.&lt;/P&gt;&lt;P&gt;Hope the attachement works, I've not uploaded one before.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 16:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179620#M501902</guid>
      <dc:creator />
      <dc:date>2011-04-15T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Problem in sorting with expression!</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179621#M501903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just giving this a bump up. Probably should have created a new thread rather than tagging onto this one. Any ideas?&lt;/P&gt;&lt;P&gt;Regards, Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 08:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-sorting-with-expression/m-p/179621#M501903</guid>
      <dc:creator />
      <dc:date>2011-04-18T08:14:55Z</dc:date>
    </item>
  </channel>
</rss>

