<?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: Normalize a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923802#M108210</link>
    <description>No, I want to find the formula for D. In my example I just manually typed in the numbers for D but I want a formula</description>
    <pubDate>Tue, 13 Jan 2026 15:18:05 GMT</pubDate>
    <dc:creator>dnh234589</dc:creator>
    <dc:date>2026-01-13T15:18:05Z</dc:date>
    <item>
      <title>Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923593#M108189</link>
      <description>&lt;P&gt;TLDR: How do I normalize a column to itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached. I have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Column A = 0,1,2,3. Maybe think of this as like an ID number&lt;/LI&gt;
&lt;LI&gt;Column B. Think of this as a timestamp&lt;/LI&gt;
&lt;LI&gt;Column C. This is the data&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now I want column D to have the data in Column C, ONLY when B=1.&lt;/P&gt;
&lt;P&gt;As you can see in the attached file, I have manually copy-pasted the yellow cells from C into D. Pasted over and over.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-12 131239.png" style="width: 354px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90807iFB325F649412ECAF/image-dimensions/354x288?v=v2" width="354" height="288" role="button" title="Screenshot 2026-01-12 131239.png" alt="Screenshot 2026-01-12 131239.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore when I do D/C, I'm basically normalizing the whole of column C, to these special yellow values. This is the reason I'm doing all this, is to find D/C. So a value of 0.9 in this column means C is lower than the yellow C's, and 1.1 means it's higher than the yellow C's.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, long story short, what is the formula that goes in D, to be able to get the yellow values?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 21:15:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923593#M108189</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-12T21:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923604#M108190</link>
      <description>&lt;P&gt;edit&lt;/P&gt;
&lt;P&gt;Sorry, I need to pay more attention.&amp;nbsp; You weren't asking how to get D/C.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Select C and D, then right click.&amp;nbsp; New Formula Column &amp;gt; Combine &amp;gt; Ratio (reverse order)&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_0-1768253266140.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90808i3876F4159BB1EFEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_0-1768253266140.png" alt="mmarchandFSLR_0-1768253266140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 21:33:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923604#M108190</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-01-12T21:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923605#M108191</link>
      <description>&lt;P&gt;Sorry if I'm still misunderstanding, but if you want D to be missing when B is not 1 and D to have the values of C when B is one, try this formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Choose( :B, :C, . )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jan 2026 21:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923605#M108191</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-01-12T21:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923607#M108193</link>
      <description>&lt;P&gt;Thanks for your answer. Not exactly. I simply want a formula in column D, that will reproduce those numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That formula will take the yellow cells in C, and apply it to the entire column D. So that now the entire column D is the repeated yellow cells as shown. (Presumably in the formula somewhere, we would hardcode B=1.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably I confused things by manually typing in D in the example. I manually typed in those numbers, but I want a formula that will populate D for me.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 00:31:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923607#M108193</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-13T00:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923609#M108194</link>
      <description>&lt;P&gt;Thanks for your answer, but here is a comparison of your answer, and what I want which is just a formula for D. So compare the final column and D and you'll see they are not the same.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-12 163235.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90809iA9484A095B1E3106/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2026-01-12 163235.png" alt="Screenshot 2026-01-12 163235.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 00:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923609#M108194</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-13T00:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923636#M108195</link>
      <description>&lt;P&gt;Isn'1 the formula just&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :B == 1, 1, :D / :C )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1768274651706.png" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90825i2D2FD633AB317CD1/image-dimensions/640x376?v=v2" width="640" height="376" role="button" title="txnelson_0-1768274651706.png" alt="txnelson_0-1768274651706.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 03:24:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923636#M108195</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-13T03:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923734#M108202</link>
      <description>&lt;P&gt;I'm sure there is a way to script a solution, but I would instead propose that switching from your Tall data format to a Wide data format makes more sense in this case. When using JMP formulas, it is always easiest when all the terms needed for that calculation are in the same row. (Sometimes this is impossible, then clever scripting is needed. But in this case, it is possible.)&lt;/P&gt;
&lt;P&gt;My suggestion: Split the data table so that it is in a Wide format, with a separate Column for each "B". Then normalizing (diving by C) becomes easy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_1-1768300938286.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90892i4572CC40C2463AD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_1-1768300938286.png" alt="christianz_1-1768300938286.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can recode the column names to make them a bit more readable:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_2-1768300974359.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90893i9644AC87E5061289/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_2-1768300974359.png" alt="christianz_2-1768300974359.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After adding the new formula columns, you end up with:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_4-1768301435801.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90896i753F9001033ECFC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_4-1768301435801.png" alt="christianz_4-1768301435801.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Would this work for you? I attached the table for your reference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 10:52:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923734#M108202</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2026-01-13T10:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923742#M108204</link>
      <description>&lt;P&gt;Use a grouped Col aggregation like &lt;FONT face="courier new,courier"&gt;col Median()&lt;/FONT&gt; to define the values of column D as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col median(if (:B==1,:C), :A)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also skip Column D and directly calculate &lt;STRONG&gt;:C/Denominator&lt;/STRONG&gt;.&lt;BR /&gt;There is an AddIn in the Marketplace which does such Normalization automatically.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 11:45:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923742#M108204</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-13T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923802#M108210</link>
      <description>No, I want to find the formula for D. In my example I just manually typed in the numbers for D but I want a formula</description>
      <pubDate>Tue, 13 Jan 2026 15:18:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923802#M108210</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-13T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923804#M108211</link>
      <description>&lt;P&gt;what is wrong with&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Col median(if (:B==1,:C), :A)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:24:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923804#M108211</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-01-13T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923836#M108214</link>
      <description>&lt;P&gt;Hogi, This is the solution! Thanks! A little weird that I have to use a "median" function since there is no median in sight, but I see what it's doing. Thanks! I'll also check out the Marketplace Addin&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 20:04:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923836#M108214</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-13T20:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Normalize a column</title>
      <link>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923837#M108215</link>
      <description>&lt;P&gt;Thanks! This does work, but is a bit unweildy for a human to view when I have a large dataset. Hogi's answer is simpler but thanks for the tip anyway!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 20:05:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Normalize-a-column/m-p/923837#M108215</guid>
      <dc:creator>dnh234589</dc:creator>
      <dc:date>2026-01-13T20:05:18Z</dc:date>
    </item>
  </channel>
</rss>

