DAX Function Guide

LEFT
Empty image or helper icon

Sam McKay

CEO & Founder

How does the LEFT work?
The LEFT function (DAX) returns the number of characters defined at the start of a text string.
LEFT Formula Syntax

LEFT(
     <text>, <num_chars>
)

How do you use the LEFT?

DAX works with Unicode and all characters are stored on the same length. Thus a single LEFT function is necessary to remove the characters.

Related Blog Posts

Loading

Considerations when using the LEFT?

If the argument num chars is a number that is greater than the number of characters in the text string, the function DAX LEFT returns the maximum available characters and does not create any errors.

Related Video Tutorials

Loading

Formula examples using the LEFT

=CONCATENATE (
      (LEFT(
‘Reseller'[ResellerName],
LEFT(GeographyKey,3)
)

=CONCATENATE (
      (LEFT(
‘Reseller'[ResellerName],
LEFT(GeographyKey,3)
)

Related Courses

Loading