DAYS() function
The days() function returns the calendar day count for each time period on the row (for example 31 for January, 28 or 29 for February).
🗒️ Description
- No arguments — call
days(). - Uses the block time dimension label (for example
Jan-24,2024). - Monthly periods → days in that calendar month.
- Year-only periods → 365 or 366 (leap year).
- Different from weekdays, which counts Monday–Friday only.
Typical uses: daily rates from monthly amounts ('Monthly Cost' / days() ), proration, or intensity drivers.
✏️ Syntax & variables
days()
No parameters.
✅ Expected result & examples
| Period label | days() |
|---|---|
| Jan-24 | 31 |
| Feb-24 | 29 (leap year) |
| Apr-24 | 30 |
| 2024 (year grain) | 366 (if leap) |
Example: daily run-rate for management KPIs
'Monthly Revenue' / days()
Revenue forecasting and performance packs: daily run-rate from the calendar month on each row.
Example: workforce daily cost from monthly salary
'Monthly Salary Cost' / days()
Convert annual budget monthly payroll lines to per-day for utilisation or partial-month hire logic (often paired with weekdays for FTE models).
Related functions
| Goal | Use |
|---|---|
| Business days in the period | weekdays |
| Roster active in period | isactive |