<?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: Automating Local Filters/ Data Filters in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695578#M88062</link>
    <description>&lt;P&gt;Sorry for the confusion!&lt;/P&gt;&lt;P&gt;Yes I want the same condition for each one. I would like to have 1 filter that changes them all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the data filter and I can use this correctly when there is local filters. If I remove the local filters the data filter does not change the analysis and instead just high lights the points.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 08:43:51 GMT</pubDate>
    <dc:creator>MedianRooster10</dc:creator>
    <dc:date>2023-11-08T08:43:51Z</dc:date>
    <item>
      <title>Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695258#M88034</link>
      <description>&lt;P&gt;I have a linear regression model for 4 different temperatures. I have put a local data filter on each one which allows me to specify the segment of data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code for this calls each value in my source table 2 column as shown below. I want this to be automated so there may be more or less temperatures and I don't want to edit the code each time. There probably is a way through JSL script which I try to avoid writing myself and instead use workflow. I have added a data filter in which works exactly as wanted as long as the local filters are there as well. If I remove the local filters the data filter stops working in the same way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I change the Data filter to make the local filters redundant?&lt;/P&gt;
&lt;P&gt;If not possible how would I go about coding the local filters to be automatic?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table("Sorted") &amp;lt;&amp;lt; Data Filter(
	Location({890, 387}),
	Mode(Include(1)),
	Add Filter(columns(:Segment), Where(:Segment == -100), Display(:Segment, N Items(8)))
);
 
Data Table("Sorted") &amp;lt;&amp;lt; Fit Model(
	SendToByGroup(Bygroup Default),
	Y(:VCE),
	By(:Source Table 2),
	Effects(:ICE),
	Personality("Standard Least Squares"), 
//Emphasis( "Effect Leverage" ),
	Run(
		:VCE &amp;lt;&amp;lt; {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(0), Lack of Fit(0),
		Scaled Estimates(0), Plot Actual by Predicted(0), Plot Residual by Predicted(0),
		Plot Studentized Residuals(0), Plot Effect Leverage(0), Plot Residual by Normal Quantiles(0),
		Box Cox Y Transformation(0)}
	),
	SendToByGroup(
		{:Source Table 2 == "25C"},
		Local Data Filter(Add Filter(columns(:Segment), Display(:Segment, N Items(8))))
	),
	SendToByGroup(
		{:Source Table 2 == "150C"},
		Local Data Filter(Add Filter(columns(:Segment), Display(:Segment, N Items(8))))
	),
	SendToByGroup(
		{:Source Table 2 == "125C"},
		Local Data Filter(Add Filter(columns(:Segment), Display(:Segment, N Items(8))))
	),
	SendToByGroup(
		{:Source Table 2 == "100C"},
		Local Data Filter(Add Filter(columns(:Segment), Display(:Segment, N Items(8))))
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2023 16:46:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695258#M88034</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-11-07T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695286#M88035</link>
      <description>&lt;P&gt;I'm not exactly sure what you are trying to do here? Are you possibly just missing Show(1) from your data filter to hide excluded values?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1699377891323.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58416i354A8B98EDAE601F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1699377891323.png" alt="jthi_0-1699377891323.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 17:25:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695286#M88035</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-07T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695295#M88036</link>
      <description>&lt;P&gt;Are you using different where clauses in the multiple filters, or are you selecting the same range in each one?&amp;nbsp; I ask because it might be easier to have just one filter instead of multiple if you want the same conditions for each sub-group.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 17:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695295#M88036</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-11-07T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695578#M88062</link>
      <description>&lt;P&gt;Sorry for the confusion!&lt;/P&gt;&lt;P&gt;Yes I want the same condition for each one. I would like to have 1 filter that changes them all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the data filter and I can use this correctly when there is local filters. If I remove the local filters the data filter does not change the analysis and instead just high lights the points.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 08:43:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695578#M88062</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-11-08T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695581#M88063</link>
      <description>&lt;P&gt;Sorry I was not clear in my explanation. I now have show and include selected and this does work better. The data filter adjusts the analysis as long as there is a local filter.&lt;/P&gt;&lt;P&gt;I either want to not need the local filters (but I think this is harder for you to help with). Or I want the local filters to not specifically call the source table values (as this changes each time).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 08:52:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695581#M88063</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-11-08T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695601#M88067</link>
      <description>&lt;P&gt;I suspect the issue is with the Automatic ReCalc option on the JMP platform(s) you are using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the red triangle and select&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Redo=&amp;gt;Automatic ReCalc&lt;/P&gt;
&lt;P&gt;That should permit the changing of all of the display with a change in the Data Filter.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695601#M88067</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-11-08T09:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Automating Local Filters/ Data Filters</title>
      <link>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695670#M88080</link>
      <description>&lt;P&gt;To have one filter across a by-group, I would suggest something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Big Class.jmp");
New Window("report",
	Data Filter Context Box(
		HListBox(
			dt &amp;lt;&amp;lt; Data Filter(Local, Columns(:age)),
			VListBox(
				dt &amp;lt;&amp;lt; Bivariate(X(:height),Y(:weight),By(:sex))
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In JMP18 it will be easier to share a single filter across a by-group interactively rather than through scripting, but this script should work back several releases and will work in the future as well.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 13:51:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automating-Local-Filters-Data-Filters/m-p/695670#M88080</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-11-08T13:51:53Z</dc:date>
    </item>
  </channel>
</rss>

