<?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 How to remove control charts with empty columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-remove-control-charts-with-empty-columns/m-p/252246#M49524</link>
    <description>&lt;P&gt;I have a large data table that I allow the user to filter down to a product to then create a subset and control charts. Products use different combinations of parameters so the main table and subset have empty columns that differ for each product. I would like to solve one of these problems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How can I create a dynamic list to feed into the control chart builder to only plot the parameters that are not empty for a given subset?&lt;/LI&gt;&lt;LI&gt;How can I remove empty charts from the control chart builder after creation?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As an example, I have attached a subset of the Hot Dogs table with some parameters removed by Taste. Calories now has no data for all dogs with a Medium taste. In this instance, I would like to have every parameter plot but Calories, though it may be a different parameter for other Tastes.&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="alecpena_0-1584114263511.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22322iD591BAD77323BBE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alecpena_0-1584114263511.png" alt="alecpena_0-1584114263511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 15:46:03 GMT</pubDate>
    <dc:creator>alecpena</dc:creator>
    <dc:date>2020-03-13T15:46:03Z</dc:date>
    <item>
      <title>How to remove control charts with empty columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-control-charts-with-empty-columns/m-p/252246#M49524</link>
      <description>&lt;P&gt;I have a large data table that I allow the user to filter down to a product to then create a subset and control charts. Products use different combinations of parameters so the main table and subset have empty columns that differ for each product. I would like to solve one of these problems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;How can I create a dynamic list to feed into the control chart builder to only plot the parameters that are not empty for a given subset?&lt;/LI&gt;&lt;LI&gt;How can I remove empty charts from the control chart builder after creation?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As an example, I have attached a subset of the Hot Dogs table with some parameters removed by Taste. Calories now has no data for all dogs with a Medium taste. In this instance, I would like to have every parameter plot but Calories, though it may be a different parameter for other Tastes.&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="alecpena_0-1584114263511.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22322iD591BAD77323BBE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alecpena_0-1584114263511.png" alt="alecpena_0-1584114263511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:46:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-control-charts-with-empty-columns/m-p/252246#M49524</guid>
      <dc:creator>alecpena</dc:creator>
      <dc:date>2020-03-13T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove control charts with empty columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-control-charts-with-empty-columns/m-p/252369#M49538</link>
      <description>&lt;P&gt;Here is one way to handle the issue.&amp;nbsp; Just check to see if the column has all missing values, and if so, then do not include it into the list of good columns.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
colNames = dt &amp;lt;&amp;lt; get column names( string, continuous );

newcolNames = ":Name(\!"" || colNames[1] || "\!")";



For( i = 2, i &amp;lt;= N Items( colNames ), i++,
	If( Col Number( Column( colNames[i] ) ) != 0,
		newcolNames = newcolNames || ",:Name(\!"" || colNames[i] || "\!")"
	)
);

Eval(
	Parse(
		"Control Chart Builder(
	Size( 534, 456 ),
	Show Control Panel( 0 ),
	Show Capability( 0 ),
	Variables(
		Y("
		 || newcolNames || ")));"
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 Mar 2020 03:41:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-control-charts-with-empty-columns/m-p/252369#M49538</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-15T03:41:06Z</dc:date>
    </item>
  </channel>
</rss>

