<?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: Imported Variable loses formatting when stacked in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/576460#M78436</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12107"&gt;@Mickyboy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It sounds like you want different rows within a single column to have different properties. That is not going to be possible unfortunately. Column properties such as Format apply to the whole column. That is the nature of the stacked format. If you want the different variables to have different properties, you would need to leave them in the wide format.&lt;/P&gt;
&lt;P&gt;Why do you need the Percent Format? Perhaps you can just do a multiplication prior to stacking.&lt;/P&gt;
&lt;P&gt;Sorry, but I hope that helps.&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 09:18:54 GMT</pubDate>
    <dc:creator>Phil_Kay</dc:creator>
    <dc:date>2022-12-02T09:18:54Z</dc:date>
    <item>
      <title>Imported Variable loses formatting when stacked</title>
      <link>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/576391#M78431</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when l import a dataset with the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Clear Symbols();

pb = Page Break Box();

fileopen= "\\prusntyfil01\home$\sv001241\Desktop\FCCC\Scripts\Data tables for statistical analysis 07NOV22.xlsx";

//dt=open(fileopen,private);
	dt = Open(
		 fileopen, 
		 Worksheets( "USP &amp;amp; DSP Subtype Dependent" ),
		 
		Worksheet Settings(
				1,
				Has Column Headers( 1 ),
				Number of Rows in Headers( 1 ),
				Headers Start on Row( 1 ),
				Data Starts on Row( 2 ),
				Data Starts on Column( 1 ),
				Data Ends on Row( 262 ),
				Data Ends on Column( 14 ),
				Replicated Spanned Rows( 1 ),
				Replicated Spanned Headers( 0 ),
				Suppress Hidden Rows( 1 ),
				Suppress Hidden Columns( 1 ),
				Suppress Empty Columns( 1 ),
				Treat as Hierarchy( 0 ),
				Multiple Series Stack( 0 ),
				Import Cell Colors( 0 ),
				Limit Column Detect( 0 ),
				Column Separator String( "" )
			),
		); 

////Had to change the data type of some variables, some of the variables have operators in the name had to change the names of some variables then change data types////	
///When l tried to work with the variables with an operator in there name such as "/" and "%" i had problems so tried to change the names of Variables with/////
///either brackets or a operator in the variable name//////

dt :Specific Purity &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Set Modeling Type (continuous); 

col = Column( 2 );
	col &amp;lt;&amp;lt; Set Name( "Scale Area" );
	
col = Column( 4 );
	col &amp;lt;&amp;lt; Set Name( "Subtype" );
	
col = Column( 6 );
	col &amp;lt;&amp;lt; Set Name( "ICD 106 cells mL" );
	
col = Column( 7 );
	col &amp;lt;&amp;lt; Set Name( "HA µg mL" );
///need to format the below column as percent/////
col = Column( 8 );
	col &amp;lt;&amp;lt; Set Name( "HA Step Yield percent" );

dt :HA Step Yield percent &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Format( "Percent", 12, 1 )  &amp;lt;&amp;lt; Set Modeling Type (continuous) &amp;lt;&amp;lt; Set Selected;

col = Column( 9 );
	col &amp;lt;&amp;lt; Set Name( "Total Protein BCA ug mL" );
	
dt :Total Protein BCA ug mL &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Set Modeling Type (continuous);

col = Column( 11 );
	col &amp;lt;&amp;lt; Set Name( "HA by SRD µg mL" );

dt :HA by SRD µg mL  &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Set Modeling Type (continuous);

col = Column( 12 );
	col &amp;lt;&amp;lt; Set Name( "HCP by ELISA µg mL" );

dt :HCP by ELISA µg mL &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Set Modeling Type (continuous);

col = Column( 13 );
	col &amp;lt;&amp;lt; Set Name( "HCP µg µg" );

dt :HCP µg µg  &amp;lt;&amp;lt; Data type (Numeric) &amp;lt;&amp;lt; Set Modeling Type (continuous);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;some of the variables import as ordinal or nominal and I need to correct for this which is fine, however the variable: HA&amp;nbsp;Step Yield percent loses its formatting when l then stack the data using the following code, how can I prevent this from happening??&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = dt &amp;lt;&amp;lt; stack(
		columns(:ICD 106 cells mL, :HA µg mL, :HA Step Yield percent,
				:Total Protein BCA ug mL, :Specific Purity, :HA by SRD µg mL,
				:HCP by ELISA µg mL, :HCP µg µg),
		Source Label Column( "Quality Attribute" ),
		Stacked Data Column( "Data" ),
		output table name( "stacked" )
);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:03:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/576391#M78431</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2023-06-09T16:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Imported Variable loses formatting when stacked</title>
      <link>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/576460#M78436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12107"&gt;@Mickyboy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It sounds like you want different rows within a single column to have different properties. That is not going to be possible unfortunately. Column properties such as Format apply to the whole column. That is the nature of the stacked format. If you want the different variables to have different properties, you would need to leave them in the wide format.&lt;/P&gt;
&lt;P&gt;Why do you need the Percent Format? Perhaps you can just do a multiplication prior to stacking.&lt;/P&gt;
&lt;P&gt;Sorry, but I hope that helps.&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 09:18:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/576460#M78436</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2022-12-02T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Imported Variable loses formatting when stacked</title>
      <link>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/577152#M78474</link>
      <description>&lt;P&gt;Thanks Phil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did think of multiplying by 100 prior to stacking if l couldn't find a solution, thanks for your advice, appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 01:08:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Imported-Variable-loses-formatting-when-stacked/m-p/577152#M78474</guid>
      <dc:creator>Mickyboy</dc:creator>
      <dc:date>2022-12-05T01:08:39Z</dc:date>
    </item>
  </channel>
</rss>

