<?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: Graphique in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878401#M104133</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&amp;nbsp;I completely flaked on that and forgot that Col Rank chooses the lowest as number 1!&amp;nbsp; With a small edit, it works as it should.&amp;nbsp; Thanks for catching that.&amp;nbsp; Being hasty leads to mistakes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column(
		"Transform[POURCENTAGE]",
		Formula( Col Rank( 0 - :POURCENTAGE, :QUARTER ) )
	),
	Size( 731, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :QUARTER ),
		X(
			:ITEM,
			Position( 1 ),
			Order By( :POURCENTAGE, Descending, Order Statistic( "Mean" ) )
		),
		Y( :POURCENTAGE ),
		Color( :ITEM )
	),
	Elements(
		Bar(
			X( 1 ),
			X( 2 ),
			Y,
			Legend( 14 ),
			Summary Statistic( "Sum" ),
			Label( "Label by Value" )
		)
	),
	Local Data Filter(
		Add Filter(
			columns( :"Transform[POURCENTAGE]"n ),
			Where( :"Transform[POURCENTAGE]"n &amp;lt;= 3 )
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_0-1749135744797.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76570iC33E60392066B697/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_0-1749135744797.png" alt="mmarchandFSLR_0-1749135744797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 15:10:53 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2025-06-05T15:10:53Z</dc:date>
    <item>
      <title>Graphique</title>
      <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878345#M104121</link>
      <description>&lt;P&gt;Bonjour à tous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dans un graphique j'aimerais pouvoir afficher que les 3 premiers éléments selon un critère de pourcentage -&amp;gt; afficher que les 3 items avec le pourcentage le plus élevé par quarter :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hcarr01_0-1749131247294.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76562iEE496F719C4C652E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hcarr01_0-1749131247294.png" alt="hcarr01_0-1749131247294.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vous trouverez la base de données en pièce-jointe.&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, 05 Jun 2025 13:48:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphique/m-p/878345#M104121</guid>
      <dc:creator>hcarr01</dc:creator>
      <dc:date>2025-06-05T13:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graphique</title>
      <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878381#M104126</link>
      <description>&lt;P&gt;Here is how I created this chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1749132623450.png" style="width: 835px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76565iF880E08116836C14/image-dimensions/835x758?v=v2" width="835" height="758" role="button" title="txnelson_0-1749132623450.png" alt="txnelson_0-1749132623450.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I sorted the data table by Quarter and descending Pourcentage.&lt;/P&gt;
&lt;P&gt;I then created a new column called Rank and set the formula to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum( 1, :QUARTER )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then it was a simple matter to create the chart as specified, and to add a Local Data Filter and select the filter to use only the rank values of 1-3&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1749132866097.png" style="width: 861px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76566i460AB71A229E96D2/image-dimensions/861x509?v=v2" width="861" height="509" role="button" title="txnelson_1-1749132866097.png" alt="txnelson_1-1749132866097.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, 05 Jun 2025 14:14:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphique/m-p/878381#M104126</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-05T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Graphique</title>
      <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878383#M104128</link>
      <description>&lt;P&gt;Very similar to Jim's solution but with a temporary Transform Column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column(
		"Transform[POURCENTAGE]",
		Formula( Col Rank( :POURCENTAGE, :QUARTER ) )
	),
	Size( 731, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :QUARTER ),
		X(
			:ITEM,
			Position( 1 ),
			Order By( :POURCENTAGE, Descending, Order Statistic( "Mean" ) )
		),
		Y( :POURCENTAGE ),
		Color( :ITEM )
	),
	Elements(
		Bar(
			X( 1 ),
			X( 2 ),
			Y,
			Legend( 14 ),
			Summary Statistic( "Sum" ),
			Label( "Label by Value" )
		)
	),
	Local Data Filter(
		Add Filter(
			columns( :"Transform[POURCENTAGE]"n ),
			Where( :"Transform[POURCENTAGE]"n &amp;lt;= 3 )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2025 14:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphique/m-p/878383#M104128</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-06-05T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Graphique</title>
      <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878399#M104132</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/58003"&gt;@mmarchandFSLR&lt;/a&gt;&amp;nbsp;your code produces a graph that is totally different from mine.&lt;/P&gt;
&lt;P&gt;My Chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1749134894459.png" style="width: 686px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76567i6F269FF6539A6997/image-dimensions/686x528?v=v2" width="686" height="528" role="button" title="txnelson_0-1749134894459.png" alt="txnelson_0-1749134894459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and the data table with the Rank column showing the rankings based upon Pourcentage&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1749135102881.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76568iEBA10A0DD79D0976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1749135102881.png" alt="txnelson_1-1749135102881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Your chart run on the same data but very different results&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1749135176878.png" style="width: 717px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76569i7F20A5DAAD16B23A/image-dimensions/717x440?v=v2" width="717" height="440" role="button" title="txnelson_2-1749135176878.png" alt="txnelson_2-1749135176878.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I believe the issue is that your rankings are ranking in ascending order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 14:58:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphique/m-p/878399#M104132</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-05T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Graphique</title>
      <link>https://community.jmp.com/t5/Discussions/Graphique/m-p/878401#M104133</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&amp;nbsp;I completely flaked on that and forgot that Col Rank chooses the lowest as number 1!&amp;nbsp; With a small edit, it works as it should.&amp;nbsp; Thanks for catching that.&amp;nbsp; Being hasty leads to mistakes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column(
		"Transform[POURCENTAGE]",
		Formula( Col Rank( 0 - :POURCENTAGE, :QUARTER ) )
	),
	Size( 731, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :QUARTER ),
		X(
			:ITEM,
			Position( 1 ),
			Order By( :POURCENTAGE, Descending, Order Statistic( "Mean" ) )
		),
		Y( :POURCENTAGE ),
		Color( :ITEM )
	),
	Elements(
		Bar(
			X( 1 ),
			X( 2 ),
			Y,
			Legend( 14 ),
			Summary Statistic( "Sum" ),
			Label( "Label by Value" )
		)
	),
	Local Data Filter(
		Add Filter(
			columns( :"Transform[POURCENTAGE]"n ),
			Where( :"Transform[POURCENTAGE]"n &amp;lt;= 3 )
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_0-1749135744797.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76570iC33E60392066B697/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_0-1749135744797.png" alt="mmarchandFSLR_0-1749135744797.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 15:10:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graphique/m-p/878401#M104133</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-06-05T15:10:53Z</dc:date>
    </item>
  </channel>
</rss>

