<?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 Filtering tabulate data with a local data filter in interactive html in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Filtering-tabulate-data-with-a-local-data-filter-in-interactive/m-p/414445#M66356</link>
    <description>&lt;P&gt;How do I add a Tabulate table to interactive html which re-calculates when the local data filter is updated?&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;savePath = Pick Directory( "Where should the report be saved?" );

dt = Open( "$SAMPLE_dATA/Big Class.jmp" );

genders = {};
Insert Into( genders, "F" );
Insert Into( genders, "M" );

webreport = New Web Report();
dtTitle = dt &amp;lt;&amp;lt; get window title;
webreport &amp;lt;&amp;lt; Index( title( dtTitle ), style( "Smalllist" ) );
windows = {};

For( i = 1, i &amp;lt;= N Items( genders ), i++,
	lub1 = Lineup Box( N Col( 2 ) );
	lub1 &amp;lt;&amp;lt; append(
		dt &amp;lt;&amp;lt; data filter(
			local,
			add filter(
				columns( :column( dt, "age" ), :column( dt, "height" ), :column( dt, "weight" ) ),
				where( :name( "sex" ) == genders[i] )
			),
			Mode( Include( 0 ) )
		)
	);
	lub2 = Lineup Box( N Col( 2 ) );
	lub2 &amp;lt;&amp;lt; append(
		Tabulate(
			Title( "Summary" ),
			Show Control Panel( 0 ),
			Add Table(
				Column Table(
					Statistics( Min, Max, Median, Mean, Std Dev ),
					Analysis Columns( :column( dt, "height" ) )
				),
				Row Table( Grouping Columns( :age ) )
			)
		)
	);
	lub3 = Lineup Box( N Col( 2 ) );
	lub3 &amp;lt;&amp;lt; append(
		Graph Builder(
			Title( "age vs height" ),
			Size( 290, 270 ),
			Show control Panel( 0 ),
			Variables( X( :column( dt, "age" ) ), Y( :column( dt, "height" ) ) ),
			Elements( Points( X, Y ) ),
			show title( 0 ),
			show footer( 0 )
		)
	);
	lub3 &amp;lt;&amp;lt; append(
		Graph Builder(
			Title( "age vs weight" ),
			Size( 290, 270 ),
			Show control Panel( 0 ),
			Variables( X( :column( dt, "age" ) ), Y( :column( dt, "weight" ) ) ),
			Elements( Points( X, Y ) ),
			show title( 0 ),
			show footer( 0 )
		)
	);
	lub3 &amp;lt;&amp;lt; horizontalalignment( Left );
	lub2 &amp;lt;&amp;lt; append( lub3 );
	lub2 &amp;lt;&amp;lt; verticalalignment( top );
	lub1 &amp;lt;&amp;lt; append( lub2 );
	lub1 &amp;lt;&amp;lt; horizontalalignment( Left );
	dfcb = Data Filter Context Box( lub1 );
	win = New Window( genders[i], dfcb );
	//dfcb &amp;lt;&amp;lt; report;
	webreport &amp;lt;&amp;lt; add report( dfcb, Title( genders[i] ) );
	Insert Into( windows, win );
);

webreport &amp;lt;&amp;lt; save( savePath || "Report for Big Class" );

