# Len - 스크립트 및 차트 함수

Len()은 입력 문자열의 길이를 반환합니다.

구문:

Len(text)

반환 데이터 유형: 정수

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Len.htm)

#### 예: 차트 표현식

| 예 | 결과 |
| --- | --- |
| `Len('Peter')` | '5'를 반환합니다. |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Len.htm)

#### 예: 로드 스크립트

```
T1:
Load String, First&Second as NewString;
Load *, mid(String,len(First)+1) as Second;
Load *, upper(left(String,1)) as First;
Load  * inline [
String
this is a sample text string
capitalize first letter only ]; 
				
```

결과

| 문자열 | NewString |
| --- | --- |
| this is a sample text string | This is a sample text string |
| capitalize first letter only | Capitalize first letter only |