cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Filter By - disabled by a Local Data Filter

hogi
Level XII

A nice feature in Jmp:

One (main) graph can be used to restrict the data that is displayed in another graph - or tabulate list.
This feature is activated by a checkbox "Filter By":

hogi_1-1688504828952.png

 

Surprisingly, activating a Local Data Filter in the (main) Graph  disables this functionality.
The respective data points are just highlighted, the display is not restricted to the selected data points:

hogi_2-1688505006592.png

 

Same effect in Jmp 16 and 17.1.

Why is the functionality disabled by activating a Local Data Filter.

How can I enable the functionality?

 

Workaround:

Add another Data Filter (outside of the main graph).
how?

View more...
table1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Big Class - Dashboard",
	Data Filter Context Box(
		Tab Page Box(
			"Dashboard",
			H Splitter Box(
				Tab Page Box(
					"Tabulate",
					Scroll Box( V List Box( table1 << Tabulate( Show Control Panel( 0 ), Add Table( Row Table( Grouping Columns( :name ) ) ) ) ) )
				),
				Data Filter Source Box(
					Tab Page Box(
						"Graph Builder",
						Scroll Box(
							V List Box(
								table1 << Graph Builder(
									Show Control Panel( 0 ),
									Variables( X( :height ), Y( :weight ) ),
									Elements( Points( X, Y, Legend( 9 ) ) ),
									Local Data Filter( Conditional, Add Filter( columns( :age ), Where( :age == 14 ) ) )
								)
							)
						)
					)
				)
			)
		)
	)
);


 

1 ACCEPTED SOLUTION

Accepted Solutions


Re: Filter By - disabled by a Local Data Filter

Hello @hogi ,

This is a possible workaround using JSL. I hope it works.

 

table1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Big Class - Dashboard",
	Data Filter Context Box(
		H List Box(
			Data Filter Source Box(
				table1 << Data Filter( Local, Add Filter( columns( :age ) ) )
			),
			Data Filter Context Box(
				H List Box(
					Data Filter Source Box(
						Data Filter Source Box(
							table1 << Graph Builder(
								Show Control Panel( 0 ),
								Variables( X( :height ), Y( :weight ) ),
								Elements( Points( X, Y, Legend( 9 ) ) )
							)
						)
					),
					table1 << Tabulate(
						Show Control Panel( 0 ),
						Add Table( Row Table( Grouping Columns( :name ) ) )
					)
				)
			)
		)
	)
);

 

View solution in original post

5 REPLIES 5


Re: Filter By - disabled by a Local Data Filter

Hello @hogi ,

This is a possible workaround using JSL. I hope it works.

 

table1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Big Class - Dashboard",
	Data Filter Context Box(
		H List Box(
			Data Filter Source Box(
				table1 << Data Filter( Local, Add Filter( columns( :age ) ) )
			),
			Data Filter Context Box(
				H List Box(
					Data Filter Source Box(
						Data Filter Source Box(
							table1 << Graph Builder(
								Show Control Panel( 0 ),
								Variables( X( :height ), Y( :weight ) ),
								Elements( Points( X, Y, Legend( 9 ) ) )
							)
						)
					),
					table1 << Tabulate(
						Show Control Panel( 0 ),
						Add Table( Row Table( Grouping Columns( :name ) ) )
					)
				)
			)
		)
	)
);

 

hogi
Level XII


Re: Filter By - disabled by a Local Data Filter

Hi @yuichi_katsumur ,thanks a lot for the solution.

So, the trick is to add a level with a second Data Filter Context Boxes ...

 

Are the nested data filter source boxes necessary. It seems that a single one is also fine:

table1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Window( "Big Class - Dashboard",
	Data Filter Context Box(
		H List Box(
			Data Filter Source Box(
				table1 << Data Filter( Local, Add Filter( columns( :age ) ) )
			),
			Data Filter Context Box(
				H List Box(
						Data Filter Source Box(
							table1 << Graph Builder(
								Show Control Panel( 0 ),
								Variables( X( :height ), Y( :weight ) ),
								Elements( Points( X, Y, Legend( 9 ) ) )
							)
					),
					table1 << Tabulate(
						Show Control Panel( 0 ),
						Add Table( Row Table( Grouping Columns( :name ) ) )
					)
				)
			)
		)
	)
);

 

 


Re: Filter By - disabled by a Local Data Filter

Hi @hogi ,

Thank you for correcting my error.

hogi
Level XII


Re: Filter By - disabled by a Local Data Filter

Jmp support just confirmed:
In Dashboard mode, there is no possibility to generate the hierarchical structure which is needed to make this Dashboard work

(Case 00045639)

hogi
Level XII


Re: Filter By - disabled by a Local Data Filter

A warning like this one could help:

Dear user, I noticed that you activated a Local Data Filter in a graph that is used as Filter By.
Please be aware that this is NOT supported in Jmp. Therefore the Filter By functionality *) will be disabled. 

 

*) just the functionality of Filter By is disabled, not the icon:

hogi_0-1698702896962.png