For( j = 1, j &amp;lt;= N Items( windows ), j++,
	windows[j] &amp;lt;&amp;lt; close window
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code generates interactive html. Each page has a local data filter (LDF), a Tabulate table (called "Summary"), and two graphs.&lt;/P&gt;&lt;P&gt;The graphs update their content when the LDF is changed. The Summary does not. This is identical to the behavior in JMP.&lt;/P&gt;&lt;P&gt;If I change the mode of the LDF to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Mode( Include( 1 ) )&lt;/PRE&gt;&lt;P&gt;Then the Summary updates with changes to the LDF in JMP, but the LDF is completely disabled in the interactive html.&lt;/P&gt;&lt;P&gt;Tabulate also has the option of including its own local data filter. This filter is also disabled in the interactive html.&lt;/P&gt;&lt;P&gt;I am using JMP 16.0.0.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 20:46:34 GMT</pubDate>
    <dc:creator>Enthusiastic</dc:creator>
    <dc:date>2023-06-10T20:46:34Z</dc:date>
    <item>
      <title>Filtering tabulate data with a local data filter in interactive html</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-tabulate-data-with-a-local-data-filter-in-interactive/m-p/414445#M66356</link>
      <description>&lt;P&gt;How do I add a Tabulate table to interactive html which re-calculates when the local data filter is updated?&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;savePath = Pick Directory( "Where should the report be saved?" );

dt = Open( "$SAMPLE_dATA/Big Class.jmp" );

genders = {};
Insert Into( genders, "F" );
Insert Into( genders, "M" );

webreport = New Web Report();
dtTitle = dt &amp;lt;&amp;lt; get window title;
webreport &amp;lt;&amp;lt; Index( title( dtTitle ), style( "Smalllist" ) );
windows = {};

For( i = 1, i &amp;lt;= N Items( genders ), i++,
	lub1 = Lineup Box( N Col( 2 ) );
	lub1 &amp;lt;&amp;lt; append(
		dt &amp;lt;&amp;lt; data filter(
			local,
			add filter(
				columns( :column( dt, "age" ), :column( dt, "height" ), :column( dt, "weight" ) ),
				where( :name( "sex" ) == genders[i] )
			),
			Mode( Include( 0 ) )
		)
	);
	lub2 = Lineup Box( N Col( 2 ) );
	lub2 &amp;lt;&amp;lt; append(
		Tabulate(
			Title( "Summary" ),
			Show Control Panel( 0 ),
			Add Table(
				Column Table(
					Statistics( Min, Max, Median, Mean, Std Dev ),
					Analysis Columns( :column( dt, "height" ) )
				),
				Row Table( Grouping Columns( :age ) )
			)
		)
	);
	lub3 = Lineup Box( N Col( 2 ) );
	lub3 &amp;lt;&amp;lt; append(
		Graph Builder(
			Title( "age vs height" ),
			Size( 290, 270 ),
			Show control Panel( 0 ),
			Variables( X( :column( dt, "age" ) ), Y( :column( dt, "height" ) ) ),
			Elements( Points( X, Y ) ),
			show title( 0 ),
			show footer( 0 )
		)
	);
	lub3 &amp;lt;&amp;lt; append(
		Graph Builder(
			Title( "age vs weight" ),
			Size( 290, 270 ),
			Show control Panel( 0 ),
			Variables( X( :column( dt, "age" ) ), Y( :column( dt, "weight" ) ) ),
			Elements( Points( X, Y ) ),
			show title( 0 ),
			show footer( 0 )
		)
	);
	lub3 &amp;lt;&amp;lt; horizontalalignment( Left );
	lub2 &amp;lt;&amp;lt; append( lub3 );
	lub2 &amp;lt;&amp;lt; verticalalignment( top );
	lub1 &amp;lt;&amp;lt; append( lub2 );
	lub1 &amp;lt;&amp;lt; horizontalalignment( Left );
	dfcb = Data Filter Context Box( lub1 );
	win = New Window( genders[i], dfcb );
	//dfcb &amp;lt;&amp;lt; report;
	webreport &amp;lt;&amp;lt; add report( dfcb, Title( genders[i] ) );
	Insert Into( windows, win );
);

webreport &amp;lt;&amp;lt; save( savePath || "Report for Big Class" );

For( j = 1, j &amp;lt;= N Items( windows ), j++,
	windows[j] &amp;lt;&amp;lt; close window
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code generates interactive html. Each page has a local data filter (LDF), a Tabulate table (called "Summary"), and two graphs.&lt;/P&gt;&lt;P&gt;The graphs update their content when the LDF is changed. The Summary does not. This is identical to the behavior in JMP.&lt;/P&gt;&lt;P&gt;If I change the mode of the LDF to&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Mode( Include( 1 ) )&lt;/PRE&gt;&lt;P&gt;Then the Summary updates with changes to the LDF in JMP, but the LDF is completely disabled in the interactive html.&lt;/P&gt;&lt;P&gt;Tabulate also has the option of including its own local data filter. This filter is also disabled in the interactive html.&lt;/P&gt;&lt;P&gt;I am using JMP 16.0.0.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:46:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-tabulate-data-with-a-local-data-filter-in-interactive/m-p/414445#M66356</guid>
      <dc:creator>Enthusiastic</dc:creator>
      <dc:date>2023-06-10T20:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering tabulate data with a local data filter in interactive html</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-tabulate-data-with-a-local-data-filter-in-interactive/m-p/414635#M66375</link>
      <description>&lt;P&gt;Hi, This is by design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interactive HTML allows you to select points using an LDF, but is incapable of re-running analyses using an LDF, since a connection to JMP is not present.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To interactively update analyses displayed on webpages, &lt;A href="https://www.jmp.com/en_us/software/collaborative-analytics-software.html" target="_self"&gt;JMP Live&lt;/A&gt; is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 20:56:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-tabulate-data-with-a-local-data-filter-in-interactive/m-p/414635#M66375</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-09-01T20:56:44Z</dc:date>
    </item>
  </channel>
</rss>

