<?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 Need One Column to be both a Character and Numeric Data Type in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634592#M83258</link>
    <description>&lt;P&gt;Hi Everyone-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I'm a fairly new user of JMP 17 Pro, and I am working on a project where I have one column of data that I need to have as both a Character Data Type AND as a Numeric Data Type. I need both columns as I want to 1)&amp;nbsp; concat two different columns together (using Character) while at the same time having this same data as Numeric in a second column. Currently if I change the one column to Character I am able to successfully use the Concat function but then after I create this I go to change the column to Numeric my Concat column goes blank on me. Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 00:01:29 GMT</pubDate>
    <dc:creator>Ribs11380</dc:creator>
    <dc:date>2023-06-11T00:01:29Z</dc:date>
    <item>
      <title>Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634592#M83258</link>
      <description>&lt;P&gt;Hi Everyone-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I'm a fairly new user of JMP 17 Pro, and I am working on a project where I have one column of data that I need to have as both a Character Data Type AND as a Numeric Data Type. I need both columns as I want to 1)&amp;nbsp; concat two different columns together (using Character) while at the same time having this same data as Numeric in a second column. Currently if I change the one column to Character I am able to successfully use the Concat function but then after I create this I go to change the column to Numeric my Concat column goes blank on me. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 00:01:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634592#M83258</guid>
      <dc:creator>Ribs11380</dc:creator>
      <dc:date>2023-06-11T00:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634602#M83260</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47761"&gt;@Ribs11380&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you post a mockup of what you have and what you want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When concatenating columns,&amp;nbsp;the inputs and outputs are a character type.&amp;nbsp; If you wrap your concatenation in num( your concat formula here ), in the formula editor, if the resulting data is able to be converted into a number, it will be.&amp;nbsp; If you force a character type to become a number via column properties, it will be erased because character types are not numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 20:49:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634602#M83260</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-05-23T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634648#M83268</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/39919"&gt;@StarfruitBob&lt;/a&gt;&amp;nbsp; points out the num(...) function will convert character data to numeric. There is also a char(...) function that converts numeric data to character. &lt;/P&gt;
&lt;P&gt;You might want to use a formula column for the concatenation of two numeric columns. The formula column's formula might be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;char(a) || char(b)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;for the numeric columns a and b. You'll probably want to keep numeric data in numeric columns for further work. Converting it to character will cause platforms like &lt;EM&gt;fit y by x&lt;/EM&gt; to produce the wrong report for numeric data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Name is a character variable that will make logistic, contingency, or oneway plots depending on which axis it is used on, and the type of the other axis." style="width: 603px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53027iA19EA6D486D8F32A/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Name is a character variable that will make logistic, contingency, or oneway plots depending on which axis it is used on, and the type of the other axis." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Name is a character variable that will make logistic, contingency, or oneway plots depending on which axis it is used on, and the type of the other axis.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Fix Y by X produces the expected Bivariate for two numeric columns.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 22:31:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/634648#M83268</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-05-23T22:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635009#M83317</link>
      <description>&lt;P&gt;Thanks to you both for reaching out! I have attached a mock example of what I am trying to do. Basically I need both worksheet and Date to be available in both Numeric and Character so I can concat both together to get my desired result:&amp;nbsp; Ex: 1_24May2023, 2_25May2023, etc. Under the Concat Worksheet and Date Column. I am ok with having additional columns with the same data as well so for instance having Character Worksheet having a new column created and it can be labelled Numeric Worksheet and vice versa with Numeric Date with creating a new column labelled Character Date. It seems so simple but I'm just able to do something as easy as Insert a New Column and then Paste the Column into a new column and rename.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ribs11380_0-1684950647311.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53063iB9B55EE152647684/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ribs11380_0-1684950647311.png" alt="Ribs11380_0-1684950647311.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635009#M83317</guid>
      <dc:creator>Ribs11380</dc:creator>
      <dc:date>2023-05-24T17:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635042#M83323</link>
      <description>&lt;P&gt;This seems like an &lt;A href="https://xyproblem.info/" target="_self"&gt;XY problem&lt;/A&gt;.&amp;nbsp; What are you actually trying to do?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 18:39:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635042#M83323</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2023-05-24T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635064#M83325</link>
      <description>&lt;P&gt;You can concatenate together your Character Worksheet column with your Numeric Date column by using the following formula&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Character Worksheet || "_" || Format(
	:Numeric Date,
	"ddMonyyyy",
	9
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or in using the Concat() function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Concat( :Character Worksheet,  "_",
	Format( :Numeric Date, "ddMonyyyy", 9 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Format() function returns the date as a character string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1684954606829.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53069i4FF4371C54F1B48C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1684954606829.png" alt="txnelson_0-1684954606829.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 18:59:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635064#M83325</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-05-24T18:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need One Column to be both a Character and Numeric Data Type</title>
      <link>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635092#M83330</link>
      <description>&lt;P&gt;right-click the top of the new column, pick formula from the pop up menu. Add the formula to do what you need.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the || is the concatenation operator. There are a bunch of date formats you can choose from." style="width: 823px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53076i27970BBA4FCE16DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture2.png" alt="the || is the concatenation operator. There are a bunch of date formats you can choose from." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the || is the concatenation operator. There are a bunch of date formats you can choose from.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Right-click a column-&amp;gt;Column Info is the way I usually re-discover the format names. I'd recommend making names that sort well for most purposes; probably put the year first, then month, day, and sheet number last. Unless you need all the sheet 1s to sort together.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the datetime formats are in a separate category." style="width: 782px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53070i3ACE3093824B8446/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="the datetime formats are in a separate category." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;the datetime formats are in a separate category.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 19:05:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-One-Column-to-be-both-a-Character-and-Numeric-Data-Type/m-p/635092#M83330</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-05-24T19:05:56Z</dc:date>
    </item>
  </channel>
</rss>

