<?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 Adding column property units to Table headings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877888#M104069</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a JMP file with multiple columns for different analytical assays each with the column property units. When I use tabulate to create a table and selecting the columns I get the column name but not the units. I don't want to add the units into the column titles themselves as that will effect a lot of other scripts I have. I did try just changing the statistics label to the assay name and units and then removing the column label which does work but this means that I need to make a new table script for each assay rather than using the column switcher which would be a lot easier for other people using this in the future. Any idea how to add units? either in the column label or by updating the statistic item label to always show the units for the column selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example Tabulate script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Change Item Label( Statistics( Sum, "Add units here?" ) ),
	Remove Column Label( Grouping Columns( :Run Number ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table(
			Analysis Columns( :Total Protein ),
			Statistics( Sum ),
			Grouping Columns( :Run Number )
		),
		Column Table(
			Analysis Columns( : Total Protein ),
			Statistics( Mean )
		),
		Row Table( Grouping Columns( :Samples ) )
	),
	Local Data Filter(
		Mode( Show( 0 ) ),
		Add Filter(
			columns( :Sample Type ),
			Where(
				:Sample Type == {"Sample 1", " Sample 2", "Sample 3"
				"Sample 4", "Sample 5"}
			),
			Display( :Sample Type, N Items( 6 ) )
		)
	),
	Column Switcher(
		:Total Protein,
		{:Total DNA, :Total Sugar, :Total Polysaccharide }
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Jun 2025 10:45:46 GMT</pubDate>
    <dc:creator>Katz0801</dc:creator>
    <dc:date>2025-06-03T10:45:46Z</dc:date>
    <item>
      <title>Adding column property units to Table headings</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877888#M104069</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a JMP file with multiple columns for different analytical assays each with the column property units. When I use tabulate to create a table and selecting the columns I get the column name but not the units. I don't want to add the units into the column titles themselves as that will effect a lot of other scripts I have. I did try just changing the statistics label to the assay name and units and then removing the column label which does work but this means that I need to make a new table script for each assay rather than using the column switcher which would be a lot easier for other people using this in the future. Any idea how to add units? either in the column label or by updating the statistic item label to always show the units for the column selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example Tabulate script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Tabulate(
	Change Item Label( Statistics( Sum, "Add units here?" ) ),
	Remove Column Label( Grouping Columns( :Run Number ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table(
			Analysis Columns( :Total Protein ),
			Statistics( Sum ),
			Grouping Columns( :Run Number )
		),
		Column Table(
			Analysis Columns( : Total Protein ),
			Statistics( Mean )
		),
		Row Table( Grouping Columns( :Samples ) )
	),
	Local Data Filter(
		Mode( Show( 0 ) ),
		Add Filter(
			columns( :Sample Type ),
			Where(
				:Sample Type == {"Sample 1", " Sample 2", "Sample 3"
				"Sample 4", "Sample 5"}
			),
			Display( :Sample Type, N Items( 6 ) )
		)
	),
	Column Switcher(
		:Total Protein,
		{:Total DNA, :Total Sugar, :Total Polysaccharide }
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jun 2025 10:45:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877888#M104069</guid>
      <dc:creator>Katz0801</dc:creator>
      <dc:date>2025-06-03T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column property units to Table headings</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877898#M104070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/55174"&gt;@Katz0801&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add "Unit" as a column property :&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/set-or-get-column-properties.shtml" target="_blank"&gt;Set or Get Column Properties&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Doing it so will make the unit appear in the column in the datatable, but not in its name (so no recoding/renaming involved).&lt;/P&gt;
&lt;P&gt;The JSL script is :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col&amp;lt;&amp;lt;Set Property( "units", "grams" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have several columns, you can use&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/standardize-attributes-and-properties-across-columns.shtml" target="_blank"&gt;Standardize Attributes and Properties Across Columns&lt;/A&gt;&amp;nbsp;to add Unit property to each selected columns, and then add the specific unit types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 11:07:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877898#M104070</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-06-03T11:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding column property units to Table headings</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877936#M104072</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply. I do have the unit property on all my columns my issue is that I don't know how to get those units to appear when creating a table using the tabulate function. I did try using &amp;lt;&amp;lt;Get property ("units") within my table script but it didn't work and wouldn't have functioned with the column switcher as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Katy&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 13:33:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-column-property-units-to-Table-headings/m-p/877936#M104072</guid>
      <dc:creator>Katz0801</dc:creator>
      <dc:date>2025-06-03T13:33:23Z</dc:date>
    </item>
  </channel>
</rss>

