DAX Function Guide

LEN
Empty image or helper icon

Sam McKay

CEO & Founder

How does the LEN work?
The LEN function (DAX) returns the number of characters within a text string.
LEN Formula Syntax

LEN(
     <number>
)

How do you use the LEN?

DAX uses Unicode, and stores the same length of all characters. Therefore LEN always counts each character as 1 regardless of the default language setting.

Related Blog Posts

Loading

Considerations when using the LEN?

If you are using the DAX LEN function with a column containing non-text values such as dates or boolean values, the function will implicitly translate the value into text using the current column format.

Related Video Tutorials

Loading

Formula examples using the LEN

=LEN (
      [AddressLine1]+[AddressLine2]
)

= LEN (
    [Product]
)

Related Courses

Loading