<?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 conditional sort issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditional-sort-issue/m-p/814617#M287323</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;I have a cyclic group with different kind of dimensions in the group. In the sort, I want that if the selected dimension in the cyclic group is Time then sort alphabetically, otherwise sort by Y value&lt;/P&gt;&lt;P&gt;In the sort expression, I have put it something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14253025677982678" jivemacro_uid="_14253025677982678" modifiedtitle="true"&gt;
&lt;P&gt;if(GetCurrentField('sale dimensions') &amp;lt;&amp;gt; 'Time',&lt;/P&gt;
&lt;P&gt;sum(saleamount)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I have checked both the sort options by expression and then also checked the option sort alphabetically. I assumed that if the condition in the expression is not met, it will then sort alphabetically. This way if the selected dimension in the cyclic group is Time, it will sort alphabetically and if it is other dimensions, it will sort by y value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it does not seem to work. Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 13:28:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-02T13:28:23Z</dc:date>
    <item>
      <title>conditional sort issue</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-sort-issue/m-p/814617#M287323</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;I have a cyclic group with different kind of dimensions in the group. In the sort, I want that if the selected dimension in the cyclic group is Time then sort alphabetically, otherwise sort by Y value&lt;/P&gt;&lt;P&gt;In the sort expression, I have put it something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14253025677982678" jivemacro_uid="_14253025677982678" modifiedtitle="true"&gt;
&lt;P&gt;if(GetCurrentField('sale dimensions') &amp;lt;&amp;gt; 'Time',&lt;/P&gt;
&lt;P&gt;sum(saleamount)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I have checked both the sort options by expression and then also checked the option sort alphabetically. I assumed that if the condition in the expression is not met, it will then sort alphabetically. This way if the selected dimension in the cyclic group is Time, it will sort alphabetically and if it is other dimensions, it will sort by y value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it does not seem to work. Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 13:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-sort-issue/m-p/814617#M287323</guid>
      <dc:creator />
      <dc:date>2015-03-02T13:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: conditional sort issue</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-sort-issue/m-p/814618#M287324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed, in the "group configuration" dialog (Dimensions tab--&amp;gt; Edit Group--&amp;gt; Select group--&amp;gt; edit) you can set the sort for each field in the group (in the "Sort Fields..." button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In there, select 'Alphabetical' for the Time fields and Sum(saleamount) for the other fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 14:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-sort-issue/m-p/814618#M287324</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-02T14:10:33Z</dc:date>
    </item>
  </channel>
</rss>

