intervalLengthSum
intervalLengthSum
Introduced in: v21.7
Takes multiple numeric ranges and calculates the total length when all overlapping parts are combined into a single unified range.
Note
Arguments must be of the same data type. Otherwise, an exception will be thrown.
Syntax
Arguments
start— The starting value of the interval.(U)Int32/64orFloat*orDateTimeorDateend— The ending value of the interval.(U)Int32/64orFloat*orDateTimeorDate
Returned value
Returns the total length of union of all ranges (segments on numeric axis). Depending on the type of the argument, the return value may be UInt64 or Float64 type. UInt64 or Float64
Examples
Float32 example
DateTime example
Date example