<?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: Issue with custom format equation in JMP column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Issue-with-custom-format-equation-in-JMP-column/m-p/707549#M89187</link>
    <description>&lt;P&gt;I'm not sure what &lt;STRONG&gt;char(value||":1")&lt;/STRONG&gt; is doing. I think you want &lt;STRONG&gt;char(value)||":1"&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;The # are the indicator that the value would not fit in the 12 character width. You might try 30 instead of 12, but if it is an error message it might be longer.&lt;/P&gt;
&lt;P&gt;It is possible the ratio of acetone/water is making a char value longer than 12. You might want to use the format function on that ratio before appending ":1". Char also has extra parameters:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10 is more than enough, but you can see the 4's effect." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59502i434B73E1489A9D52/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="10 is more than enough, but you can see the 4's effect." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;10 is more than enough, but you can see the 4's effect.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also add show(value), etc, in the formula and check the log. Something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(value); char(value,5,2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;would run the two statements, in order, and return the 2nd statement's result.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Dec 2023 02:53:47 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-12-10T02:53:47Z</dc:date>
    <item>
      <title>Issue with custom format equation in JMP column</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-custom-format-equation-in-JMP-column/m-p/707523#M89184</link>
      <description>&lt;P&gt;Hello - I'm playing around with the custom format for a numeric column, and for some reason I'm unable to get it to return the value in a way other than a bunch of hash symbols. I did the same format as the guidance in the &lt;A href="https://www.jmp.com/support/help/en/17.2/index.shtml#page/jmp/numeric-formats.shtml" target="_self"&gt;documentation&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Or if your data is in meters and you want to show it in kilometers with the unit, add the formula&lt;/SPAN&gt;&lt;SPAN class=""&gt;Char(:value / 1000) || " km"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ehchandler_1-1702159301093.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59500i4A5E4F8B3075A3DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ehchandler_1-1702159301093.png" alt="ehchandler_1-1702159301093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a formula column, but I tried it with a regular input column, and it did the same thing.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 22:04:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-custom-format-equation-in-JMP-column/m-p/707523#M89184</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-12-09T22:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with custom format equation in JMP column</title>
      <link>https://community.jmp.com/t5/Discussions/Issue-with-custom-format-equation-in-JMP-column/m-p/707549#M89187</link>
      <description>&lt;P&gt;I'm not sure what &lt;STRONG&gt;char(value||":1")&lt;/STRONG&gt; is doing. I think you want &lt;STRONG&gt;char(value)||":1"&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;The # are the indicator that the value would not fit in the 12 character width. You might try 30 instead of 12, but if it is an error message it might be longer.&lt;/P&gt;
&lt;P&gt;It is possible the ratio of acetone/water is making a char value longer than 12. You might want to use the format function on that ratio before appending ":1". Char also has extra parameters:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10 is more than enough, but you can see the 4's effect." style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59502i434B73E1489A9D52/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="10 is more than enough, but you can see the 4's effect." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;10 is more than enough, but you can see the 4's effect.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also add show(value), etc, in the formula and check the log. Something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;show(value); char(value,5,2)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;would run the two statements, in order, and return the 2nd statement's result.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 02:53:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issue-with-custom-format-equation-in-JMP-column/m-p/707549#M89187</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-12-10T02:53:47Z</dc:date>
    </item>
  </channel>
</rss>

