Skip to main content
Skip table of contents

How do I create a calculation for a reading attribute?

Formulae are supported at a reading view level only and need to be configured for each reading view differently.

Formulae will only work when the attribute has isCalculated = TRUE assigned.

Syntax

Function (arguments, value)

Picklist value calculation example

IF([CathodicProtection].[CPTTaskType]==22836,22943,If([CathodicProtection].[Potential],If([CathodicProtection].[PotentialmV] >=([CathodicProtection].[NativemV]-300),22942,22941),22943))

The picklist value calculation formula above can also be written as:

IF([CPTTaskType]==22836,22943,If([Potential],If([PotentialmV] >=([NativemV]-300),22942,22941),22943))

Operators

A<operator>B

Operators include +, -, *, /

When a calculation is fully in the [Reading view] attributes, then the qualifier is not needed.

You might see the reading type qualified, but that is typically when the type ahead to type out the formula issued.

Refer to How do I set up formulas using the iPhone Formula Engine? to review additional functions that you can use and associated constraints.

Cross reading calculations

Cross reading calculations are also available.

Calculations only work on reading views assigned to the same Asset.

For cross reading calculations, you have to use the [Readingtype].[attribute]

Calculations only from from Events to Workspace readings and not vice versa.

Cross reading calculation example

For an attribute [RunTickets] within reading view [Dual Phase Oil Water Tank CAN View]

Create custom Run Tickets and add a formula to move the sum of the tickets for a day from the event to the workspace

[TankRunTicketCANOil].[GrossVolume]

Related Articles

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.