This knowledge article walks you through creating a custom Formula field on the Activity object that determines the day of the week from an activity date. The field can then be used in a Matrix report to display activities, such as calls and emails, broken out by each weekday, along with weekly grand totals, all within a single report.
This article explains how to build a Matrix report that groups activities by day of the week, using a custom Formula field on the Activity object combined with the WEEKDAY function.
In the Formula editor, enter the following formula. This CASE statement uses the WEEKDAY function to convert the activity date into a labeled day name, with a numeric prefix on each day so the report sorts chronologically (Sunday through Saturday) instead of alphabetically:
`CASE( WEEKDAY( ActivityDate),1, '1. Sunday',2, '2. Monday',3, '3. Tuesday',4, '4. Wednesday',
5, '5. Thursday',6, '6. Friday',7, '7. Saturday',NULL)
`
Note: The numeric prefix ensures that the days are sorted in the correct chronological order in the report. Without numbering, the report will sort the days alphabetically, which can place Friday before Monday.
005316399

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.