<?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: &amp;quot;Order by count&amp;quot; do not work in a conditional data filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/414347#M66345</link>
    <description>&lt;P&gt;Dear sir, many thanks to you.&lt;BR /&gt;I had sent this question to &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 03:27:48 GMT</pubDate>
    <dc:creator>WeiDerLee</dc:creator>
    <dc:date>2021-09-01T03:27:48Z</dc:date>
    <item>
      <title>"Order by count" do not work in a conditional data filter</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/413850#M66328</link>
      <description>&lt;P&gt;Dear sirs:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use the "conditional" and "order by count" in the same data fitler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can work by manual select, but do not work in the JSL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "sort by count" don't work when "conditional" in the same data filter. (please refer following JSL code)&lt;BR /&gt;&lt;BR /&gt;Could any big boss can help? thanks.&amp;nbsp;&lt;BR /&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Order by count can't work in this JSL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\big class.jmp");
dt &amp;lt;&amp;lt; Data Filter(
	Location( {912, 237} ),
	Conditional,
	Add Filter(
		columns( :sex, :age ),
		Where( :sex == "F" ),
		Where( :age == 12 ),
		Display( :age, N Items( 6 ) ),
		Order By Count( :age ) //this should let :age order by count in the data filter, but don't
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Order by count can work in this JSL("conditional" change to comment block):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\big class.jmp");
dt &amp;lt;&amp;lt; Data Filter(
	Location( {912, 237} ),
	//Conditional,   //hi, i change to comment block
	Add Filter(
		columns( :sex, :age ),
		Where( :sex == "F" ),
		Where( :age == 12 ),
		Display( :age, N Items( 6 ) ),
		Order By Count(  :age )   //:age order by count can work when "conditional" change to comment block
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:55:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/413850#M66328</guid>
      <dc:creator>WeiDerLee</dc:creator>
      <dc:date>2023-06-09T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: "Order by count" do not work in a conditional data filter</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/413891#M66330</link>
      <description>&lt;P&gt;I do believe you have uncovered a bug.&amp;nbsp; Here is what I have found, using JMP 16.1, Windows 10:&lt;/P&gt;
&lt;P&gt;If one creates the filter, without any elements selected (Where () ), the Order element creates an ordered list&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\big class.jmp");
dt &amp;lt;&amp;lt; Data Filter(
	Location( {912, 237} ),
	Conditional,
	Add Filter(
		columns( :sex, :age ),
		Display( :age, N Items( 6 ) ),
		Order By Count( :age ) //this should let :age order by count in the data filter, but don't
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1630394168784.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35411iDE5AE877AE167046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1630394168784.png" alt="txnelson_0-1630394168784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And, if a selection is made to the Sex variable, the Conditional results are ordered&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1630394311846.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35412i8A077EC8CDE059F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1630394311846.png" alt="txnelson_1-1630394311846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, if one unselects the Sex choice, the ordering is no longer honored&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1630394424032.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35413i8E86356968E2AEF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1630394424032.png" alt="txnelson_2-1630394424032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I suggest that you pass this on to the Support folks at JMP&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;support@jmp.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 07:21:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/413891#M66330</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-31T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: "Order by count" do not work in a conditional data filter</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/414347#M66345</link>
      <description>&lt;P&gt;Dear sir, many thanks to you.&lt;BR /&gt;I had sent this question to &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 03:27:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Order-by-count-quot-do-not-work-in-a-conditional-data/m-p/414347#M66345</guid>
      <dc:creator>WeiDerLee</dc:creator>
      <dc:date>2021-09-01T03:27:48Z</dc:date>
    </item>
  </channel>
</rss>

