~/talk

Calculation Groups & C# - The Perfect Couple

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

Demonstrates how C# scripting in Tabular Editor generates measures from KPI columns, loops through 20–60 base measures and five calculation items, and writes per-item measures into display folders with descriptions so authors see base measure + calculation. Uses Power BI Desktop, Visual Studio Code and Tabular Editor, calls Model.Tables.*, creates measures via model.AddMeasure, saves the model and the new measures appear in Power BI — automation works and enforces naming, folders and reuse.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Agenda and BI stages
  3. 3:02Calculation groups and C# match
  4. 5:13Showcase problem with groups
  5. 7:25C# scripting in Power BI
  6. 10:41Model setup and first script
  7. 15:26Auto-creating measures with C#
  8. 19:41Saving and verifying measures
  9. 20:05Calculation groups basics
  10. 23:15Defining items in Tabular Editor
  11. 27:31Time intelligence items
  12. 29:03Combining C# and groups
  13. 29:44Automating measure creation
  14. 34:30Adding measure descriptions
  15. 36:59Summary and 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.