YEARFRAC is a DAX function that returns the fraction of the year represented by the number of whole days between two dates.
Syntax
YEARFRAC(
StartDate,
EndDate,
Basis
)
| Argument | Properties | Description |
|---|---|---|
| StartDate | The start date in datetime format. | |
| EndDate | The end date in datetime format. | |
| Basis | Optional | The type of day count basis to use. |