A*B*C (DMATH)
  • 1 Minute to read
  • Dark
    Light
  • PDF

A*B*C (DMATH)

  • Dark
    Light
  • PDF

Article summary

DMath: A*B*C

Multiplies A, B and C together

Purpose

Use this function to:
  • Calculate the product of factors A, B and C
  • Multiple one field by another

Return Value

PropertyValue
FieldTypeDouble
FieldSizeLow / Med / High / Continuous
DataTypeDiscrete / Continuous
DataSizeShort / Integer / LongInteger / Double
Example Return Value: X*.XXXXXX....-X*.XXXXX

e.g.  21.000000, 98754654.123456, -5.000000, -654.320000


Parameters

ParameterJSONDescription
Table“targetTable”: “MyTableName”The target table on which the new field will be created
Filter“dataset”: {DataSet_JSON}Optional.   If a filter is applied, records not in the filter recordset will be returned as null.
Math Function“p1”: “A*B*C”A*B*C
A“p2”: “NumericFieldName”
“p2”: “#N*.N*”
Required.  First Factor
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: Integer, Double
  • Fixed Value:  #N*    e.g. #201596,    #-87
  • Fixed Value: #N*.N* e.g. #201596.05,    #-87.98
B“p3”: “NumericFieldName”
“p3”: “#N*.N*”
Required.  Second factor
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: Integer, Double
  • Fixed Value:  #N*    e.g. #201596,    #-87
  • Fixed Value: #N*.N* e.g. #201596.05,    #-87.98
C“p4”: “NumericFieldName”
“p4”: “#N*.N*”
Required. Third Factor
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: Integer, Double
  • Fixed Value:  #N*    e.g. #201596,    #-87
  • Fixed Value: #N*.N* e.g. #201596.05,    #-87.98
Treat Null as Zero"nullIsZero": true
"nullIsZero": false

True/False.
Default = False
If true, then any null values in the input fields will be treated as if they have a value of 0.

JSON Sample


Usage Notes

See Also:   

  • A*B*C (LMATH)
  • (A*B)  (DMATH)
  • (A*B)+(C*D)  (DMATH)
  • (A*B)+(C*D)+(E*F)  (DMATH)
  • Mathematical Expression Field
  • DMATH Overview

Example

ExampleDetails
DescriptionCalculate predicted 10 year spend from averages
Input
  • Table: = [customer]
  • Filter: = [No Filter]
  • Function: = DMath
  • Math Function = A*B*C
  • A:= [customer ].[AvgTransPerYear]
  • B:= [customer ].[avgl_spend]
  • C:= [customer ].[#10]
  • Name: = PredictedSpend_10year
Sample





Was this article helpful?

What's Next