Example
An example Data Stream can be found below that demonstrates how to use this Transformation to add two new fields: a conversion to Fahrenheit and a 'hot' indicator.
Refer to configuration to understand all configuration options of this Agent.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Example Expressions
Country, Location, Unit and Vibration in the examples below are attribute names.
Strings
Create a new string using data points from the stream
Add a "+" sign to add string values together.
Create a hard-coded new string value
If-statement
Using the short-hand If-statement the following reads “If the vibration is larger than 9000 then value is High otherwise it’s Medium”
Date and Time
Current date and time
Add two days to the current date and time
Larger than
This will return true or false. Please note that the Data Type needs to be set to Boolean.
Math Library
Any C# Math library function can be used to alter data as needed. Any method within the library can be used without issue.
Square Root
Power of 3
Round to 4 decimal Places
Supported Operators
Operators precedence is respected following C# rules (Operator precedence and associativity).
Last updated