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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Your file has been submitted successfully. We’re processing it now - please check back in a few minutes to view your report.
Here are some various ways of creating lookup tables in Power BI.
This table is constructed with the UNION and ROW functions in DAX.
Boolean Types =
UNION (
ROW ("Label", "Yes", "Order", 1)
, ROW ("Label", "No", "Order", 2)
)
This table is constructed with using the DATATABLE function in DAX.
Boolean Types =
VAR _result =
DATATABLE (
"Label" , STRING
, "Order" , INTEGER
,
{
{"Yes" , 1}
, {"No" , 2}
}
)
RETURN
_result
This table was created using Power Query in M.
let
Source = Table.FromRecords({
[Label = "Yes", Order = 1],
[Label = "No", Order = 2]
})
in
Source
This table was created using "Enter data" button from the "Home" ribbon.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WikwtVtJRMlSK1YlW8ssHMo2UYmMB", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Label = _t, Order = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Label", type text}, {"Order", Int64.Type}})
in
#"Changed Type"