
Examples
Using date_grain

Using Inline SQL

Attributes
Optional array of preset date grain values to show. If not provided, all date grain options will be available.
Default date grain to select on loadAllowed values:
dayweekmonthquarteryearhourday of weekday of monthday of yearweek of yearmonth of yearquarter of year
Create a custom link title for the info link, placed after the info text (can only be used with info_link)
Using the Filter Variable
Reference this filter using{{filter_id}}. The value returned depends on where you use it.
Available Properties
You can also access specific properties using{{filter_id.property}}:
.selected
Returns the selected date grain value with quotes. Returns an empty string when no value is selected.'month'
.literal
Returns the raw unescaped selected value. Use this with thedate_grain attribute.
month
