<?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: Divide column by reference point with conditions in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432960#M68263</link>
    <description>&lt;P&gt;Haha this was way easier than I thought it would be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 11:37:07 GMT</pubDate>
    <dc:creator>Vvvv</dc:creator>
    <dc:date>2021-11-04T11:37:07Z</dc:date>
    <item>
      <title>Divide column by reference point with conditions</title>
      <link>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432899#M68261</link>
      <description>&lt;P&gt;Hi. I have a problem I can't get my head around.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a new column which consists of another column divided by a reference point, but the problem is I have some conditions to include.&lt;/P&gt;&lt;P&gt;For simplicity I have added a generated datafile which I will refer to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is to take column Z and divide it by Z|X=c &lt;U&gt;within&lt;/U&gt; each Y-group. The Y-groups are as you can tell not the same size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO C is the reference point, and for all Y-groups (1-9) I want to take column Z, and divide it by Z|X=c.&lt;/P&gt;&lt;P&gt;That is, in the new column all values where X=c will be 1 and the others will be Z / (Z|X=c).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for not being able to formulate myself in clearer terms, for various reasons I can not show my real dataset and English is not my native tounge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:39:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432899#M68261</guid>
      <dc:creator>Vvvv</dc:creator>
      <dc:date>2023-06-10T23:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Divide column by reference point with conditions</title>
      <link>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432940#M68262</link>
      <description>&lt;P&gt;Here is one formula that works&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;currentY = :Y;
:Z / :Z[(Current Data Table() &amp;lt;&amp;lt; get rows where( :X == "c" &amp;amp; :Y == currentY ))[1]];&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-1636019077377.png" style="width: 493px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37263i27C068D9D1AFC067/image-dimensions/493x582?v=v2" width="493" height="582" role="button" title="txnelson_0-1636019077377.png" alt="txnelson_0-1636019077377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 09:44:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432940#M68262</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-11-04T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Divide column by reference point with conditions</title>
      <link>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432960#M68263</link>
      <description>&lt;P&gt;Haha this was way easier than I thought it would be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:37:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Divide-column-by-reference-point-with-conditions/m-p/432960#M68263</guid>
      <dc:creator>Vvvv</dc:creator>
      <dc:date>2021-11-04T11:37:07Z</dc:date>
    </item>
  </channel>
</rss>

