<?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: Part of my script makes a subset of my data. At the very end of my script I try to graph of the subset of data. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380148#M63037</link>
    <description>&lt;P&gt;Maybe the current data table at runtime is not what is assumed. Try using &lt;EM&gt;Send&lt;/EM&gt; instead of &lt;EM&gt;Glue&lt;/EM&gt;&amp;nbsp;in the last part, i.e. &amp;lt;&amp;lt; instead of a semicolon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data Table( "Subset of Work Order Log" ) &amp;lt;&amp;lt; Graph Builder(...)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 18:29:32 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2021-04-27T18:29:32Z</dc:date>
    <item>
      <title>Part of my script makes a subset of my data. At the very end of my script I try to graph of the subset of data.</title>
      <link>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380130#M63035</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Everything else runs fine except for I don't get a graph built for my Subset data table. &lt;BR /&gt;And I don't get any error. Any ideas what is wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;First part is making the subset &lt;BR /&gt;Second is calling the subset to make the graph&lt;BR /&gt;&lt;BR /&gt;//MAKE CANCELLED INTO SUBSET
// New column: Column 1
Data Table( "Work Order Log" ) &amp;lt;&amp;lt; New Column( "Column 1",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Set Selected
) &amp;lt;&amp;lt; Move Selected Columns( {:Column 1}, To First );


// Change column formula: Column 1
:Column 1 &amp;lt;&amp;lt; Set Formula(
	If(
		Contains( Uppercase( :CAUSECODEDESCRIPTION ), "OPENED IN ERROR" ), 1,
		Contains( Uppercase( :CAUSECODEDESCRIPTION ), "CUSTOMER CANCELLED" ), 1,
		Contains(
			Uppercase( :CAUSECODEDESCRIPTION ),
			"CANCELLED - INCORRECT SYSTEM"
		), 1,
		Contains( Uppercase( :CAUSECODEDESCRIPTION ), "DUPLICATE CALL" ), 1
	)
);
// Subset data table
// → Data Table( "Subset of Work Order Log" )
Data Table( "Work Order Log" ) &amp;lt;&amp;lt; Select Where( :Column 1 == 1 ) &amp;lt;&amp;lt;
Subset( Selected Rows( 1 ), Selected columns only( 0 ) );

// Delete selected rows
Data Table( "Work Order Log" ) &amp;lt;&amp;lt; Select Where( :Column 1 == 1 ) 
&amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Subset of Work Order Log" );
Graph Builder(
	Variables( X( :"Week[OPENTIME]"n ), Overlay( :CAUSECODEDESCRIPTION ) ),
	Elements(
		Bar( X, Legend( 2 ), Bar Style( "Stacked" ), Label( "Label by Value" ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:45:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380130#M63035</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2023-06-09T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Part of my script makes a subset of my data. At the very end of my script I try to graph of the subset of data.</title>
      <link>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380148#M63037</link>
      <description>&lt;P&gt;Maybe the current data table at runtime is not what is assumed. Try using &lt;EM&gt;Send&lt;/EM&gt; instead of &lt;EM&gt;Glue&lt;/EM&gt;&amp;nbsp;in the last part, i.e. &amp;lt;&amp;lt; instead of a semicolon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data Table( "Subset of Work Order Log" ) &amp;lt;&amp;lt; Graph Builder(...)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 18:29:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380148#M63037</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2021-04-27T18:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Part of my script makes a subset of my data. At the very end of my script I try to graph of the subset of data.</title>
      <link>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380229#M63053</link>
      <description>Thanks, that works</description>
      <pubDate>Tue, 27 Apr 2021 19:29:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Part-of-my-script-makes-a-subset-of-my-data-At-the-very-end-of/m-p/380229#M63053</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2021-04-27T19:29:36Z</dc:date>
    </item>
  </channel>
</rss>

