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! It's time to submit your entry. Live now!
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))
| User | Count |
|---|---|
| 16 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |