<?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: Can JMP Tabulate provide relative changes of parametrical data relative a reference point in time (such as pivot tables)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634775#M83286</link>
    <description>&lt;P&gt;Wow! Thank you Jarmo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´d never guess that Col Mean could be used in that way...&lt;/P&gt;&lt;P&gt;If´ve obviously missed some basics.&lt;/P&gt;&lt;P&gt;Many many thanks,&amp;nbsp; I´ve got some serious cleaning to to in my scripts :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Jessica&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 11:15:04 GMT</pubDate>
    <dc:creator>JCarlsson</dc:creator>
    <dc:date>2023-05-24T11:15:04Z</dc:date>
    <item>
      <title>Can JMP Tabulate provide relative changes of parametrical data relative a reference point in time (such as pivot tables)?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634328#M83229</link>
      <description>&lt;P&gt;I have a lot of data sets that i normally review with Excel Pivot Tables, but wonder if it would be possible to use tabulate tables in JMP to review similarily.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data looks like the example in the attached Excel table. Four devices are tested 5 times, at 0h, 1h,&amp;nbsp; 20h, 50h, 100h.&lt;/P&gt;&lt;P&gt;In each measurement parameter1 and parameter2 are measured. I would like a table that has data in tree columns&lt;/P&gt;&lt;P&gt;for each device/time: Data value, Diff in data value relative first measurement, Diff in data value in percent relative first measurement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today I import very large data sets into JMP (10-100 parameters, thousands of devices),I export data to Excel&lt;/P&gt;&lt;P&gt;for creating pivot tables that reorganize data with pivot tables to add the columns that show parametrical changes&lt;/P&gt;&lt;P&gt;and thereafter I import data back to JMP for plotting, degradation analysis, correlation plots etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can of course do this in JMP with scripts that splits the table, adds new column with formulas, stacks these, renames new columns, etc,&amp;nbsp; but that is a very inflexible way to do it and I haven´t found a way to do this dynamically without hard coding the test times.&lt;/P&gt;&lt;P&gt;The excel pivot tables are unfortunately much easier to work with.. but I don´t like the fact that I need to jump forth and back to Excel&lt;/P&gt;&lt;P&gt;with all the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas if this can be done in JMP with the tabulate tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 00:01:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634328#M83229</guid>
      <dc:creator>JCarlsson</dc:creator>
      <dc:date>2023-06-11T00:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP Tabulate provide relative changes of parametrical data relative a reference point in time (such as pivot tables)?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634717#M83277</link>
      <description>&lt;P&gt;I think you will have to add couple of formulas and then you can create tabulate/summary table like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1684912599324.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53035i39471D670167BC21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1684912599324.png" alt="jthi_0-1684912599324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would create a column to calculate the Zero value. Depending on your data something simpler (or more complicated) could be used&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Mean(
	If(Col Min(:Time, :Device, :Group, :Batch, :Name) == :Time,
		:Value,
		.
	),
	:Device, :Group, :Batch, :Name
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then create the calculation columns&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Value / :GroupZero - 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Value - :GroupZero&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the script JMP created to me (I would clean it up a lot and make it more robust)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Delete column: Column 7
Data Table("Data") &amp;lt;&amp;lt; Delete Columns(:Column 7);

// New column: Column 7
Data Table("Data") &amp;lt;&amp;lt; New Column("Column 7",
	Numeric,
	"Continuous",
	Format("Best", 12)
);

// Change column info: GroupZero
Data Table("Data"):Column 7 &amp;lt;&amp;lt; Set Name("GroupZero") &amp;lt;&amp;lt;
Set Formula(
	Col Mean(
		If(Col Min(:Time, :Device, :Group, :Batch, :Name) == :Time,
			:Value,
			.
		),
		:Device,
		:Group,
		:Batch,
		:Name
	)
);

// New column: Column 8
Data Table("Data") &amp;lt;&amp;lt; New Column("Column 8",
	Numeric,
	"Continuous",
	Format("Best", 12)
);

// Change column info: Diff to 0
Data Table("Data"):Column 8 &amp;lt;&amp;lt; Set Name("Diff to 0") &amp;lt;&amp;lt;
Set Formula(:Value - :GroupZero);

// New column: Column 9
Data Table("Data") &amp;lt;&amp;lt; New Column("Column 9",
	Numeric,
	"Continuous",
	Format("Best", 12)
);

// Change column info: Diff to 0perc
Data Table("Data"):Column 9 &amp;lt;&amp;lt; Set Name("Diff to 0perc") &amp;lt;&amp;lt; Format("Percent", 12, 2)
 &amp;lt;&amp;lt; Set Formula(:Value / :GroupZero - 1);

// Change column modeling type: Device
Data Table("Data"):Device &amp;lt;&amp;lt; Set Modeling Type("Nominal");

// Change column modeling type: Batch
Data Table("Data"):Batch &amp;lt;&amp;lt; Set Modeling Type("Nominal");

// Change column modeling type: Time
Data Table("Data"):Time &amp;lt;&amp;lt; Set Modeling Type("Nominal");

// Report snapshot: Data - Tabulate
Tabulate(
	Show Control Panel(0),
	Add Table(
		Column Table(Analysis Columns(:Value), Statistics(Mean)),
		Column Table(Analysis Columns(:Diff to 0, :Diff to 0perc), Statistics(Mean)),
		Row Table(Grouping Columns(:Device, :Group, :Batch, :Name, :Time))
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 07:24:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634717#M83277</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-05-24T07:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can JMP Tabulate provide relative changes of parametrical data relative a reference point in time (such as pivot tables)?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634775#M83286</link>
      <description>&lt;P&gt;Wow! Thank you Jarmo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´d never guess that Col Mean could be used in that way...&lt;/P&gt;&lt;P&gt;If´ve obviously missed some basics.&lt;/P&gt;&lt;P&gt;Many many thanks,&amp;nbsp; I´ve got some serious cleaning to to in my scripts :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Jessica&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:15:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-JMP-Tabulate-provide-relative-changes-of-parametrical-data/m-p/634775#M83286</guid>
      <dc:creator>JCarlsson</dc:creator>
      <dc:date>2023-05-24T11:15:04Z</dc:date>
    </item>
  </channel>
</rss>

