<?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 Assign unique ID for each unique text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37248#M21840</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get your help in the following case. I have a data that dealing with drugs and their specific problems within different firms. The two columns (i.e. drug name and problem specifications) are text data. I would like to create a third column (continous one) that add unique ID to each&amp;nbsp;drug name when it appears. For instance, Piperacillin Sodium and Tazobactam Sodium is drug name. When ever this name appear assign ID=1. If the drug name changed to Zoledronic Acid, for instance, ID=2 and so on so forth. Could you please help me in building formula in JMP to address this case? Best, Qais&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 18:23:27 GMT</pubDate>
    <dc:creator>qais_hatim_fda_</dc:creator>
    <dc:date>2017-03-15T18:23:27Z</dc:date>
    <item>
      <title>Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37248#M21840</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get your help in the following case. I have a data that dealing with drugs and their specific problems within different firms. The two columns (i.e. drug name and problem specifications) are text data. I would like to create a third column (continous one) that add unique ID to each&amp;nbsp;drug name when it appears. For instance, Piperacillin Sodium and Tazobactam Sodium is drug name. When ever this name appear assign ID=1. If the drug name changed to Zoledronic Acid, for instance, ID=2 and so on so forth. Could you please help me in building formula in JMP to address this case? Best, Qais&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:23:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37248#M21840</guid>
      <dc:creator>qais_hatim_fda_</dc:creator>
      <dc:date>2017-03-15T18:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37251#M21842</link>
      <description>&lt;P&gt;Here is a script that runs against a sample data table that creates an ID column with a formula as you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\cars.jmp" );
dt &amp;lt;&amp;lt; New Column( "ID",
	formula(
		If( Row() == 1,
			Summarize( drugs = by( :Make ) )
		);
		Contains( drugs, :Make );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:00:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37251#M21842</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-15T19:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37263#M21847</link>
      <description>There is an add-in in the Add-in Depot that basically does this. It's called "compress to labeled code."  You want the revised version.  Run the add-in on the column with the text.  This will create a new column called "&amp;lt;column name&amp;gt; coded".  Go into the column properties and turn off the value labels and click apply.  You should be left with what you are after.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Wed, 15 Mar 2017 21:47:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37263#M21847</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-03-15T21:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37269#M21853</link>
      <description>Thank you so much Sir for your amazing professional help. Problem solved. Any recommendation in improving my skills in writing such advance JSL formula?&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Qais</description>
      <pubDate>Thu, 16 Mar 2017 12:48:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37269#M21853</guid>
      <dc:creator>qais_hatim_fda_</dc:creator>
      <dc:date>2017-03-16T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37272#M21856</link>
      <description>&lt;P&gt;My suggestion is to read the documentation provided by JMP. &amp;nbsp;Of the several books downloaded when you install JMP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Books&lt;/P&gt;
&lt;P&gt;I suggest that you read,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Using JMP&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Basic Analysis&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Essential Graphing&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Scripting Guide&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a lot of reading, however, JMP is a powerful product with a lot of capabilities&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:01:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37272#M21856</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-16T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Assign unique ID for each unique text</title>
      <link>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37281#M21862</link>
      <description>&lt;P&gt;Thank you so much. Well done&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 13:57:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assign-unique-ID-for-each-unique-text/m-p/37281#M21862</guid>
      <dc:creator>qais_hatim_fda_</dc:creator>
      <dc:date>2017-03-16T13:57:12Z</dc:date>
    </item>
  </channel>
</rss>

