<?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: Multiplying values in a column. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58600#M32397</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

dt:Rect1[3] = dt:Rect1[1] * dt:Rect1[2];
dt:Rect2[3] = dt:Rect2[1] * dt:Rect2[2];
dt:Rect3[3] = dt:Rect3[1] * dt:Rect3[2];&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 May 2018 22:31:25 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-05-29T22:31:25Z</dc:date>
    <item>
      <title>Multiplying values in a column.</title>
      <link>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58586#M32394</link>
      <description>&lt;P&gt;I have a table as below.Need to find product of rows in each column to find the area of the rectangle.How can I do this?&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Shape &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Rect1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Rect2&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Rect3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Length&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;5 &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;10&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;15&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Breadth&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;6&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Area&amp;nbsp; &amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 30 May 2018 01:34:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58586#M32394</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-05-30T01:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying values in a column.</title>
      <link>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58600#M32397</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

dt:Rect1[3] = dt:Rect1[1] * dt:Rect1[2];
dt:Rect2[3] = dt:Rect2[1] * dt:Rect2[2];
dt:Rect3[3] = dt:Rect3[1] * dt:Rect3[2];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 May 2018 22:31:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58600#M32397</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-05-29T22:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying values in a column.</title>
      <link>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58613#M32405</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;has shown you a &lt;A href="https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58600/highlight/true#M32397" target="_self"&gt;response&lt;/A&gt;&amp;nbsp;that will give you exactly what you've asked for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I'm curious exactly what you're trying to do? Using a JMP data table like a spreadsheet is like using a wrench as a hammer; it will drive some nails but you're likely to skin your knuckles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A JMP data table is a more structured format than a spreadsheet. You'd be well advised to use it for what it's good for. In general, each row of a data table should represent a unique entity, similar to every other row, and each column should represent a single kind of measure on each of those entities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your example, take the data table you describe:&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="JMPScreenSnapz212.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10883iFAE3A56A1B87A288/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz212.png" alt="JMPScreenSnapz212.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and recognize that you've got your entities (Rectangles) in the columns&amp;nbsp;and your measures (Length, Breadth, Area) in the rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's the way the data was handed to you, no problem. Just reshape it using &lt;A href="https://www.jmp.com/support/help/14/transpose-rows-and-columns.shtml" target="_blank"&gt;Tables-&amp;gt;Transpose&lt;/A&gt; and you end up with this.&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="JMPScreenSnapz213.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10884i0018E1A0B7D3581A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz213.png" alt="JMPScreenSnapz213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice now you have one row for each Rectangle and one column for each measure. Now you can use the &lt;A href="https://www.jmp.com/support/help/14/formula-editor.shtml#" target="_blank"&gt;Formula Editor&lt;/A&gt; to multiply the Length and Breadth to compute the Area.&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="JMPScreenSnapz214.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10885iD0C3BCEE75B6AABC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz214.png" alt="JMPScreenSnapz214.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps explain a bit about why it wasn't obvious how to multiply rows. Math across rows doesn't make sense for a JMP data table. After all, what would &lt;A href="https://www.jmp.com/support/help/14/distributions.shtml#" target="_blank"&gt;Distribution&lt;/A&gt;&amp;nbsp;mean on data in that format?&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="JMPScreenSnapz215.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10886i71A4E49C88E52143/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz215.png" alt="JMPScreenSnapz215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 01:55:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiplying-values-in-a-column/m-p/58613#M32405</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-05-30T01:55:32Z</dc:date>
    </item>
  </channel>
</rss>

