<?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 Sorting Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-Bar-Chart/m-p/1676723#M593370</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've created a bar chart with clustered columns but can't quite find the way to sort them correctly. I'm currently showing data for the turnover of the last 5 years per country. I sort on the turnover of this year. However I have the possibility to filter on Year, Month, Day, Country, Customer group, ... and so on and this seems to work but the sorting won't follow. I've tried several options by trying to calculate the maximum item selected in year and so on, but I can't get to the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end I would want this bar chart always to sort descending.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following set up:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CountryName&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression(s) - I have 4 in total in which the 0 below changes from 0 to -4 the get 5 clustered columns. I'm currently also using the expression below to sort (which I know is wrong)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(Match(GetFieldSelections(_verSelection), 'Turnover'),&lt;BR /&gt;sum(if (InYear (DocDate, today(), &lt;STRONG&gt;0&lt;/STRONG&gt;), Turnover))&lt;BR /&gt;,&lt;BR /&gt;sum(if (InYear (DocDate, today(), &lt;STRONG&gt;0&lt;/STRONG&gt;), Turnover - Cost))&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:15:11 GMT</pubDate>
    <dc:creator>Arnec</dc:creator>
    <dc:date>2024-11-16T01:15:11Z</dc:date>
    <item>
      <title>Sorting Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Bar-Chart/m-p/1676723#M593370</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've created a bar chart with clustered columns but can't quite find the way to sort them correctly. I'm currently showing data for the turnover of the last 5 years per country. I sort on the turnover of this year. However I have the possibility to filter on Year, Month, Day, Country, Customer group, ... and so on and this seems to work but the sorting won't follow. I've tried several options by trying to calculate the maximum item selected in year and so on, but I can't get to the result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end I would want this bar chart always to sort descending.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following set up:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CountryName&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression(s) - I have 4 in total in which the 0 below changes from 0 to -4 the get 5 clustered columns. I'm currently also using the expression below to sort (which I know is wrong)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=if(Match(GetFieldSelections(_verSelection), 'Turnover'),&lt;BR /&gt;sum(if (InYear (DocDate, today(), &lt;STRONG&gt;0&lt;/STRONG&gt;), Turnover))&lt;BR /&gt;,&lt;BR /&gt;sum(if (InYear (DocDate, today(), &lt;STRONG&gt;0&lt;/STRONG&gt;), Turnover - Cost))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Bar-Chart/m-p/1676723#M593370</guid>
      <dc:creator>Arnec</dc:creator>
      <dc:date>2024-11-16T01:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-Bar-Chart/m-p/1687436#M593371</link>
      <description>&lt;P&gt;For these types of posts, it is most helpful if you can attach an example QVW file, so folks can look into the data model, expressions and chart properties to try to sort out why things are not working properly, bit difficult to help otherwise.&amp;nbsp; The best alternative I have would be the Help to see if you can find something specific there to the sorting in that chart type, or you can check the Design Blog area for ideas/examples to see if you can find something to help there:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Help link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Bar_Chart.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry I do not have anything better.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 18:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-Bar-Chart/m-p/1687436#M593371</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-24T18:55:14Z</dc:date>
    </item>
  </channel>
</rss>

