Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
For the calendar table in my project, I have been doing this in different queries.
= List.Min(#"Extracted Time"[Date])
= Date.AddDays(List.Max(#"Extracted Time"[Date]),1)
= {Number.From(#"MinDate")..Number.From(#"MaxDate")}
Is there a way to get the Calendar ranging from Min to Max using a single query?
Solved! Go to Solution.
= List.Generate(() => MinDate, each _ <= MaxDate, each Date.AddDays(_, 1))
= List.Generate(() => MinDate, each _ <= MaxDate, each Date.AddDays(_, 1))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 17 | |
| 9 | |
| 9 | |
| 7 | |
| 7 |