Cheat Sheets/Power BI/LEN
DAX function

LENDAX function reference

Count characters.

Syntax

dax
LEN(<text>)

Examples

dax
LEN([Code])
A number
dax
FILTER(Customer, LEN(Customer[Phone]) <> 10)
Rows with a malformed (not 10-digit) phone number, for a data-quality check
dax
IF(LEN(Product[Description]) > 100, LEFT(Product[Description], 97) & "...", Product[Description])
Truncates a long description for display, with an ellipsis

Common mistakes & gotchas

Related DAX functions

From Text

← Back to the Power BI (DAX) cheat sheet