---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# TransformPart - Scoped, Global

# TransformPart - Scoped, Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 12 minutes to read

The TransformPart API provides methods to specify details of the transform to be done.

You can call this class in scoped and global server scripts. When using the TransformPart class, use the `sn_clotho` namespace identifier.

There is no constructor for this class. TransformPart objects are returned by many Transformer and TransformPart methods.

The methods of this class define the transforms to be done. The actual transformation is done when the execute() method is called on the Transformer object.  
The order the TransformPart methods are called is important.

* You must call the metric() method before calling a transform method.
* You cannot use the metric() or groupBy() methods after calling a transform method.
* Intermediate transforms are not returned in a result unless the collect() method is called for the intermediate result you want.

      // where tp is a TransformPart object
      // example 1
      tp.avg().add(2);
      var tr = tp.execute(); 
      // tr contains avg+2, but not avg
       
      // example 2
      tp.avg().add(2);
      tp.avg();
      var tr = tp.execute(); 
      // tr contains both avg and avg + 2

      // example 3
      tp.avg().collect().add(2);
      var tr = tp.execute(); 
      // tr contains both avg and avg + 2

{#TransformPartScopedAPI__ul_xt2_g2k_4bb}

This class is part of the MetricBase application.

## TransformPart - add(Number constant) {#ariaid-title2}

Add the specified number to the value in each time stamp.
{#TP-add_N__table_qr3_x1z_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| constant | Number | The number to add to the value in each time stamp. |
[Table 1. Parameters]

{#TP-add_N__table_qr3_x1z_mbb} {#TP-add_N__table_rr3_x1z_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 2. Returns]

{#TP-add_N__table_rr3_x1z_mbb}

## TransformPart - avg() {#ariaid-title3}

Aggregate the selected metric series into one series containing the average value for
each time stamp.
{#TP-avg__table_adg_tzy_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#TP-avg__table_adg_tzy_mbb} {#TP-avg__table_bdg_tzy_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 4. Returns]

{#TP-avg__table_bdg_tzy_mbb}

## TransformPart - bottom(Number count) {#ariaid-title4}

Create a result set that for each time stamp returns specified number of bottom values.
This method results in 'count' number of series. Each value retains the label of its source
series.
{#TP-bottom_N__table_hbn_dgj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| count | Number | The number of series to return. The series are labeled 0 to count - 1. |
[Table 5. Parameters]

{#TP-bottom_N__table_hbn_dgj_4bb} {#TP-bottom_N__table_ibn_dgj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 6. Returns]

{#TP-bottom_N__table_ibn_dgj_4bb}

## TransformPart - ceil(Number ceiling) {#ariaid-title5}

Replace the value in any time stamp that is greater than the specified value with the
specified value.
{#TP-ceil_N__table_tqr_c5p_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| ceiling | Number | The maximum allowed value for any time stamp. |
[Table 7. Parameters]

{#TP-ceil_N__table_tqr_c5p_4bb} {#TP-ceil_N__table_uqr_c5p_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 8. Returns]

{#TP-ceil_N__table_uqr_c5p_4bb}

## TransformPart - collect() {#ariaid-title6}

Mark this transform for collection.
Transforms that are part of a chain, but not the last transform, are by default not
collected. A collected transform is returned as part of the transform result.
{#TP-collect__table_ovh_wxy_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 9. Parameters]

{#TP-collect__table_ovh_wxy_mbb} {#TP-collect__table_pvh_wxy_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 10. Returns]

{#TP-collect__table_pvh_wxy_mbb}

## TransformPart - count() {#ariaid-title7}

Aggregate the selected metric series into one series containing the number of values
for each time stamp.
{#TP-count__table_u43_23z_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 11. Parameters]

{#TP-count__table_u43_23z_mbb} {#TP-count__table_v43_23z_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 12. Returns]

{#TP-count__table_v43_23z_mbb}

## TransformPart - div(Number constant) {#ariaid-title8}

Divide the value in each time stamp by the specified number.
{#TP-div_N__table_asd_mkz_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| constant | Number | The number by which to divide the value of each time stamp. |
[Table 13. Parameters]

{#TP-div_N__table_asd_mkz_mbb} {#TP-div_N__table_bsd_mkz_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 14. Returns]

{#TP-div_N__table_bsd_mkz_mbb}

## TransformPart - filter(Object aggregator, Object duration) {#ariaid-title9}

Create a series using the specified aggregator for the specified time.
{#TP-filter_O_O__table_rn2_btj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| aggregator | Object | Can be: * AVG * CHISQUARE * LAST * MAX * MEDIAN * MIN * STDDEV {#TP-filter_O_O__ul_jdr_lqy_1gb} For definitions of these options, see [MetricBase transforms](https://www.servicenow.com/docs/access?context=metricbase-transforms&version=xanadu&pubname=xanadu-now-intelligence&ft:locale=en-US). |
| duration | Object | Time period for the series. |
[Table 15. Parameters]

{#TP-filter_O_O__table_rn2_btj_4bb} {#TP-filter_O_O__table_sn2_btj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | TransformPart object that you can use to specify transform characteristics. |
[Table 16. Returns]

{#TP-filter_O_O__table_sn2_btj_4bb}

## TransformPart - floor(Number floor) {#ariaid-title10}

Replace the value in any time stamp that is less than the specified value with the
specified value.
{#TP-floor_N__table_ahl_gvp_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| floor | Number | The minimum value for any time stamp. |
[Table 17. Parameters]

{#TP-floor_N__table_ahl_gvp_4bb} {#TP-floor_N__table_bhl_gvp_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 18. Returns]

{#TP-floor_N__table_bhl_gvp_4bb}

## TransformPart - fractiles(Array fractions) {#ariaid-title11}

Create series made up of the value that the specified percentage of values is below.
Returns a series for each fraction in the specified array.
The value in a time stamp in a returned series is the value at which the specified
fraction of the samples for that time stamp is below. For example, if the fraction is 0.5,
then the value in the time stamp is the value where half the values in the input series are
below (median).
{#TP-fractiles_A__table_pcb_t3y_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| fractions | Array of numbers | The fractions to use on the input series. |
[Table 19. Parameters]

{#TP-fractiles_A__table_pcb_t3y_4bb} {#TP-fractiles_A__table_qcb_t3y_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. Contains one series for each fraction specified. |
[Table 20. Returns]

{#TP-fractiles_A__table_qcb_t3y_4bb}  

    // returns a single series containing the median for each time stamp, which
    // means that half a time stamp's values are below the returned value 
    fractiles([.5]) 
    // returns four series, one series for each of the 25%, 50%, 75%, and 100% quartiles 
    fractiles([.25, .5, .75, 1])
    // returns the median, 95% percentile, the max value
    fractiles([.50, .95, 1]) 

## TransformPart - getResult() {#ariaid-title12}

Return the part of the result relevant to this transform.
The collect() method must be called before the
execute() method, and the execute() method must be
called before calling the getResult() method.
{#TP-getResult__table_ur2_tyy_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 21. Parameters]

{#TP-getResult__table_ur2_tyy_mbb} {#TP-getResult__table_vr2_tyy_mbb__entry__2}

| Type | Description |
|-|-|
| TransformResult | Contains the transform results associated with this part of the transform. |
[Table 22. Returns]

{#TP-getResult__table_vr2_tyy_mbb}  

    var t = new sn_clotho.Transformer(drones);
    t.metric("mb_demo_mt_altitude");
    var avgTform = t.avg();
    t.execute();
    var avgTformResult = avgTform.getResult();

## TransformPart - groupBy(String field) {#ariaid-title13}

Specify a field by which to group data. To specify multiple fields, run successive
calls individually.
Note:  
The groupBy() method cannot be called after a transform has been run.
{#TP-groupBy_S__table_l31_xvy_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| field | String | Name of a field in the table by which to group the transform results. |
[Table 23. Parameters]

{#TP-groupBy_S__table_l31_xvy_mbb} {#TP-groupBy_S__table_m31_xvy_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 24. Returns]

{#TP-groupBy_S__table_m31_xvy_mbb}  
The following example shows how to group altitude average metrics by fleet and model
fields.

    transformer.groupBy("fleet,model").metric("mb_demo_mt_altitude").avg().label('%g:fleet: - %g:model:');

    var transformPart = transformer.groupBy("fleet,model")

    transformPart.metric("mb_demo_mt_altitude").avg().label('%g:fleet: - %g:model:');

## TransformPart - interpolate(Object count) {#ariaid-title14}

Create a data value for a NaN data item by interpolating from adjacent data values.
{#TP-interpolate_O__table_bhx_h1j_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| count | Object | Specifies the number of data samples in each direction to check for a non NaN value. If if a non NaN value is not found, NaN is used. |
[Table 25. Parameters]

{#TP-interpolate_O__table_bhx_h1j_4bb} {#TP-interpolate_O__table_chx_h1j_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 26. Returns]

{#TP-interpolate_O__table_chx_h1j_4bb}

## TransformPart - iqr() {#ariaid-title15}

Perform an Interquartile range transform.
Creates a result set of four series.

* IQR, the median of all entries
* IQR range, below Q1-1.5IQR, or above Q3+1.5IQR
* Q1, the median of the smallest half of entries
* Q3, the median of the largest half of entries
{#TP-iqr__ul_jdr_2r1_scb}
{#TP-iqr__table_stq_5vp_qcb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 27. Parameters]

{#TP-iqr__table_stq_5vp_qcb} {#TP-iqr__table_ttq_5vp_qcb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 28. Returns]

{#TP-iqr__table_ttq_5vp_qcb}

## TransformPart - label(String label) {#ariaid-title16}

Add a label for the resulting series.
{#TP-label_S__table_jg2_rhz_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| label | String | The label for the transform results. |
[Table 29. Parameters]

{#TP-label_S__table_jg2_rhz_mbb} {#TP-label_S__table_kg2_rhz_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 30. Returns]

{#TP-label_S__table_kg2_rhz_mbb}

## TransformPart - limit(Object count) {#ariaid-title17}

Returns at most the specified number of values, starting at the most recent non-NaN
value.
{#TP-limit_O__table_fcb_jwp_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| count | Object | A number of time stamps. |
[Table 31. Parameters]

{#TP-limit_O__table_fcb_jwp_4bb} {#TP-limit_O__table_gcb_jwp_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 32. Returns]

{#TP-limit_O__table_gcb_jwp_4bb}

## TransformPart - log(Number base) {#ariaid-title18}

Run a logarithm on the value in each time stamp where the result is the log of the
specified base for the time stamp value.
{#TP-log_N__table_mjr_hbf_nbb__entry__3}

| Name | Type | Description |
|-|-|-|
| base | Number | The base for the logarithm calculation. |
[Table 33. Parameters]

{#TP-log_N__table_mjr_hbf_nbb} {#TP-log_N__table_njr_hbf_nbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 34. Returns]

{#TP-log_N__table_njr_hbf_nbb}

## TransformPart - max() {#ariaid-title19}

Returns a series with the maximum value for each time stamp.
{#TP-max__table_ps4_glj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 35. Parameters]

{#TP-max__table_ps4_glj_4bb} {#TP-max__table_qs4_glj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 36. Returns]

{#TP-max__table_qs4_glj_4bb}

## TransformPart - median() {#ariaid-title20}

Create a series containing the median of values for each time stamp across a set of
series.
If there are n series in the TranformPart object, then if n is odd, the (n / 2 + 1) value
for a time stamp is the median. If n is even, the average of the (n / 2) and (n / 2 + 1)
values for a time stamp is the median.
{#TP-median__table_lxy_jqj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 37. Parameters]

{#TP-median__table_lxy_jqj_4bb} {#TP-median__table_mxy_jqj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 38. Returns]

{#TP-median__table_mxy_jqj_4bb}

## TransformPart - metric(String metric) {#ariaid-title21}

Specify the metric field to be used in the transform.
You can specify multiple metrics to be used in the transform. The
metric() method cannot be called after the transform has been run.
{#TP-metric_S__table_lct_qwy_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| metric | String | Name of the metric field. |
[Table 39. Parameters]

{#TP-metric_S__table_lct_qwy_mbb} {#TP-metric_S__table_mct_qwy_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 40. Returns]

{#TP-metric_S__table_mct_qwy_mbb}

## TransformPart - min() {#ariaid-title22}

Returns a series with the minimum value for each time stamp.
{#TP-min__table_jgw_5kj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 41. Parameters]

{#TP-min__table_jgw_5kj_4bb} {#TP-min__table_kgw_5kj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 42. Returns]

{#TP-min__table_kgw_5kj_4bb}

## TransformPart - mul(Number constant) {#ariaid-title23}

Multiply the value in each time stamp by the specified number.
{#TP-mul_N__table_zbz_ljz_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| constant | Number | The number by which to multiply the value of each time stamp. |
[Table 43. Parameters]

{#TP-mul_N__table_zbz_ljz_mbb} {#TP-mul_N__table_acz_ljz_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 44. Returns]

{#TP-mul_N__table_acz_ljz_mbb}

## TransformPart - partition(String aggregator, GlideDateTime duration, GlideDateTime
base) {#ariaid-title24}

Partition the series into intervals of the same duration.
{#TP-partition_S_GDT_GDT__table_sgw_wfy_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| aggregator | String | The aggregator to use. Can be min, max, avg, or last. |
| duration | GlideDateTime or an ISO 8601 formatted string | The interval length. |
| base | GlideDateTime or an ISO 8601 formatted string | The zero offset for partitioning. For example, if you partition by day (24h), then set the base to Monday at midnight in your time zone. If you partition by 30 days, then set the base to 1st day of the most recent month. |
[Table 45. Parameters]

{#TP-partition_S_GDT_GDT__table_sgw_wfy_4bb} {#TP-partition_S_GDT_GDT__table_tgw_wfy_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 46. Returns]

{#TP-partition_S_GDT_GDT__table_tgw_wfy_4bb}

## TransformPart - resample(Number count) {#ariaid-title25}

Specify the number of data points to include in the result.
Aligns a series with a fixed number of data points in the given range. If the original
series has more data points than specified, multiple values are averaged. If the original
series has fewer data points than specified, data points are added by interpolating data
points between existing data points.

You can use the resample() method to reduce the number of samples in the
result to more closely match the number of samples you are going to display.
{#TP-resample_N__table_rz3_hp3_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| count | Number | The number of samples to include in the result. |
[Table 47. Parameters]

{#TP-resample_N__table_rz3_hp3_4bb} {#TP-resample_N__table_sz3_hp3_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 48. Returns]

{#TP-resample_N__table_sz3_hp3_4bb}

## TransformPart - resample(Number min, Number max) {#ariaid-title26}

Specify the minimum and maximum number of samples to include in the result.
This method is useful when you are showing series with different time periods
(granularities).

This method determines the average number of points per series and if that fits between the
specified minimum and maximum, each series is resampled to that average number of points. If
the calculated average is greater than the maximum specified or smaller than the minimum
specified, the specified maximum or minimum is used.
{#TP-resample_N_N__table_jqw_ygj_qcb__entry__3}

| Name | Type | Description |
|-|-|-|
| min | Number | The minimum number of samples to include in the result. If not enough samples are available, interpolation is used to create samples. |
| max | Number | The maximum number of samples to include in the result. |
[Table 49. Parameters]

{#TP-resample_N_N__table_jqw_ygj_qcb} {#TP-resample_N_N__table_kqw_ygj_qcb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 50. Returns]

{#TP-resample_N_N__table_kqw_ygj_qcb}

## TransformPart - resample(String aggregator, Number numValues) {#ariaid-title27}

Specify an aggregator to use to create a result set of the specified size. The
aggregator can be LAST, AVG, MIN, or MAX.
You can use the resample() method to reduce the number of samples in the
result to more closely match the number of samples you are going to display.
{#TP-resample_S_N__table_cfh_23j_qcb__entry__3}

| Name | Type | Description |
|-|-|-|
| aggregator | String | Can be LAST, AVG, MIN, or MAX. |
| numValues | Number | The number of samples to include in the result set. When the number of values requested is greater than the number of values in the data for the requested time period, interpolate() is used to add values between existing points to reach the requested number of values. |
[Table 51. Parameters]

{#TP-resample_S_N__table_cfh_23j_qcb} {#TP-resample_S_N__table_dfh_23j_qcb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 52. Returns]

{#TP-resample_S_N__table_dfh_23j_qcb}

## TransformPart - resample(String aggregator, GlideDuration duration) {#ariaid-title28}

Specify an aggregator to use to create a result set over the specified duration. The
aggregator can be LAST, AVG, MIN, or MAX.
Resamples the underlying data to the requested period.

* When the time series is stored at a 1 minute interval and `resample(AVG, new
  GlideDuration("1:00"))` is called, the result will have one data point at every hour reflecting the average of the previous 60 values.
* When the period requested is smaller than the period of the data, interpolation is used to calculate the intervening data points.
{#TP-resample_S_GD__ul_y3z_pq1_scb}

You can use the resample() method to reduce the number of samples in the
result to more closely match the number of samples you are going to display.
{#TP-resample_S_GD__table_pjc_gjj_qcb__entry__3}

| Name | Type | Description |
|-|-|-|
| aggregator | String | Can be LAST, AVG, MIN, or MAX. |
| duration | GlideDuration | The time period for the result set. |
[Table 53. Parameters]

{#TP-resample_S_GD__table_pjc_gjj_qcb} {#TP-resample_S_GD__table_qjc_gjj_qcb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 54. Returns]

{#TP-resample_S_GD__table_qjc_gjj_qcb}

## TransformPart - round(Number precision) {#ariaid-title29}

Round the value in each time stamp to the specified precision.
Performs this calculation on each value.

    (v / precision) * precision

{#TP-round_N__table_nkh_tsp_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| precision | Number | The value to be used in the rounding calculation. |
[Table 55. Parameters]

{#TP-round_N__table_nkh_tsp_4bb} {#TP-round_N__table_okh_tsp_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 56. Returns]

{#TP-round_N__table_okh_tsp_4bb}

## TransformPart - stddev() {#ariaid-title30}

Create a series containing the standard deviation of values for each time stamp across
a set of series.
{#TP-stddev__table_ayk_4pj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 57. Parameters]

{#TP-stddev__table_ayk_4pj_4bb} {#TP-stddev__table_byk_4pj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 58. Returns]

{#TP-stddev__table_byk_4pj_4bb}

## TransformPart - sub(Object constant) {#ariaid-title31}

Subtract the specified number from the value in each time stamp.
{#TP-sub_O__table_ff2_w3z_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| constant | Object | The number to subtract from the value in each time stamp. |
[Table 59. Parameters]

{#TP-sub_O__table_ff2_w3z_mbb} {#TP-sub_O__table_gf2_w3z_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 60. Returns]

{#TP-sub_O__table_gf2_w3z_mbb}

## TransformPart - sum() {#ariaid-title32}

Aggregate the selected metric series into one series containing the sum of all values
for each time stamp.
{#TP-sum__table_aql_ygz_mbb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 61. Parameters]

{#TP-sum__table_aql_ygz_mbb} {#TP-sum__table_bql_ygz_mbb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 62. Returns]

{#TP-sum__table_bql_ygz_mbb}

## TransformPart - top(Number count) {#ariaid-title33}

Create a result set that for each time stamp returns the specified number of top
values. This method results in 'count' number of series. Each value retains the label of its
source series.
{#TP-top_N__table_rfx_wcj_4bb__entry__3}

| Name | Type | Description |
|-|-|-|
| count | Number | The number of series to return. The series are labeled 0 to count - 1. |
[Table 63. Parameters]

{#TP-top_N__table_rfx_wcj_4bb} {#TP-top_N__table_sfx_wcj_4bb__entry__2}

| Type | Description |
|-|-|
| TransformPart | A TransformPart object that can be used to specify transform characteristics. |
[Table 64. Returns]

{#TP-top_N__table_sfx_wcj_4bb}

