---
schema_version: "1"
id: f598bd174957a8787f3b7f12c6f80fe631e2a0f44276d1891b5cd4088473794e
title: Create a Switch Date Widget
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/dato_visualize_widgets_interactive_switch_date.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.dato_visualize_widgets_interactive_switch_date.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d44334027058589b5d0364fceebe611ba0be9b97158455c6f050b247b6f17513
description: A switch date widget is a type of interactive filter widget available in the widget library. With this widget you can switch the date granularity of widgets used in the page.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Create a Switch Date Widget

A switch date widget is a type of interactive filter widget available in the widget library. With this widget you can switch the date granularity of widgets used in the page.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d22408e38">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d22408e38 ">To create a switch date widget:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d22408e38 ">Admin or Power User</td>

          </tr>
        </tbody>
      </table>

1. Navigate to **Visualize**.
2. Select the dashboard, and then select the page you want to add a widget to.
3. To edit the selected page, click the pencil icon.
4. To add a new widget, click the **+** icon.
5. Scroll down to the **Interactive** section and click **Switch Date**.

A new switch date widget is added to your page from which you can preview any change that is made to the widget. These options are available in the **Data** tab:

- **Add data to your widget** — Select the date-type dimensions you want to add to the widget.
- **Set date granularity** — Select the granularity level of the date field you want to switch to if more than one date-type field is available in the target widgets.
    - **Least Granular** — Select this to change the least granular date in the target widget. For example, if day, week and year are in the target widget, day will be switched.
    - **Most granular** — Select this to change the most granular date in the target widget. For example, if day, week and year are in the target widget, year will be switched.
- **Set Default Values** — Define the default date period used each time the page loads.
- **Apply to Specific Widgets** — Apply the switch date widget selections to specific widgets on the page. If no widgets are selected, then the switch date widget is applied to all the widgets on the page.
- **Retain User Selection** — This checkbox is selected by default. It automatically saves the switch date widget settings that are applied per user to a page or dashboard. Then, when switching between dashboards or pages, the same settings appear. If you don’t want to save the switch widget selections per user, clear this checkbox.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)

Note

- The switch date widget only switches date type dimensions.
- Only dimensions from the Date entity can be added to the switch date widget. However, when a custom calendar is in use, you can also add Custom Date dimensions.

After you finish configuring the **Data** tab, configure the **Design** tab. These options are available:

- **List Display** — If you selected List as the filtering display, select how to display the list:
    - **Vertical** — Lists the filter selections on individual rows.
    - **Horizontal** — Lists the filter selections one after the other, on the same row.
- **Show Search Box** — Select to insert a search box into the widget so that you can search for specific date periods to filter by.

You can further tailor the appearance of the switch date widgets on your page with the options available in the design tab.

#### See Also

- [Design Your Widget](https://help.salesforce.com/s/articleView?id=mktg.dato_visualize_widgets_design.htm&release=264.0.0&type=5 "The Design tab provides capabilities to further tailor the appearance of specific widgets on your page. You can make the widget stand out more by modifying the background and changing fonts. Widget design is based on your pre-determined page theme, so your page’s design is always cohesive and put together.")