Please note javascript is required for full website functionality.

# Power Pivot Principles: The A to Z of DAX Functions – COT

16 August 2022

In our long-established Power Pivot Principles articles, we continue our series on the A to Z of Data Analysis eXpression (DAX) functions.  This week, we look at COT.

The COT function

Here’s one to crib for.  This function returns the cotangent of the given angle.  For those of you who don’t find trigonometry riveting you really shouldn’t be so obtuse, but the cotangent is the inverse of the tangent function, i.e. it calculates the ratio of the adjacent side of a triangle divided by the opposite side (subject to sign considerations), viz. The COT function employs the following syntax to operate:

COT(number)

The COT function has the following arguments:

• number: this is required and represents the angle in radians for which you want the cotangent.

It should be further noted that if the angle is in degrees, you should multiply the angle by PI()/180 or else use the RADIANS function to convert the angle to radians.  Furthermore:

• The absolute value of number must be less than 2^27 and cannot be zero 
• If number is outside its constraints, an error is returned
• If number is a non-numeric value, an error is returned.  