Dates (Metrics)
Formatting dates in a report column includes the format used to display dates and their sort order. Other formatting options include the font style, size, and color, as well as the alignment and any enhancements to highlight dates. The cells containing dates in a report column can be sized, a border and a background color can be added, and the Wrap Text option can be used to display long date formats on multiple lines in the report. Summary data can be added to include a count of all the dates in a column and/or a subtotal of the unique dates in a column.
Display
1 |
Column Formatting icon |
From the Data view, click on the Click on the |
2 |
Report Fields list box |
Locate the date field that you want to format, click on it to select it, and then drag-and-drop it into the canvas. The categories and fields that can be used to format the column fields display in the canvas, and the Display category is expanded. |
3 |
Display field |
If you want to change the text that will display as the column heading, edit the text. |
4 |
Format list |
If you want to change the default from Date, make another selection in the list. See the DATE section of Column Formatting Display Options. Select the Timestamp option to include both the date and time. |
5 |
Date Format list |
Select one of the default formatting options, or select Other if you want to create your own date format. The default options all use the Day-Month-Year format, instead of the familiar Month-Day-Year format used in the USA. |
6 |
Custom Date Format field |
If you selected the Other option in #5, enter the date format you want displayed in the report. The month options include M, MM, MMM (3-letter abbreviation for the month) and MMMM (month spelled out); d and dd for the day; and yy or yyyy for the year. Use either the "/" separator or the "-" separator between the month, day, and year. Precede the date format with "EEEE, " if you want to include the day of the week in the date. If users will be sorting the report by dates, it is recommended you enter YYYY-MM-DD in the field so that the program auto-sorts the dates in chronological order. |
7 |
Chart Granularity list |
Select the unit of time that should be used to plot the dates in the report column whenever a chart is generated for the report. The options are Day, Week, Month, Quarter, and Year. Data is aggregated by the day. |
8 |
Show Field option |
Click on the |
9 |
Suppress Duplicates option |
Click on the |
10 |
Close & Apply icon |
Click on the |
Sorting
1 |
Column Formatting icon |
From the Data view, click on the Click on the |
2 |
Report Fields list box |
Locate the date field that you want to format, click on it to select it, and then drag-and-drop it into the canvas. The categories and fields that can be used to format the column fields display in the canvas, and the Display category is expanded. |
3 |
Sorting category |
Click the expand icon |
4 |
Sort By radio buttons |
If you want to sort dates by the custom format you defined in #5 and #6 in the Display section, select the Formatted Value radio button. This field only displays when you customize the date format. |
5 |
Direction radio buttons |
If you want to change the default sort order from None, select Ascending (0-9) or Descending (9-0). |
6 |
Close & Apply icon |
Click on the |
Data
The data fields used to edit and format dates in a report column are the same as those for numeric values.
Borders
The options used to add borders to dates in a report column are the same as those for numeric values.
Summary
1 |
Column Formatting icon |
From the Data view, click on the Click on the |
2 |
Report Fields list box |
Locate the date field that you want to format, click on it to select it, and then drag-and-drop it into the canvas. The categories and fields that can be used to format the column fields display in the canvas, and the Display category is expanded. |
3 |
Summary category |
Click the expand icon |
4 |
Total Aggregation radio buttons |
If you want to aggregate the dates in the column, change the default selection of None to one of the following options:
|
5 |
Sub Total option |
Click on the |
6 |
Close & Apply icon |
Click on the |