<?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: Formula for combining columns? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12780#M12124</link>
    <description>&lt;P&gt;Click on &lt;STRONG&gt;Cols &amp;gt; New Column&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name the column &lt;SPAN style="color: #942193; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;When to Brush&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;Column Properties &amp;gt; Formula&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Double-click the red box that says "no formula"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paste the following code into the code window:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;char(:Brush After Waking Up) || "," ||
char(:Brush After Meal) || "," ||
char(:Brush Before Sleep) || "," ||
char(:Brush Another Time)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 14:04:29 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2018-06-14T14:04:29Z</dc:date>
    <item>
      <title>Formula for combining columns?</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12779#M12123</link>
      <description>&lt;P&gt;I would like to combine 2 numeric column data with a delimiter.&lt;/P&gt;
&lt;P&gt;First I used cancat function with a third concat character but it seems the columns to be character. I used the char function but the result is obvious if you look at Column "Column".&lt;/P&gt;
&lt;P&gt;Column Utilities "Combine Colums" make the thing perfectly but it does not implement the formula inside the column properties so no automation.&lt;/P&gt;
&lt;P&gt;I have this script from the help menu but i can not adapt it as a formula and outside jsl option does not help me becuse of full automation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate any help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-family: Consolas; color: #011993;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Combine Columns(
    delimiter( "," ),
    Columns(
        :Brush After Waking Up,
        :Brush After Meal,
        :Brush Before Sleep,
        :Brush Another Time
    ),
    Selected Columns are Indicator Columns( 1 ),
    Column Name( "When to Brush" )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="font-family: Consolas;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="8907_2015-06-11_14-59-15.png" style="width: 519px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1640iBB602291125B4B6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8907_2015-06-11_14-59-15.png" alt="8907_2015-06-11_14-59-15.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:03:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12779#M12123</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2018-06-14T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for combining columns?</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12780#M12124</link>
      <description>&lt;P&gt;Click on &lt;STRONG&gt;Cols &amp;gt; New Column&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name the column &lt;SPAN style="color: #942193; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;When to Brush&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;Column Properties &amp;gt; Formula&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Double-click the red box that says "no formula"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paste the following code into the code window:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;char(:Brush After Waking Up) || "," ||
char(:Brush After Meal) || "," ||
char(:Brush Before Sleep) || "," ||
char(:Brush Another Time)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:04:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12780#M12124</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-14T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for combining columns?</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12781#M12125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you PMRoz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fine with it but I can't do my version where the data is numeric (date/time):&lt;/P&gt;&lt;P&gt;Here is the result when I &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Char(:PUBLISH DATE.) || "," || Char(:REVIEW NUMBER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8908_2015-06-11_15-36-24.png" style="width: 139px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1641i4A5C492A5EFFEE5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8908_2015-06-11_15-36-24.png" alt="8908_2015-06-11_15-36-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 23:30:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12781#M12125</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-10-18T23:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for combining columns?</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12782#M12126</link>
      <description>&lt;P&gt;For dates use the format command, with your favorite JMP date or datetime format.&amp;nbsp; Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Format(:Publish Date, "m/d/y") || "," || Char(:Review Number)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:05:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/12782#M12126</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-14T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for combining columns?</title>
      <link>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/81066#M36936</link>
      <description>&lt;P&gt;Sorry about multiple questions.Still new to jsl and in process of getting used to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns in a data table - process and location. process has values like welding,melting,binding and preparing.Location has values like 29,15,6,22.&lt;/P&gt;&lt;P&gt;I need to write this data to an excel as welding@29,melting@15,binding@6,preparing@22.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach -&lt;/P&gt;&lt;P&gt;1.Combine columns process and location with delimiter&amp;nbsp;@.&lt;/P&gt;&lt;P&gt;2.Get list of unique values using Associative array and get keys.&lt;/P&gt;&lt;P&gt;But the problem I am facing is -&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are instances where one or both columns can be blank.&lt;/P&gt;&lt;P&gt;If process is blank,the result is NA@23.If both columns are blank result is '.'.&lt;/P&gt;&lt;P&gt;How do I check the list for these values and remove them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 17:50:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Formula-for-combining-columns/m-p/81066#M36936</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-10-25T17:50:45Z</dc:date>
    </item>
  </channel>
</rss>

