<?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: Ordering categories for a bar chart of sums of values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901620#M106081</link>
    <description>&lt;P&gt;Thank you for your fast and thorough answers, both. It worked like a charm.&amp;nbsp;Much appreciated!&lt;/P&gt;
&lt;P&gt;And thank you for your kind welcome to the JMP community.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 07:46:13 GMT</pubDate>
    <dc:creator>ANVAR</dc:creator>
    <dc:date>2025-09-18T07:46:13Z</dc:date>
    <item>
      <title>Ordering categories for a bar chart of sums of values</title>
      <link>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901589#M106078</link>
      <description>&lt;P&gt;Dear JMP help community,&lt;/P&gt;
&lt;P&gt;I have a dataset consisting of expenses grouped within many different categories (maintenance, salaries etc.). Within each category there are many rows of expenses, e.g. in maintenance I have rows for painting expenses, carpentry, electrical services etc.&lt;/P&gt;
&lt;P&gt;I can create a treemap to show the relative size of each expense group, but would prefer an bar chart with one bar for each category, &lt;EM&gt;ordered by total expense within each category&lt;/EM&gt;. This last part I can't seem to get to work. Ordering bars by the expense value seems to order by number of expense posts within each category, rather than putting the bar with the highest sum of expenses first.&lt;/P&gt;
&lt;P&gt;Has anyone solved this? Thanks in advance for your input!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I'm on JMP 18.2.0)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 07:00:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901589#M106078</guid>
      <dc:creator>ANVAR</dc:creator>
      <dc:date>2025-09-18T07:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering categories for a bar chart of sums of values</title>
      <link>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901615#M106079</link>
      <description>&lt;P&gt;When you have graph like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1758179288663.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82787i2910F386E49EDAAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1758179288663.png" alt="jthi_0-1758179288663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can order X-axis by right clicking on it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1758179311488.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82788i31829F927E062573/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1758179311488.png" alt="jthi_1-1758179311488.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select Other, pick your Y-axis column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1758179329479.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82789i042F8C4CA732E156/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1758179329479.png" alt="jthi_2-1758179329479.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Right click again and change ordering statistic&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1758179352053.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82790iF95E859A68E678E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1758179352053.png" alt="jthi_3-1758179352053.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And finally change Order By (if necessary)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1758179373052.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82791i0C8F77329FDE3811/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1758179373052.png" alt="jthi_4-1758179373052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1758179380641.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82792i1F8686DFC52C6A06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1758179380641.png" alt="jthi_5-1758179380641.png" /&gt;&lt;/span&gt;&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>Thu, 18 Sep 2025 07:09:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901615#M106079</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-09-18T07:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering categories for a bar chart of sums of values</title>
      <link>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901616#M106080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/59405"&gt;@ANVAR&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there might be an easy fix for your situation :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a formula column of total sum /expense by category :&amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(:expense, :category)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Then create your graph, and on the x-axis for category, right-click and select "Order by", "Other" and select your new formula column sum by category. This way, it will order the categories by the total expense for each category, in ascending order (but you can change it, right-clicking, order by, and change the ordering with the same column in "descending").&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can provide a toy dataset if you want to have detailed explanations about the actions to perform.&lt;BR /&gt;Hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 07:15:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901616#M106080</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-09-18T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ordering categories for a bar chart of sums of values</title>
      <link>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901620#M106081</link>
      <description>&lt;P&gt;Thank you for your fast and thorough answers, both. It worked like a charm.&amp;nbsp;Much appreciated!&lt;/P&gt;
&lt;P&gt;And thank you for your kind welcome to the JMP community.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 07:46:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ordering-categories-for-a-bar-chart-of-sums-of-values/m-p/901620#M106081</guid>
      <dc:creator>ANVAR</dc:creator>
      <dc:date>2025-09-18T07:46:13Z</dc:date>
    </item>
  </channel>
</rss>

