~/talk

Power BI - Creating a M-agical Date Table

Talkat SQLBits 2024 · 2024-03-19..03-23· [data-visualization]
links:none on file
slides:none on file

A complete Power Query M calendar is built in a fast 20-minute demo using Power BI Desktop and Sublime Text, proving you can generate a self-contained date table without external sources. Code uses List.Dates, DateTime.LocalNow and Duration.Days to make a dynamic end date, converts the list to a table, adds a numeric date key (YYYYMMDD int) and dozens of columns: year, MMM, isYearToDate and months_ago/days_ago flags, plus workday math that handles weekends — the result loads and works in visuals.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34M code environment setup
  3. 3:00Why create date table
  4. 5:29Variables and date list
  5. 8:42List to table conversion
  6. 10:04Standard date columns
  7. 13:18Custom sorting columns
  8. 15:06Time intelligence columns
  9. 17:39Completed date table review
  10. 18:43Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.