Cheat Sheets/Power BI/LEFT / RIGHT
DAX function

LEFT / RIGHTDAX function reference

Characters from one end.

Syntax

dax
LEFT(<text>, <num_chars>)    RIGHT(<text>, <num_chars>)

Examples

dax
LEFT([Code], 3)
A substring
dax
RIGHT([Code], 4)
The last 4 characters, e.g. a check digit or suffix
dax
IF(LEFT(Customer[Phone], 1) = "1", MID(Customer[Phone], 2, 10), Customer[Phone])
Strips a leading country code before formatting a phone number

Common mistakes & gotchas

Related DAX functions

From Text

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet