<?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: Conditional sort in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513839#M749441</link>
    <description>&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;I will look at the link for scrambling data and names and post a QVW&amp;nbsp; (It is very large though)&lt;/P&gt;&lt;P&gt;In essence what I am trying to achieve is a sort on the "Y" (expression)&amp;nbsp;for Managers and Sales People and then switch to sort Alpha (or numeric) on Period not just change&amp;nbsp;the dimension on which the sort occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without the AGGR the sum returns larger amount because of duplicates. (Probably need to revisit the data structure but as of now it is resolved)&lt;/P&gt;&lt;P&gt;If &amp;nbsp;'PEMgrPE' is not quoted the expression shows the red squiggly line indicating and error and the top of the expression builder says that there is "Error in&amp;nbsp; expression".&amp;nbsp;With the quotes it does not and at any rate, it works correctly&amp;nbsp;both ways, quoted and not quoted.&lt;/P&gt;&lt;P&gt;I hoped there is a way to switch the sort from Y to Alphanumeric.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 18:04:37 GMT</pubDate>
    <dc:creator>jduenyas</dc:creator>
    <dc:date>2018-11-28T18:04:37Z</dc:date>
    <item>
      <title>Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513198#M749437</link>
      <description>&lt;P&gt;Have a chart with a Drilldown group&amp;nbsp;&amp;nbsp; Manager&amp;gt;SalesPerson&amp;gt;Period.&lt;/P&gt;&lt;P&gt;I wish the chart to be sorted Descending on $$ (Sum (Sales)) when Managers and/or SalesPersons are displayed but&amp;nbsp; on Month when Period is displayed.&lt;/P&gt;&lt;P&gt;Tried to add a macro that does the job but that cannot be called from the chart nor can a variable be set (for instance when&amp;nbsp;&amp;nbsp;&amp;nbsp; If(GetSelectedCount(SalesPerson) = 1&amp;nbsp;a list of months in descending order is the list for the sort)&lt;/P&gt;&lt;P&gt;Doe anyone have a suggestion?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513198#M749437</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513213#M749438</link>
      <description>&lt;P&gt;You can solve this a couple of ways:&lt;/P&gt;&lt;P&gt;Option 1. Edit the Sort Orders (it's a button) in the Group definition.&amp;nbsp; Set the sort for Manager &amp;amp; SalesPerson to sort by expression descending, "sum(Sales)".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 2. In your chart on the sort tab, Make your group the primary sort field and check "Override Group Sort Order".&amp;nbsp; Make it sort by expression ascending and use the expression:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(GetCurrentField(ManagerDrill)='Period', num(Period), -sum(Sales))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 00:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513213#M749438</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-28T00:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513224#M749439</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sort by Sum(Sales) per Person" style="width: 959px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1130i99857094AD47D378/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Sort by Sum(Sales) per Person" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sort by Sum(Sales) per Person&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sort By Period (but wrong)" style="width: 953px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1132iEBFD58448C1F1AB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Sort By Period (but wrong)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Sort By Period (but wrong)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Rob (Always to the rescue!!)&lt;/P&gt;&lt;P&gt;Did not work as when getting to the Period, it remains sorted on values of the period rather than the period's order (Jan, Feb, Mar...)&lt;/P&gt;&lt;P&gt;Expression is :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;GetCurrentField&lt;/FONT&gt;&lt;FONT size="2"&gt;('PEMgrPE')='MonthYear', &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;num&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;MonthYear&lt;/FONT&gt;&lt;FONT size="2"&gt;), -&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;sum&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;AGGR&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;QuotedPrice&lt;/FONT&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800000" size="2"&gt;QuoteNumber&lt;/FONT&gt;&lt;FONT size="2"&gt;))) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Setting the Sorting in the Drilldown setting resulted in the same.&lt;/P&gt;&lt;P&gt;Second sort is on individual sales person but months are not arranged properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 01:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513224#M749439</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2018-11-28T01:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513717#M749440</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;=&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;GetCurrentField&lt;/FONT&gt;&lt;FONT size="2"&gt;('PEMgrPE')='MonthYear',&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;num&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#800000"&gt;MonthYear&lt;/FONT&gt;&lt;FONT size="2"&gt;), -&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;AGGR&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#800000"&gt;QuotedPrice&lt;/FONT&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;FONT size="2" color="#800000"&gt;QuoteNumber&lt;/FONT&gt;&lt;FONT size="2"&gt;)))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;'PeMgrPE' in GetCurrentField() should not be quoted.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;AGGR&lt;/FONT&gt;&lt;FONT size="2"&gt;(&lt;/FONT&gt;&lt;FONT size="2" color="#800000"&gt;QuotedPrice&lt;/FONT&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;FONT size="2" color="#800000"&gt;QuoteNumber&lt;/FONT&gt;&lt;FONT size="2"&gt;)))&amp;nbsp; is an interesting looking expression.&amp;nbsp; Why not just Sum(QuotedPrice)?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Can you post a QVW?&amp;nbsp; You can reduce the data and scramble the names.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Preparing-examples-for-Upload-Reduction-and-Data-Scrambling/ta-p/1494262" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Preparing-examples-for-Upload-Reduction-and-Data-Scrambling/ta-p/1494262&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;-Rob&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 15:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513717#M749440</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-28T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513839#M749441</link>
      <description>&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;I will look at the link for scrambling data and names and post a QVW&amp;nbsp; (It is very large though)&lt;/P&gt;&lt;P&gt;In essence what I am trying to achieve is a sort on the "Y" (expression)&amp;nbsp;for Managers and Sales People and then switch to sort Alpha (or numeric) on Period not just change&amp;nbsp;the dimension on which the sort occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without the AGGR the sum returns larger amount because of duplicates. (Probably need to revisit the data structure but as of now it is resolved)&lt;/P&gt;&lt;P&gt;If &amp;nbsp;'PEMgrPE' is not quoted the expression shows the red squiggly line indicating and error and the top of the expression builder says that there is "Error in&amp;nbsp; expression".&amp;nbsp;With the quotes it does not and at any rate, it works correctly&amp;nbsp;both ways, quoted and not quoted.&lt;/P&gt;&lt;P&gt;I hoped there is a way to switch the sort from Y to Alphanumeric.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513839#M749441</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2018-11-28T18:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513877#M749442</link>
      <description>&lt;P&gt;You can use the File, Reduce feature to remove most of your data to make your example smaller.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The red squiggle is a bug in the syntax checker.&amp;nbsp; The Group name should not be quoted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 19:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513877#M749442</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-11-28T19:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513942#M749443</link>
      <description>&lt;P&gt;Ok Rob.&lt;/P&gt;&lt;P&gt;Have it ready to attach but how do I attach a QVW?&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 23:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513942#M749443</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2018-11-28T23:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sort in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513945#M749444</link>
      <description>&lt;P&gt;I'll be **bleep**...&lt;/P&gt;&lt;P&gt;It does work Rob.&lt;/P&gt;&lt;P&gt;I removed the Quotes from the Group name and it does work.&lt;/P&gt;&lt;P&gt;As always, you know something more than we do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 23:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sort-in-chart/m-p/1513945#M749444</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2018-11-28T23:46:15Z</dc:date>
    </item>
  </channel>
</rss>

