# PIDAX Function (Math and Trig)

Returns the value of π, 3.14159265358979, accurate to 15 digits.

## Syntax

PI ( )

This expression has no parameters.

## Return values

Scalar A single decimal value.

A decimal number with the value of π, 3.14159265358979, accurate to 15 digits.

## Remarks

π is a mathematical constant. In DAX, π is represented as a real number accurate to 15 digits, the same as the function PI in Excel.

## Examples

```--  SQRTPI computes the square root of the value multiplied by Pi
--  PI returns the value of Pi with 15 digits of accuracy
DEFINE
VAR Vals = GENERATESERIES ( 1, 25, 3 )
EVALUATE
Vals,
"SQRTPI",       SQRTPI ( [Value] ),
"SQRT and PI",  SQRT   ( [Value] * PI () )
)
```
Value SQRTPI SQRT and PI
1 1.77 1.77
4 3.54 3.54
7 4.69 4.69
10 5.60 5.60
13 6.39 6.39
16 7.09 7.09
19 7.73 7.73
22 8.31 8.31
25 8.86 8.86

Last update: Aug 3, 2024     » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://docs.microsoft.com/en-us/dax/pi-function-dax

# Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

# Row Context

This expression is executed in a Row Context. Click to read more.

# Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

# Not recommended

The use of this parameter is not recommended.

# Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

# Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

# Deprecated

This parameter is deprecated and its use is not recommended.

# DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

### Contribute

Want to improve the content of PI? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.