<?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: Data Filter - and some more data points? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654898#M84401</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;, I think you can do this with just an OR condition in the local data filter:&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="ih_0-1688409705441.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54346i4CDDC81B4BA1D53D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1688409705441.png" alt="ih_0-1688409705441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local Here(
	
	dt = Open( "$Sample_data/big class.jmp" );

	gb = dt &amp;lt;&amp;lt; Graph Builder(
	
		//A new column with only the names that the user can select
		Transform Column(
			"Female Name",
			Nominal,
			Formula( If( :sex == "F", :name, "" ) )
		),
		Size( 534, 518 ),
		Show Control Panel( 0 ),
		Variables( X( :height ), Y( :weight ), Overlay( :sex ), Color( :sex ) ),
		Elements( Points( X, Y, Legend( 23 ) ) ),
		Local Data Filter(
			Add Filter(
				columns( :Female Name ),
				Where( :Female Name == "KATIE" ),
				Display( :Female Name, N Items( 15 ) )
			),
			//This is the OR condition that was added interactively
			Add Filter( columns( :sex ), Where( :sex == "M" ) )
		)
	);
	
	//Format points to highlight the selected name over the reference data.
	//Copied and pasted the 'send to report' section into this.
	(gb &amp;lt;&amp;lt; xpath("//ScaleBox[@ID='400']")) &amp;lt;&amp;lt; Legend Model(
		23,
		Properties(
			0,
			{Line Color( 5 ), Marker( "FilledCircle" ), Marker Size( 6 )},
			Item ID( "F", 1 )
		),
		Properties(
			1,
			{Line Color( 1 ), Marker( "Dot" ), Marker Size( 2 )},
			Item ID( "M", 1 )
		)
	);
	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
    <pubDate>Mon, 03 Jul 2023 18:44:55 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2023-07-03T18:44:55Z</dc:date>
    <item>
      <title>Data Filter - and some more data points?</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654480#M84368</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use a Data filter in a Dashboard to restrict a Graph builder Plot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in addition to the selected data, I want to show some reference data.&lt;/P&gt;&lt;P&gt;Let's say, the filter is used to select a child from Big Class - and in addition, the Graph builder plot should always show the data of all boys in the class.&lt;/P&gt;&lt;P&gt;Is this possible with standard dashboard - or do I have to use JSL to atomate the selection of the respective rows?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this illustration the Local Data Filter on the Left should just control the data filter part of the GraphBuilder starting from OR (:sex = =M should be plotted in addition.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local Here(
	table1 = Open( "C:\Program Files\SAS\JMP\17\Samples\Data\Big Class.jmp" );
	New Window( "Big Class - Dashboard",
		Data Filter Context Box(
			Tab Page Box(
				"Dashboard",
				H Splitter Box(
					Size( 1041, 616 ),
					&amp;lt;&amp;lt;Sizes( {0.204739336492891, 0.795260663507109} ),
					Tab Page Box(
						"Local Data Filter",
						Scroll Box(
							Size( 213, 587 ),
							Flexible( 1 ),
							table1 &amp;lt;&amp;lt; Data Filter(
								Local,
								Add Filter(
									columns( :name ),
									Where( :name == "BARBARA" ),
									Display(
										:name,
										N Items( 15 ),
										Find( Set Text( "" ) )
									)
								)
							)
						)
					),
					Tab Page Box(
						"Graph Builder",
						Scroll Box(
							Size( 825, 587 ),
							Flexible( 1 ),
							V List Box(
								table1 &amp;lt;&amp;lt;
								Graph Builder(
									Size( 513, 567 ),
									Show Control Panel( 0 ),
									Summary Statistic( "Median" ),
									Graph Spacing( 4 ),
									Variables(
										X( :height ),
										Y( :weight ),
										Color( :sex )
									),
									Elements(
										Points( X, Y, Legend( 19 ) ),
										Smoother( X, Y, Legend( 20 ) )
									),
									Local Data Filter(
										Add Filter(
											columns( :sex ),
											Where( :sex == "M" )
										), // OR: 
										Add Filter(
											columns( :name ),
											Display(
												:name,
												N Items( 15 ),
												Find( Set Text( "" ) )
											)
										)
									)
								)
							)
						)
					)
				)
			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Jun 2023 18:32:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654480#M84368</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-30T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter - and some more data points?</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654898#M84401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;, I think you can do this with just an OR condition in the local data filter:&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="ih_0-1688409705441.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54346i4CDDC81B4BA1D53D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1688409705441.png" alt="ih_0-1688409705441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local Here(
	
	dt = Open( "$Sample_data/big class.jmp" );

	gb = dt &amp;lt;&amp;lt; Graph Builder(
	
		//A new column with only the names that the user can select
		Transform Column(
			"Female Name",
			Nominal,
			Formula( If( :sex == "F", :name, "" ) )
		),
		Size( 534, 518 ),
		Show Control Panel( 0 ),
		Variables( X( :height ), Y( :weight ), Overlay( :sex ), Color( :sex ) ),
		Elements( Points( X, Y, Legend( 23 ) ) ),
		Local Data Filter(
			Add Filter(
				columns( :Female Name ),
				Where( :Female Name == "KATIE" ),
				Display( :Female Name, N Items( 15 ) )
			),
			//This is the OR condition that was added interactively
			Add Filter( columns( :sex ), Where( :sex == "M" ) )
		)
	);
	
	//Format points to highlight the selected name over the reference data.
	//Copied and pasted the 'send to report' section into this.
	(gb &amp;lt;&amp;lt; xpath("//ScaleBox[@ID='400']")) &amp;lt;&amp;lt; Legend Model(
		23,
		Properties(
			0,
			{Line Color( 5 ), Marker( "FilledCircle" ), Marker Size( 6 )},
			Item ID( "F", 1 )
		),
		Properties(
			1,
			{Line Color( 1 ), Marker( "Dot" ), Marker Size( 2 )},
			Item ID( "M", 1 )
		)
	);
	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Mon, 03 Jul 2023 18:44:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654898#M84401</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2023-07-03T18:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter - and some more data points?</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654912#M84407</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Hm, you are right - forget about the Local Data Filter - put the OR inside the Data Filter(Local ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 19:45:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-and-some-more-data-points/m-p/654912#M84407</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-03T19:45:50Z</dc:date>
    </item>
  </channel>
</rss>

