A DAX DATATABLE expression that defines a table inline in a Power BI model.
Who uses it
Power BI report authors.
Writing DAX
All columns are declared as STRING. Change the type declarations by hand if you need numeric columns.
A DAX DATATABLE expression that defines a table inline in a Power BI model.
Power BI report authors.
All columns are declared as STRING. Change the type declarations by hand if you need numeric columns.
DAX is source code. A DATATABLE call declares each column's type up front, so every column needs one decided for it. A machine can read the table back out of it without guessing, which is what makes it safe to convert into and out of.
staff =
DATATABLE(
"id", STRING,
"name", STRING,
"role", STRING,
"started", STRING,
"hours", STRING
{
{"007", "Halima Yusuf", "Analyst, data", "2024-03-15", "38.5"},
{"012", "Jonah \"Jo\" Pryce", "Engineer", "2025-11-02", ""},
{"104", "Wei Chen", "Manager", "2023-06-30", "40"}
}
)DAX is written by Tablizer rather than read by it. Open the file in whichever tool the format belongs to.
It depends who is receiving it. Power BI report authors. If the recipient is outside that group, a plain CSV travels further than anything else.