~/talk

Demystifying Power BI Variables: A Comprehensive Guide to Understanding DAX and M Variables

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

Walks through Power Query M showing let in as a record syntax, building a reusable column-rename function, buffering and adding an index to read “next row” sales, and using list.accumulate / list.generate for cross-row access; explains lazy evaluation so unused steps never run. Explains DAX variable scoping with VAR ... RETURN, shows variables hold table or scalar values but become constants when evaluated, highlights no native recursion in DAX, and warns about nonintuitive evaluation order and staging/performance tradeoffs.

AI-written summary · about

  1. 0:00Power BI variables intro
  2. 1:13Power BI architecture
  3. 2:59Power Query variables
  4. 9:32Power Query demo
  5. 16:24Power Query advanced editor
  6. 25:32Power Query evaluation
  7. 31:38Semantic model & DAX vars
  8. 33:44DAX variable syntax
  9. 40:13DAX variable scoping
  10. 46:26DAX context limits
  11. 50:23Global DAX variables & Q&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.