Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DateGranularity Enum
The Reports.DateGranularity enum describes the date interval that is used for grouping.
Namespace
Usage
The GroupingInfo.getDateGranularity method returns a Reports.DateGranularity enum value. The GroupingInfo.setDateGranularity method takes the enum value as an argument.
Enum Values
The following are the values of the Reports.DateGranularity enum.
| Value | Description |
|---|---|
| DAY | The day of the week (Monday–Sunday) |
| DAY_IN_MONTH | The day of the month (1–31) |
| FISCAL_PERIOD | The fiscal period |
| FISCAL_QUARTER | The fiscal quarter |
| FISCAL_WEEK | The fiscal week |
| FISCAL_YEAR | The fiscal year |
| MONTH | The month (January–December) |
| MONTH_IN_YEAR | The month number (1–12) |
| NONE | No date grouping |
| QUARTER | The quarter number (1–4) |
| WEEK | The week number (1–52) |
| YEAR | The year number (####) |