<?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: How to organize data table based on total count (categorical data)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540673#M76127</link>
    <description>&lt;P&gt;Hi Jim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an additional question if you don't mind. I have another column that has the total number of equipment failure by pump no., is there a way that I can find out the failure rate for each pump based on each failure type? Tried using fit Y by X to obtain the contingency however it didn't come up the way I wanted to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pump No.&lt;/TD&gt;&lt;TD&gt;Total No of Failure&lt;/TD&gt;&lt;TD&gt;Seal Leakage&lt;/TD&gt;&lt;TD&gt;Bearing Issues&lt;/TD&gt;&lt;TD&gt;Impeller Wear&lt;/TD&gt;&lt;TD&gt;Cavitation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aiming for something like this (taken from another discussion)&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConditionalAvg2_0-1662432211516.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45190i7BBC0CF047DFCE98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConditionalAvg2_0-1662432211516.png" alt="ConditionalAvg2_0-1662432211516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 02:44:48 GMT</pubDate>
    <dc:creator>ConditionalAvg2</dc:creator>
    <dc:date>2022-09-06T02:44:48Z</dc:date>
    <item>
      <title>How to organize data table based on total count (categorical data)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540451#M76115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below are a sample of raw data that I have which is labelled by 1 if the root cause is applicable to the respective pump failure. However, how can I effectively sort these data based on the total count in JMP data table as shown in the 2nd table so that I am able to plot the final graph attach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In reality, I have more than 1000 rows and 30 columns. Therefore, I'm trying to find the most effective way to organize this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConditionalAvg2_0-1662342442288.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45174i4560066BFC62B49D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConditionalAvg2_0-1662342442288.png" alt="ConditionalAvg2_0-1662342442288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540451#M76115</guid>
      <dc:creator>ConditionalAvg2</dc:creator>
      <dc:date>2023-06-10T23:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to organize data table based on total count (categorical data)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540470#M76116</link>
      <description>&lt;P&gt;All you have to do is to Stack the table&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tables=&amp;gt;Stack&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1662352551538.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45175iAD709DA3E91A2736/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1662352551538.png" alt="txnelson_0-1662352551538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The resulting table looks like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1662352599214.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45176i33BC61A4A0D95A7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1662352599214.png" alt="txnelson_1-1662352599214.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then open Graph Builder and you can produce the following graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1662353083145.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45179i8DA8C92D210D870F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1662353083145.png" alt="txnelson_0-1662353083145.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the table with the Control Panel open so you can see what interactive steps were used to produce the graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1662353141984.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45180i60B5F2AA991D4B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1662353141984.png" alt="txnelson_1-1662353141984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also set the Value Ordering column property for the Failure Type column to get the order to be the same as what you showed in the example graph.&amp;nbsp; I also clicked on the Legend items to change the colors to match your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 04:47:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540470#M76116</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-05T04:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to organize data table based on total count (categorical data)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540483#M76117</link>
      <description>That worked exactly like how I wanted it, thank you! :)&lt;/img&gt;</description>
      <pubDate>Mon, 05 Sep 2022 05:23:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540483#M76117</guid>
      <dc:creator>ConditionalAvg2</dc:creator>
      <dc:date>2022-09-05T05:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to organize data table based on total count (categorical data)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540673#M76127</link>
      <description>&lt;P&gt;Hi Jim,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an additional question if you don't mind. I have another column that has the total number of equipment failure by pump no., is there a way that I can find out the failure rate for each pump based on each failure type? Tried using fit Y by X to obtain the contingency however it didn't come up the way I wanted to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pump No.&lt;/TD&gt;&lt;TD&gt;Total No of Failure&lt;/TD&gt;&lt;TD&gt;Seal Leakage&lt;/TD&gt;&lt;TD&gt;Bearing Issues&lt;/TD&gt;&lt;TD&gt;Impeller Wear&lt;/TD&gt;&lt;TD&gt;Cavitation&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aiming for something like this (taken from another discussion)&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConditionalAvg2_0-1662432211516.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45190i7BBC0CF047DFCE98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConditionalAvg2_0-1662432211516.png" alt="ConditionalAvg2_0-1662432211516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 02:44:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540673#M76127</guid>
      <dc:creator>ConditionalAvg2</dc:creator>
      <dc:date>2022-09-06T02:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to organize data table based on total count (categorical data)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540679#M76128</link>
      <description>&lt;P&gt;Is this what you are looking for&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1662436317888.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45191i96059B6066BCE273/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1662436317888.png" alt="txnelson_0-1662436317888.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If so, then stack your data table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1662436394754.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45192i0ED81280434869D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1662436394754.png" alt="txnelson_1-1662436394754.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And run the Fit y by x&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1662436450454.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45193iAB6DF398081DD447/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1662436450454.png" alt="txnelson_2-1662436450454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 03:54:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-organize-data-table-based-on-total-count-categorical-data/m-p/540679#M76128</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-06T03:54:17Z</dc:date>
    </item>
  </channel>
</rss>

