您正在查看 Looker 26.0 的文档。点击此链接可查看
最新文档。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
default_value
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用法
view: view_name {
filter: field_name {
default_value: "desired default value"
}
}
|
层次结构
default_value
|
可能的字段类型
过滤条件、形参
接受
包含所需过滤值的字符串
特殊规则
如果探索在 always_filter 参数中为此字段指定了值,则该设置会替换此字段的 default_value 设置。
|
基础知识
default_value 参数用于为 filter 字段和 parameter 字段指定默认值。
如果您的数据包含带下划线的值,请避免将 default_value 与 parameter 搭配使用。
以下是其用法示例:
filter: order_region {
default_value: "Northeast"
}
-
常见挑战
如果 explore 参数的值由 always_filter 参数指定,则该设置会替换相应字段的 default_value 设置。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-02-05。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-02-05。"],[],[]]