<?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 Interactive / Dynamic Filtering or Choice  Menu in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775341#M95745</link>
    <description>&lt;P&gt;I have a table named dt. I take the unique values of some columns and I create the following menu that gives the ability to the end user to filter the dt table based on the values of the columns and take a subset of this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1721912378487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66497iA57E7ECB442B1946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1721912378487.png" alt="Georgios_Tsim_0-1721912378487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, taking the unique values of its column is risky because you may end up choosing a combination of attributes that doesn't exist in the table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any way to make this menu interactive or dynamic so that it narrows down the available choices as the end user makes some choices?&lt;BR /&gt;&lt;BR /&gt;In general, is there any way to handle this problem of ending up having an empty table because the initial dataset does not contain all the combinations of the unique values of the attributes?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 13:09:53 GMT</pubDate>
    <dc:creator>Georgios_Tsim</dc:creator>
    <dc:date>2024-07-25T13:09:53Z</dc:date>
    <item>
      <title>Interactive / Dynamic Filtering or Choice  Menu</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775341#M95745</link>
      <description>&lt;P&gt;I have a table named dt. I take the unique values of some columns and I create the following menu that gives the ability to the end user to filter the dt table based on the values of the columns and take a subset of this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1721912378487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66497iA57E7ECB442B1946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1721912378487.png" alt="Georgios_Tsim_0-1721912378487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, taking the unique values of its column is risky because you may end up choosing a combination of attributes that doesn't exist in the table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any way to make this menu interactive or dynamic so that it narrows down the available choices as the end user makes some choices?&lt;BR /&gt;&lt;BR /&gt;In general, is there any way to handle this problem of ending up having an empty table because the initial dataset does not contain all the combinations of the unique values of the attributes?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 13:09:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775341#M95745</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-07-25T13:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive / Dynamic Filtering or Choice  Menu</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775351#M95746</link>
      <description>&lt;P&gt;You could try utilizing conditional data filter but it might mess with your layout / require a bit extra work to get it look similar.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 13:12:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775351#M95746</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-25T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive / Dynamic Filtering or Choice  Menu</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775560#M95780</link>
      <description>&lt;P&gt;Here is a quick example. I would suggest making the referencing more robust and possibly utilizing local data filter instead of global. Also you should parametrize this (wrapping, instructions, ...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Animals.jmp");

nw = New Window("",
	V List Box(align("center"),
		Text Box("Animals Study Evaluation", &amp;lt;&amp;lt; Set Base Font("Title")),
		Text Box("Add-in version 1.0", &amp;lt;&amp;lt; Set Base Font("Heading")),
		Text Box("Documentation report: xxxxxx", &amp;lt;&amp;lt; Set Base Font("Heading")),
		Panel Box("Study Selections",
			Button Box("Start Over", f &amp;lt;&amp;lt; Clear);
			f = dt &amp;lt;&amp;lt; Data Filter(
				Conditional,
				Show Controls(0),
				Show Modes(0),
				Show Histograms and Bars(0),
				Add Filter(
					columns(:season, :species, :subject),
					Where(:season == "fall"), // force conditional filter order
					Where(:species = "COYOTE"),
					Where(:subject= "1"),
					Display(:season, N Items(4)),
					Display(:species, N Items(2), "List Display"),
					Display(:subject, N Items(3), "List Display")
				)
			)
		)
	)
);

Window("")["Data Filter",BorderBox(6)] &amp;lt;&amp;lt; Sib Prepend(
	V List Box(
		Text Box("Selection of Seasons", &amp;lt;&amp;lt; Set Font Size(12), &amp;lt;&amp;lt; Set Font Style("Bold Italic")),
		Text Box("Please select which seasons to use for the analysis. Multiple seasons can be selected by holding 'ctrl' down while pressing multiple seasons.", &amp;lt;&amp;lt; Set Wrap(400))
	)
);
Window("")["Data Filter",BorderBox(6)] &amp;lt;&amp;lt; Sib Append(Spacer Box(Size(0, 20)));


Window("")["Data Filter",BorderBox(7)] &amp;lt;&amp;lt; Sib Prepend(
	V List Box(
		Text Box("Selection of Species", &amp;lt;&amp;lt; Set Font Size(12), &amp;lt;&amp;lt; Set Font Style("Bold Italic")),
		Text Box("Please select which Species to use for the analysis. Multiple Species can be selected by holding 'ctrl' down while pressing multiple Species.", &amp;lt;&amp;lt; Set Wrap(400))
	)
);
Window("")["Data Filter",BorderBox(7)] &amp;lt;&amp;lt; Sib Append(Spacer Box(Size(0, 20)));

Window("")["Data Filter",BorderBox(8)] &amp;lt;&amp;lt; Sib Prepend(
	V List Box(
		Text Box("Selection of Subjects", &amp;lt;&amp;lt; Set Font Size(12), &amp;lt;&amp;lt; Set Font Style("Bold Italic")),
		Text Box("Please select which Subjects to use for the analysis. Multiple Subjects can be selected by holding 'ctrl' down while pressing multiple Subjects.", &amp;lt;&amp;lt; Set Wrap(400))
	)
);

Window("")["Data Filter",BorderBox(3)] &amp;lt;&amp;lt; Visibility("Collapse");
Window("")["Data Filter",CheckBoxBox(1)] &amp;lt;&amp;lt; Visibility("Collapse");
Window("")["Data Filter",BorderBox(1)] &amp;lt;&amp;lt; Visibility("Collapse");
nw[Outline Box(1)] &amp;lt;&amp;lt; Set Title("");


// To force the order of conditional filtering
// https://community.jmp.com/t5/JMP-Wish-List/Option-to-make-Conditional-Data-Filter-work-from-top-to-bottom/idi-p/746949
f &amp;lt;&amp;lt; (Filter Column(:subject) &amp;lt;&amp;lt; Clear Selection);
f &amp;lt;&amp;lt; (Filter Column(:species) &amp;lt;&amp;lt; Clear Selection);
f &amp;lt;&amp;lt; (Filter Column(:season) &amp;lt;&amp;lt; Clear Selection);&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1721979250690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66513iC5C5848801F043E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1721979250690.png" alt="jthi_1-1721979250690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There are also some places where JMP utilizes something like this (like Sample Index) but they might also have access to some nicer implementations than us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 07:34:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775560#M95780</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-26T07:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive / Dynamic Filtering or Choice  Menu</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775606#M95786</link>
      <description>&lt;P&gt;Is it possible to use "or" statements between 2 conditions of data filtering? The Conditional data Filter uses "and" statements and filters out the data dynamically. But what if my conditions are like the following:&lt;BR /&gt;&lt;BR /&gt;Condition_of_column1 and (Condition2_of_column2 or&amp;nbsp;Condition3_of_column3)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:03:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775606#M95786</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-07-26T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive / Dynamic Filtering or Choice  Menu</title>
      <link>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775608#M95788</link>
      <description>&lt;P&gt;Might not be possible when using conditional data filters&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 09:12:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Interactive-Dynamic-Filtering-or-Choice-Menu/m-p/775608#M95788</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-26T09:12:49Z</dc:date>
    </item>
  </channel>
</rss>

