<?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: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/823434#M100288</link>
    <description>&lt;P&gt;Thank you both&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;for your creative solutions, I will adapt the script to my real data and execute it when needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;I will push for a JMP update !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great week !&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 09:01:46 GMT</pubDate>
    <dc:creator>CorentinL</dc:creator>
    <dc:date>2024-12-16T09:01:46Z</dc:date>
    <item>
      <title>Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822579#M100226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm looking for help in the Graphic Builder. I am using JMP 16.2.0.&lt;/P&gt;&lt;P&gt;I will use a table with two columns (Recipe, Ingredient) as an example. A recipe is composed of multiple ingredient, and an ingredient can be use in multiple recipes. The table is provided in Attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Graph Builder, I put Recipe in Group X, Ingredient in X and choose a Pie Plot to see what ingredient is used in which recipe.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CorentinL_0-1734091108408.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71158i3AA602A72D8A6BB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CorentinL_0-1734091108408.png" alt="CorentinL_0-1734091108408.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to do is to select an ingredient and it will keep the pie plots of all the recipes that use the ingredient. The pie plots should show all their ingredients .&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;For example, I want to see all the recipes that use Milk. If I add a local data filter on the recipe, the pie plot won't display all the ingredients for the Bechamel and Pancake.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CorentinL_1-1734091980301.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71160i05CA1C1D2BBDA6C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CorentinL_1-1734091980301.png" alt="CorentinL_1-1734091980301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to have as an output is something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CorentinL_2-1734092078306.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71162iB9A49F2790465F8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CorentinL_2-1734092078306.png" alt="CorentinL_2-1734092078306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way to do that, without writing some JSL ? We can modify the table or work with the Graph Builder.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 12:24:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822579#M100226</guid>
      <dc:creator>CorentinL</dc:creator>
      <dc:date>2024-12-13T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822594#M100227</link>
      <description>&lt;P&gt;I'm not sure if you can do this in JMP16 (I'm using JMP18), but you can create multiple response column of your Ingredients&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1734093419505.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71166iDD89E767A60E54FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1734093419505.png" alt="jthi_1-1734093419505.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_2-1734093437248.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71167i86280F93D165C48F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1734093437248.png" alt="jthi_2-1734093437248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Table attached with table script&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 12:37:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822594#M100227</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-12-13T12:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822611#M100229</link>
      <description>&lt;P&gt;Thank you for the reply, this is a great solution indeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, it does not work in JMP 16.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CorentinL_0-1734100355825.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71173iB92D09910494874A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CorentinL_0-1734100355825.png" alt="CorentinL_0-1734100355825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess we'll need to update to a more recent version !&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 14:33:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822611#M100229</guid>
      <dc:creator>CorentinL</dc:creator>
      <dc:date>2024-12-13T14:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822629#M100231</link>
      <description>&lt;P&gt;Scripting is also an option but you said you wish to avoid it, so here is maybe an option which might work in JMP16 (it can be a bit clunky to use due to utilizing selection row state). If you can use Data filter instead of local data filter, you can do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create formula column like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1734102350448.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71178i091353FA8937A427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1734102350448.png" alt="jthi_4-1734102350448.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Sum(Selected(), :Recipe) &amp;gt;= 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Create Data filter (NOT LOCAL DATA FILTER) with ingredient&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="jthi_1-1734102076749.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71175iDC19D777F2BB303F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1734102076749.png" alt="jthi_1-1734102076749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Create your graph WITH local data filter using your newly created formula column and set the value to 1&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1734102108838.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71176i7CAE5A6AFA53D4AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1734102108838.png" alt="jthi_2-1734102108838.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can then collapse the local data filter and organize the windows side by side&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1734102484084.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71179iAE7E85C536407096/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1734102484084.png" alt="jthi_5-1734102484084.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;One a bit annoying thing here is that there will be a selection and it will mess up if something is selected from the table / outside of data filter.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 15:09:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822629#M100231</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-12-13T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822633#M100232</link>
      <description>&lt;P&gt;If you modify the data table with new rows and a new column, I can get it to work in JMP 16.&amp;nbsp; You need to create a new row for each combination of ingredients for each ingredient in the recipe.&amp;nbsp; So for Bechamel which has Milk, Flour and Butter&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1734103605644.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71180iE6CB1ADA3A0D23DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1734103605644.png" alt="txnelson_0-1734103605644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it has to be expanded to&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1734103670709.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71181i71397FB83A623850/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1734103670709.png" alt="txnelson_1-1734103670709.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="txnelson_2-1734103844093.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71182i4BCA24298A495D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1734103844093.png" alt="txnelson_2-1734103844093.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And here is a script that will generate the expanded data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

// Start the new table
dtOut = New Table( "Expanded",
	New Column( "Recipe", Character ),
	New Column( "Ingredient", Character ),
	New Column( "Ingredients", Character )
);

// Find the different Recipies
summarize( dt, Recipies = By(:Recipe));

// Loop through the recipies 
For Each( {rec}, Recipies,
	// Find the ingredients for the current recipe
	dt &amp;lt;&amp;lt; select where(:Recipe == rec );
	dtTemp = dt &amp;lt;&amp;lt; subset( selected columns(0), selected rows(1));
	summarize( dtTemp, ingre=by(:ingredient));
	
	// Loop across each ingredient and add the rows to the data table
	For Each( {item}, ingre,
		dtTemp &amp;lt;&amp;lt; New Column("Ingredients", character, set each value(item));
		dtOut &amp;lt;&amp;lt; concatenate( dtTemp, Append to First Table(1) );
		dtTemp &amp;lt;&amp;lt; delete columns(:Ingredients);
	);
	close( dtTemp, nosave );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2024 16:22:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822633#M100232</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-12-13T16:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822655#M100235</link>
      <description>&lt;P&gt;GraphBuilder + Multiple Response : VERY (!) useful!&lt;BR /&gt;it got available with JMP17:&amp;nbsp;&lt;LI-MESSAGE title="New in JMP 17 and JMP Pro 17 - Some Highlights ORIGINAL ENGLISH VERSION" uid="816271" url="https://community.jmp.com/t5/Learn-JMP-Events/New-in-JMP-17-and-JMP-Pro-17-Some-Highlights-ORIGINAL-ENGLISH/m-p/816271#U816271" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-occasion-thread lia-fa-icon lia-fa-occasion lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the upgrade is free of charge. Maybe take 2 steps and get all the great features of JMP18?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 17:31:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/822655#M100235</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-12-13T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, Pie plot : How to keep all the elements of a group when filtering on groups that have a specific element ?</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/823434#M100288</link>
      <description>&lt;P&gt;Thank you both&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;for your creative solutions, I will adapt the script to my real data and execute it when needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;I will push for a JMP update !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great week !&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 09:01:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-Pie-plot-How-to-keep-all-the-elements-of-a-group/m-p/823434#M100288</guid>
      <dc:creator>CorentinL</dc:creator>
      <dc:date>2024-12-16T09:01:46Z</dc:date>
    </item>
  </channel>
</rss>

