From 0cfeeea1b0ff6ce57b26481d42b23f1c46ef33f8 Mon Sep 17 00:00:00 2001 From: rashidsarwar Date: Tue, 16 Dec 2025 17:57:46 -0800 Subject: [PATCH] Update LEN function behavior details in documentation Clarified behavior of LEN function with UnicodeCharacterBehavior property on model --- query-languages/dax/len-function-dax.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/query-languages/dax/len-function-dax.md b/query-languages/dax/len-function-dax.md index f1262297c..c5f50a277 100644 --- a/query-languages/dax/len-function-dax.md +++ b/query-languages/dax/len-function-dax.md @@ -32,6 +32,10 @@ A whole number indicating the number of characters in the text string. - If you use LEN with a column that contains non-text values, such as dates or Booleans, the function implicitly casts the value to text, using the current column format. +- Starting with desktop january release, user can set new model property UnicodeCharacterBehavior. Depending on value of the property, the output of LEN() function changes. +- With CodeUnits default value of UnicodeCharacterBehavior property, the len('😀) will return => 2. This is old behavior of LEN function. +- With CodePoints value of UnicodeCharacterBehavior property, the len('😀) will return => 1. This will be new behavior of LEN function. + ## Example The following formula sums the lengths of addresses in the columns, [AddressLine1] and [AddressLine2].