Daily DAX : Day 399 COT

Power BI DAX: The COT Function

Syntax

COT(<value>)

Parameters:

  • <value> – A numeric expression in radians representing an angle.

Description

The COT function returns the cotangent of the given angle (in radians).

Formula: COT(θ) = 1 / TAN(θ)

Note: The input must be in radians. Use RADIANS() to convert degrees if needed.

Use Cases

  • Trigonometric calculations in engineering, physics, or geometry models.
  • Financial modeling involving periodic functions or wave patterns.
  • Scientific data analysis where cotangent is part of a formula (e.g., optics, mechanics).
  • Creating custom KPIs or metrics based on angular relationships.

Example

Calculate cotangent of 45 degrees:

Cotangent_45 = COT(RADIANS(45))

Result: 1 (since cot(45°) = 1)

Important Notes

  • Returns an error if the input causes division by zero (i.e., when TAN(value) = 0).
  • Always ensure the angle is in radians before using COT.
  • Combine with RADIANS() for degree-based inputs.

Comments

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK