Text.From

Text

Converts a value to its text representation.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Text.From(value as any, optional culture as nullable text) as nullable text

Parameters

NameTypeRequiredDescription
valueanyYesThe value to convert to text.
culturetextNoA culture code (e.g., "en-US") that determines locale-specific formatting.

Return Value

textThe text representation of the value.

Remarks

Text.From converts a value of any type to its text representation. Numbers, dates, logicals, and other types are formatted as text strings. Pass a culture code to control locale-specific formatting (e.g., decimal separators, date formats).

This is commonly used when concatenating non-text values with text — for example, building a label like "Order #" & Text.From([OrderID]).

Examples

Example 1: Convert order IDs to text

Table.AddColumn(
    Table.SelectColumns(Table.FirstN(Sales, 3), {"OrderID", "Product"}),
    "Label", each "Order #" & Text.From([OrderID]), type text
)
Result
OrderID
Product
Label
11Widget AOrder #1
22Gadget BOrder #2
33Widget COrder #3

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks