DAX Math & Trigonometric - LOG function



Description

Returns the logarithm of a number to the base you specify.

Syntax

LOG (<number>, [<base>]) 

Parameters

Sr.No. Parameter & Description
1

number

The positive number for which you want the logarithm.

2

base

Optional.

The base of the logarithm.

If omitted, default is 10.

Return Value

A decimal number.

Remarks

You might receive an error, if the return value is too large to be displayed.

The DAX function LOG10 is similar, but always returns the common logarithm, i.e. the logarithm for the base 10.

Example

= LOG (5,10) returns 0.698970004336019. 
= LOG (5) returns 0.698970004336019. 
dax_functions_mathematical_trigonometric.htm
Advertisements