[[["易于理解","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):2025-08-25。"],[],[],null,["# Date range control\n\nThe date range control is a customizable calendar widget that lets you adjust the timeframe of a report without editing the configuration. This gives you a way to let your viewers to select the dates they want to see.\n\nAdd a date range control to a report\n------------------------------------\n\nTo add a date range control to a report, follow these steps:\n\n1. [Edit your report](/looker/docs/studio/edit-a-report).\n2. In the toolbar, select **Add a control** .\n3. Select the **Date range control** icon and then place the control on the report.\n4. On the right, in the **Date range control Properties** panel, set the default date range or leave it set to **Auto date range**.\n5. Use the **STYLE** tab options to change the look of the control as it appears on the report.\n\nHow date range controls work\n----------------------------\n\nThe date range control lets you select the dates you want to see in the report. You can define a custom date range by choosing start and end dates, or you can select from a list of predefined ranges, including options such as Yesterday, Last 7 days (including today), Last quarter, and Year to Date.\n\n### Default date range\n\nWhen you first add a date range control to your report, it uses the default date range provided by the data source (which in turn, depends on the connector used by that data source). For example, the Google Analytics connector defaults to last 28 days, whereas the Google Sheets connector defaults to providing all the data contained in the sheet. You can override this default by changing the control's **Default date range** setting.\n\nLearn more about [setting date ranges](/looker/docs/studio/set-report-date-ranges).\n\n### Date range controls and data sources\n\nTo add a date range control to a report, at least one of the data sources attached to the report must have a date dimension. Date range controls only affect charts built on data sources that have a date dimension.\n\n### Date range control scope\n\nA date range control governs all the charts on the page. You can limit the scope of the date range control in one of the following ways:\n\n1. By setting a date range property for an individual chart to override the date range control\n2. By grouping a date range control with a chart that limits the date range control to that chart. Any non-grouped charts are not affected by the date range control.\n\nRelated resources\n-----------------\n\n- [About dates and time in Looker Studio](/looker/docs/studio/dates-and-times)\n- [About controls](/looker/docs/studio/about-controls)"]]