<?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 How do I create a formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391214#M64151</link>
    <description>&lt;P&gt;I have a column with multiple values captures a different time points. How can I create a new column with a formula that divide the sample based on values above and below the median at baseline&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Time Point&lt;/TD&gt;&lt;TD&gt;Data per subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Baseline&lt;/TD&gt;&lt;TD&gt;169.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Days&lt;/TD&gt;&lt;TD&gt;180.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Months&lt;/TD&gt;&lt;TD&gt;188.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6 Months&lt;/TD&gt;&lt;TD&gt;174.98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1 Year&lt;/TD&gt;&lt;TD&gt;215&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Baseline&lt;/TD&gt;&lt;TD&gt;214.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Days&lt;/TD&gt;&lt;TD&gt;206.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Months&lt;/TD&gt;&lt;TD&gt;222.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6 Months&lt;/TD&gt;&lt;TD&gt;219.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1 Year&lt;/TD&gt;&lt;TD&gt;191.9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:49:53 GMT</pubDate>
    <dc:creator>sanchezpeinado</dc:creator>
    <dc:date>2023-06-11T11:49:53Z</dc:date>
    <item>
      <title>How do I create a formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391214#M64151</link>
      <description>&lt;P&gt;I have a column with multiple values captures a different time points. How can I create a new column with a formula that divide the sample based on values above and below the median at baseline&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Time Point&lt;/TD&gt;&lt;TD&gt;Data per subject&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Baseline&lt;/TD&gt;&lt;TD&gt;169.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Days&lt;/TD&gt;&lt;TD&gt;180.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Months&lt;/TD&gt;&lt;TD&gt;188.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6 Months&lt;/TD&gt;&lt;TD&gt;174.98&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1 Year&lt;/TD&gt;&lt;TD&gt;215&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Baseline&lt;/TD&gt;&lt;TD&gt;214.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30 Days&lt;/TD&gt;&lt;TD&gt;206.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3 Months&lt;/TD&gt;&lt;TD&gt;222.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6 Months&lt;/TD&gt;&lt;TD&gt;219.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1 Year&lt;/TD&gt;&lt;TD&gt;191.9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:49:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391214#M64151</guid>
      <dc:creator>sanchezpeinado</dc:creator>
      <dc:date>2023-06-11T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391285#M64159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/25343"&gt;@sanchezpeinado&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There's a few different ways you can do this. Ultimately, you'll want to do a conditional formula based on the values of the baselines. However, your data table is not setup like it really should be for JMP. Looking at your columns, it looks like you should also have another column, maybe "product" or something like that since your "time point" column repeats some entries with a new baseline value. Something like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_2-1623079692393.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33333i44A2214541BD286E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_2-1623079692393.png" alt="DiedrichSchmidt_2-1623079692393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You would then want to split your data table using the Product column and split the other two columns. The new table will look like the one below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_3-1623079769629.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33334i5C273DD328781E44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_3-1623079769629.png" alt="DiedrichSchmidt_3-1623079769629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The last two columns in this table are formulas that use a conditional IF statement. Each one references the first cell (baseline) for each "product". To reference a specific cell of a column, after the column name type [], left square bracket followed by right square bracket. You'll then put 1 in there for the first cell of the respective column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_5-1623079860684.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33336i918A8149D4DBA244/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_5-1623079860684.png" alt="DiedrichSchmidt_5-1623079860684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_6-1623079869762.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33337iEA06EFEB85C96B03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_6-1623079869762.png" alt="DiedrichSchmidt_6-1623079869762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;These formulas are set to return a numerical value -1 for below the baseline, 1 for above the baseline. You can change this to whatever you want, text or 0/1 or whatever.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is just one way to do it, there are other ways. You'll definitely want to change the structure of your data table for JMP though. Having multiple baseline entries in a single column will make creating a formula rather difficult.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 15:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391285#M64159</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-06-07T15:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a formula</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391330#M64165</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 16:38:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-create-a-formula/m-p/391330#M64165</guid>
      <dc:creator>sanchezpeinado</dc:creator>
      <dc:date>2021-06-07T16:38:05Z</dc:date>
    </item>
  </channel>
</rss>

