DATEPART('year', [<date-field>])
DATEPART returns the date as an integer. For months or days of the week, use DATENAME instead of DATEPART. For example:
DATENAME('month', [<date-field>])
Or:
DATENAME('weekday', [<date-field>])
DATENAME returns the name of the specific date part as a discrete string. For displaying the date as yyyy/mm/dd format, use DATETRUNC. For example:
1. Create a calculated field.
DATE(DATETRUNC('month',[Order Date]))
2. Add the field to the view.
3. Select <field name> (Continuous) or <field name> (Discrete) in the option menu as you need.
To voice your support for the inclusion of this feature request in a future product release, add your vote to the following Community Idea: Ability to disable one-click drill-down.
001465791
1158 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.