A função ln usa o logaritmo de um value na base da constante matemática e.
Exemplos
A função ln pode ser usada para modelar o crescimento exponencial de forma linear usando ln da variável dependente. Exemplo:
ln(order_items.growth_rate)
Informações úteis
O ln pode ser usado para dar a você o tempo necessário para alcançar um determinado nível de crescimento.
Por exemplo, modelar o crescimento exponencialmente como:
crescimento = etempo
O tempo pode ser determinado usando ln da seguinte maneira:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-25 UTC."],[],[],null,["# ln\n\nThe `ln` function can be used in [custom filters](/looker/docs/filtering-and-limiting#custom-filters) and [table calculations](/looker/docs/table-calculations) to get the natural logarithm of a value.\n\nSyntax\n------\n\n**`ln(value)`**\n\nThe `ln` function takes the logarithm of a `value` to the base of the mathematical constant *e*.\n\nExamples\n--------\n\nThe `ln` function can be used to model exponential growth linearly by taking `ln` of the dependent variable. For example: \n\n ln(order_items.growth_rate)\n\nThings to know\n--------------\n\n`ln` can be used to give you the time needed to reach a certain level of growth.\nFor instance, modeling growth exponentially as:\n\n*growth = e^time^*\n\n*time* can be determined using `ln` as follows: \n\n ln(growth)"]]