Aggregate data based on a date-time column
Minimum Origin Version Required: Origin 2024
1. wtspivot -r 1 time:=[Book1]Sheet1!A data:=[Book1]Sheet1!A rows:=dayofmonth cols:=month method:=max;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Source Time | time |
Input Range |
|
Specify the range that will be used as the time source of the Pivot Table. | ||||||||||||||||||||||||||||
Source Data | data |
Input Range |
|
Specify the range of data values to be summarized. | ||||||||||||||||||||||||||||
Time Bucket for Rows | rows |
Input int |
|
Determine the time bucket shown in first column of the Pivot Table.
Option list:
| ||||||||||||||||||||||||||||
Time Period for Columns | cols |
Input int |
|
Determine the time period shown in column label row of the Pivot Table.
Option list:
| ||||||||||||||||||||||||||||
Secondary Time Period for Columns | cols2 |
Input int |
|
Determine the secondary time period shown in column label row of the Pivot Table.
Option list:
| ||||||||||||||||||||||||||||
Limit Columns to Range | limitcol |
Input int |
|
Check this checkbox to limit the output Date-and-Time columns to the input Date-and-Time range. Otherwise, output Date-and-Time columns will round to the ends of time period you specified. | ||||||||||||||||||||||||||||
Show Zeros when Empty | zero |
Input int |
|
Specify whether to show missing values in the pivot table as zeros. | ||||||||||||||||||||||||||||
Aggregate by | method |
Input int |
|
Specify the way to summarize the Source Data.
Option list:
| ||||||||||||||||||||||||||||
Custom | custom |
Input String |
|
Available only when Aggregate by is set to Custom. Specify the summarized method in the combo edit box. The triangle button next to the edit box provides some frequently-used statistics quantities. You can mix them and construct your own summarized method. | ||||||||||||||||||||||||||||
Output Result Table to | rd |
Output ReportData |
|
Specify where to output result table. |
This X-Function allows you to create a pivot table to visualize data summarization (of statistics) based on a date-time column