您正在查看 Looker 26.0 的文档。点击此链接可查看
最新文档。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
week_start_day
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用法
week_start_day: monday
|
层次结构
week_start_day
|
默认值
monday
接受
一周中的某一天(monday、tuesday、wednesday、thursday、friday、saturday 或 sunday)
|
定义
您可以使用 week_start_day 参数调整 Looker 认为的一周起始日。使用 week_start_day 会影响:
- 数据在表格中的显示方式
- 表格的排序顺序
- 过滤器的运作方式
week_start_day 参数可与四个与周相关的 timeframes 中的三个搭配使用:
| 时间范围 |
适用于 week_start_day? |
day_of_week_index |
是 |
week |
是 |
day_of_week |
是 |
week_of_year |
否 |
week_start_day 不适用于 week_of_year,因为该时间范围基于 ISO 标准,而 ISO 标准使用从星期一开始的周。
示例
将周的起始日从星期一调整为星期日:
week_start_day: sunday
如未另行说明,那么本页面中的内容已根据知识共享署名 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。"],[],[]]