Notification

This Help Center is moving to Cloud. Learn more about the migration.

LOG

Returns the logarithm of a number with respect to a base.

Sample usage

LOG(128,2)

Syntax

LOG(X, [ base)

Parameters

  • X - The value for which to calculate the logarithm given basevalue must be positive.

  • base - (optional) The base to use for calculation of the logarithm. If base is not provided, LOG returns the logarithm of X with base e (Euler's number).

Examples

Example formula Input Output
LOG(My field, 2) 128 7
LOG(My field, 10) 128 2.10720997
LOG(My field) 128 4.852030264

Related resources

Was this helpful?

How can we improve it?
true
What's new in Looker Studio?

Learn about new features and recent changes. Looker Studio release notes live on Google Cloud.

Search
Clear search
Close search
Main menu
4128730931294386308
true
Search Help Center
true
true
true
true
true
102097
false
false