OpenBI Docs Buy

Logical.ToText

Turns true or false into text, for a label or a file.

Group: Values, types and errors. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Logical.ToText(logicalValue as nullable logical) as nullable text
ParameterTypeDescription
logicalValuenullable logicalThe logical to write; null gives null.

Returns

nullable text. "true" or "false".

Remarks

  • Only logicals are accepted: a number is an error. Text.From writes any value.

Examples

A logical

Logical.ToText(true)
"true"

In a sentence

"Over budget: " & Logical.ToText(1200 > 1000)
"Over budget: true"

Logical.FromText, Logical.From, Text.From.

Last updated · OpenBI Studio 0.3.79