Notification

This article is about Looker Studio. For Looker documentation, visit https://cloud.google.com/looker/docs/intro.

LOG

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

Sample usage

LOG(128,2)

Syntax

LOG(value [, base])

Parameters

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

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

Examples

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
Google apps
Main menu
1518250735497491205
true
Search Help Center
true
true
true
true
true
102097