<?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 Is there anyway to make a column of negative numbers positive? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809477#M98994</link>
    <description>&lt;P&gt;I'm having an issue where I want my data to be shown as absolute values. This is a query (in snowflake) with over 200 variable columns (depending on the filters) so it makes it difficult to include every column in the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm ideally looking for a way to find all the columns with negative values and making them positive. (As I write this out, I guess I could transpose, place all the values in one column. Make an absolute column and transpose back?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&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="OhThatArabGuy_0-1730503143931.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69748i6C5CF35BF3FB7276/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OhThatArabGuy_0-1730503143931.png" alt="OhThatArabGuy_0-1730503143931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 23:22:20 GMT</pubDate>
    <dc:creator>OhThatArabGuy</dc:creator>
    <dc:date>2024-11-01T23:22:20Z</dc:date>
    <item>
      <title>Is there anyway to make a column of negative numbers positive?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809477#M98994</link>
      <description>&lt;P&gt;I'm having an issue where I want my data to be shown as absolute values. This is a query (in snowflake) with over 200 variable columns (depending on the filters) so it makes it difficult to include every column in the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm ideally looking for a way to find all the columns with negative values and making them positive. (As I write this out, I guess I could transpose, place all the values in one column. Make an absolute column and transpose back?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&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="OhThatArabGuy_0-1730503143931.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69748i6C5CF35BF3FB7276/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OhThatArabGuy_0-1730503143931.png" alt="OhThatArabGuy_0-1730503143931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 23:22:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809477#M98994</guid>
      <dc:creator>OhThatArabGuy</dc:creator>
      <dc:date>2024-11-01T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to make a column of negative numbers positive?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809478#M98995</link>
      <description>&lt;P&gt;It sounds like you are not sure how many data columns you will have. If the table will look like your example (but with more columns), I&amp;nbsp; think using the Tables &amp;gt; Stack command makes the most sense.&lt;/P&gt;
&lt;P&gt;Put all of your data columns into the Stack Columns field. Click OK. Right-click on the Data column header and choose New Formula Column &amp;gt; Transform &amp;gt; Absolute Value. With this new table now choose Tables &amp;gt; Split. Specify the Abs{Data] as the Split Columns. Put the Label column in the Split By field. Make sure the Drop All radio button is selected and click OK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have a table that looks like the original, but with no negative values.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 01:07:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809478#M98995</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2024-11-02T01:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there anyway to make a column of negative numbers positive?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809482#M98996</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3194"&gt;@Dan_Obermiller&lt;/a&gt;&amp;nbsp;method works well.&amp;nbsp; But if all of your columns are numeric, the following will convert all of the negative values in the data table to positive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

dt[0,0]=abs(dt[0,0]);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 05:20:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-anyway-to-make-a-column-of-negative-numbers-positive/m-p/809482#M98996</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-11-02T05:20:55Z</dc:date>
    </item>
  </channel>
</rss>

