Generate Power Query M code for date ranges with daily, weekly, monthly or yearly intervals.
Create date tables for Power BI, Excel Power Query and other compatible Microsoft tools.
| Function | Description |
|---|---|
List.Dates() |
Creates a list of dates with a fixed interval |
List.Generate() |
Generates a list using a condition |
Date.AddMonths() |
Adds months to a date |
Date.AddYears() |
Adds years to a date |
Duration.Days() |
Returns the number of days |
List.Dates() with #duration(1,0,0,0)List.Dates() with #duration(7,0,0,0)List.Generate() with Date.AddMonths()List.Generate() with Date.AddYears()Free tools for analysts and developers