Mod (PQL)

Return remainder after a number is divided by another number.

  • Returned Output: Numeric
  • Library: PQL \ Granular \ Math
  • Version: 2023.00.000
  • Compatibility: Pyramid Query Language (PQL) data sources

Syntax

* Click on the function's arguments above for more details on the input values.

Comments
  • The columns need to be attributes with numerical values in the model. Static or calculated numbers can be used as well.
  • The math operations are not running on measures (aka 'values' or 'metrics'). They are operating on atomic items in the attribute / column itself. These values can then be subsequently used to drive an aggregated metric.
  • For details on how to employ and use this function see the custom column overview.
Different Function types

Examples

This example returns a column with modulo value based on the degree column divided by the radians column.

Mod( [math ops].[degrees], [math ops].[radians])

You can see the effect from this example snippet in column #7, based on the source columns in position #2 and #3.