<?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 Data filter: how to specify the limits in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/642751#M83942</link>
    <description>&lt;P&gt;In a Data Filter, a user is limited by which values can be entered as limits.&lt;BR /&gt;If the keyed in limit is outside of the range of the available data points, the value is automatically replaced by min or max.&lt;BR /&gt;The user can change the JSL code - but when the graph opens, the values are again set back to min and max.&lt;BR /&gt;&lt;BR /&gt;a) Is there a hidden trick how to key in any number ? shift enter did not work&lt;BR /&gt;b) Is there a trick how to generate a dashboard with user defined filter specs - which stay as they are?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-06-15_09-44-40.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53878iB7F9919D7C4895CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-06-15_09-44-40.gif" alt="2023-06-15_09-44-40.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 16:06:54 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-16T16:06:54Z</dc:date>
    <item>
      <title>Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/642751#M83942</link>
      <description>&lt;P&gt;In a Data Filter, a user is limited by which values can be entered as limits.&lt;BR /&gt;If the keyed in limit is outside of the range of the available data points, the value is automatically replaced by min or max.&lt;BR /&gt;The user can change the JSL code - but when the graph opens, the values are again set back to min and max.&lt;BR /&gt;&lt;BR /&gt;a) Is there a hidden trick how to key in any number ? shift enter did not work&lt;BR /&gt;b) Is there a trick how to generate a dashboard with user defined filter specs - which stay as they are?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-06-15_09-44-40.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53878iB7F9919D7C4895CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-06-15_09-44-40.gif" alt="2023-06-15_09-44-40.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:06:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/642751#M83942</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-16T16:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643498#M84013</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;someone on my team in Technical Support should be providing their assessment on question a) courtesy of your email to &lt;A href="mailto:support@jmp.com," target="_blank" rel="noopener"&gt;support@jmp.com&lt;/A&gt;&amp;nbsp;(dated 06/16/23) in relation to question a), but for question&amp;nbsp;&lt;SPAN&gt;b) &lt;EM&gt;"Is there a trick how to generate a dashboard with user defined filter specs - which stay as they are?"&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the specs persist for me after defining them.&amp;nbsp; Can you provide more information with an example to describe what you're seeing?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 18:28:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643498#M84013</guid>
      <dc:creator>PatrickGiuliano</dc:creator>
      <dc:date>2023-06-16T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643556#M84017</link>
      <description>&lt;P&gt;To generate a dashboard with a filter beyond the current data range, I generated a GraphBuilder plot with lower spec = 1 via&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter( columns( :height ), Where( :height &amp;gt;= 1 ) )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the result didn't look promising:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1686951329831.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53928i8E74C905F04FC2C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1686951329831.png" alt="hogi_0-1686951329831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I added it to a Dashboard&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1686951433497.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53929i1A2AF4385320A0B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1686951433497.png" alt="hogi_1-1686951433497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and checked the code - and indeed - Jmp did adjust my spec:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1686951533349.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53931i0885E3BE76D8D4C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1686951533349.png" alt="hogi_2-1686951533349.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I set the limit back to 1 and used the code to generate a new dashboard, checked the code again and it was again 51.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 21:40:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643556#M84017</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-16T21:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643562#M84019</link>
      <description>&lt;P&gt;Then I added a fake row with height =1, which allowed me to define a data filter with lower spec =1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1686952006880.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53933iE3882651B2BC5E85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1686952006880.png" alt="hogi_0-1686952006880.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but as soon as I deleted the row, the data filter was changed again to 51&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A data filter with specs outside of the current data range seems to be a quite fragile object.&lt;BR /&gt;Up to now, I generated Dashboards, saved them as table scripts, loaded new data during the weeks, optimized the dashboards, saved them again as a table script ...&lt;BR /&gt;Dangerous if data filters adjust dynamically to the current data ranges.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 21:51:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643562#M84019</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-16T21:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643573#M84023</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;- In JMP 17, if you do not modify one of the min/max values:&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="danschikore_0-1686953133511.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53934i323E38F199019537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danschikore_0-1686953133511.png" alt="danschikore_0-1686953133511.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They do not appear in the script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(
	Y( :weight ),
	X( :height ),
	Fit Line( {Line Color( {212, 73, 88} )} ),
	Local Data Filter( Add Filter( columns( :height ), Where( :height &amp;lt;= 65 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This helps when you have changing data and need one-sided limits.&amp;nbsp; However, if you modify both values and then drag them back to the extreme points, both values will appear in the script.&amp;nbsp; I would suggest that after you do this you might "Clear" the filter item, which will result in no Where() clause being generated.&amp;nbsp; Unfortunately the presence of the Where() clause is the indicator that tells us whether the filter conditions have been set, and that is why you see both values in the scenario that you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 22:16:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643573#M84023</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-06-16T22:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643615#M84034</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;for the expalantion.&lt;BR /&gt;&lt;BR /&gt;When I posted my question I didn't think about opening one side of the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea was:&lt;BR /&gt;if I want the data filter to automatically remove bad data points (&amp;lt;0) or some other well-defined data (missing data, indicator entry), such data has to be in the current data set - otherwise the data filter will automatically adapt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case I want to remove all rows with names "reference" and missing names:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Data Table( "Big Class" ):name &amp;lt;&amp;lt; Set Modeling Type( "Multiple Response" );
Graph Builder(
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :name ),
			Match None( Where( :name == "reference","" ) ),
			Display( :name, Find( Set Text( "" ) ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but if there is no such row in the current data set, the data filter will just be ignored - and the user will lose this part when he saves the current version of the graph or Dashboard.&amp;nbsp;Just run the code and save the resulting script.&lt;BR /&gt;Next time the user opens the Graph, rows with missing name and "reference" data will be displayed by default and the user has to exclude them manually.&lt;BR /&gt;&lt;BR /&gt;This issue will get more severe as soon as the option &lt;STRONG&gt;not&lt;/STRONG&gt;&amp;nbsp;gets available for more modeling types:&lt;BR /&gt;&lt;LI-MESSAGE title="data filters, new option: &amp;quot;not&amp;quot;" uid="570904" url="https://community.jmp.com/t5/JMP-Wish-List/data-filters-new-option-quot-not-quot/m-p/570904#U570904" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 07:47:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643615#M84034</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T07:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643630#M84041</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;- Thanks for the context - data cleaning is often performed outside the analysis, but one way you can build these conditions into the filter is to define a transform column with the conditions that you want to remove.&amp;nbsp; This gives you the ability to use an arbitrary Where() clause as a boolean condition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column(
		"Invalid Data",
		Nominal,
		Formula( :age &amp;gt; 18 | Starts With( :name, "Teacher" ) )
	),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Local Data Filter(
		Conditional,
		Add Filter(
			columns( :age, :Invalid Data ),
			Where( :Invalid Data == 0 ),
			Display( :age, N Items( 6 ) )
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This does assume that you don't have a table with all invalid data.&amp;nbsp; Another approach would be to use the LDF in combination with a global data filter to remove the invalid data from all of the reports.&amp;nbsp; The global row-states will combine with the filter conditions used in each platform.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 14:00:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643630#M84041</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-06-17T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643689#M84048</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;, what an elegant workaround :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only case it will fail: if there is a dataset with no &lt;EM&gt;valid&lt;/EM&gt; data, i.e. no data&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Where( :Invalid Data == 0 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but then anyways, nobody would dare to save the Dashboard :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jun 2023 07:34:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/643689#M84048</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-18T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter: how to specify the limits</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/783756#M96842</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="🙏 Column Property: Inclusive Values" uid="730865" url="https://community.jmp.com/t5/JMP-Wish-List/Column-Property-Inclusive-Values/m-p/730865#U730865" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; (aka&lt;STRONG&gt; Forced Values&lt;/STRONG&gt;) will fix this issue.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2024 13:58:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-how-to-specify-the-limits/m-p/783756#M96842</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-24T13:58:53Z</dc:date>
    </item>
  </channel>
</rss>

