---
title: "MiscCalcEvent"
id: "misccalcevent"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/misccalcevent"
updated: 2026-07-31T14:55:04Z
---

# MiscCalcEvent

**Sepasoft MES Module Suite**

### MiscCalcEvent

The miscellaneous calculation event object is fired whenever the custom calculations through the system.mes.spc.analysis.executeMiscCalculation(settings, miscCalcName) script function is called. If calculations other than the built-in calculations, such as PPM, are needed, then they can be defined in the 'Misc.' subfolder under SPC Calculations in the MES Scripts.
![](/resources/Storage/user-manual/misccalcevent/image2022-12-27_9-38-13.png)
#### Properties

getData()
Description

Gets resultant dataset after the miscellaneous calculation.

Syntax

**getData()**

* Parameters

None

* Returns

AnalysisDataset data - The results of the miscellaneous calculation.

getMeasurementCount()
Description

Gets the number of measurements associated with this SPC data.
 
Syntax

**getMeasurementCount()**

* Parameters

None

* Returns

[int](/articles/user-manual/Data-Types-and-Formats) measurementCnt - The measurement counts corresponding to this SPC data.

getSettings()
Description

Returns the SPC settings associated with this calculation event. An instance of a [SPCSettings](/articles/user-manual/SPC-Settings) object that defines the samples to perform the calculation.
 
Syntax

**getSettings()**

* Parameters

None

* Returns

[SPCSettings](/articles/user-manual/SPC-Settings) spcSettings - The settings for miscellaneous calculation.

getValue(key)
Description

Returns the value from the resultant dataset corresponding to the key parameter.
 
Syntax

**getValue(key)**

* Parameters

[String](/articles/user-manual/Data-Types-and-Formats) key - The key to return the value for.

* Returns

Object value - The value corresponding to the key specified.

setValue(key, value)
Description

Sets the value for the miscellaneous calculation of SPC data.
 
Syntax

**setValue(key, value)**

* Parameters

[String](/articles/user-manual/Data-Types-and-Formats) key - The key to set the data for.

Object value - The value to set the data for.

* Returns

Nothing

**Sepasoft MES Module Suite**