[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-05 (世界標準時間)。"],[],[],null,["# power\n\nThe `power` function can be used in [custom filters](/looker/docs/filtering-and-limiting#custom-filters) and [table calculations](/looker/docs/table-calculations) to raise a number to the power of a given exponent.\n\nSyntax\n------\n\n**`power(base, exponent)`**\n\nThe `power` function evaluates a `base` by raising it to the power of a given `exponent`.\n\nExamples\n--------\n\nThe `power` function can be used to raise a number to the power of another number. For example, 2^3^ would be written as: \n\n power(2, 3)\n\nTypically, the `power` function is used with a field reference or an expression.\nFor example: \n\n power(${order_item.standard_deviation_profit}, 2)\n\nThings to know\n--------------\n\nThe `power` function can also be used to take the nth root of a number by using 1/n as the `exponent`. For example, the cube root (the 3rd root) of 7 would be: \n\n power(7, 1/3)\n\nFor a square root (the 2nd root) just use the `sqrt` function."]]