您目前查看的是 Looker 26.2 的說明文件。按一下這個連結,即可查看
最新說明文件。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
功率
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
power 函式可用於自訂篩選器和資料表計算,將數字提高至指定指數的次方。
語法
power(base, exponent)
power 函式會將 base 提高至指定 exponent 的次方,藉此評估 base。
範例
power 函式可用來計算某個數字的乘方。舉例來說,23 會寫成:
power(2, 3)
通常 power 函式會搭配欄位參照或運算式使用。例如:
power(${order_item.standard_deviation_profit}, 2)
注意事項
您也可以使用 1/n 做為 exponent,透過 power 函式計算數字的 n 次方根。舉例來說,7 的立方根 (第 3 個根) 為:
power(7, 1/3)
如要計算平方根 (第 2 個根),只要使用 sqrt 函式即可。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-21 (世界標準時間)。"],[],[]]