# Upper - 指令碼與圖表函數

Upper() 會將輸入字串中的所有字元轉換為運算式中所有文字字元的大寫形式。數字和符號會被忽略。

語法：

Upper(text)

傳回的資料類型： 字串

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

#### 範例：圖表運算式

| 範例 | 結果 |
| --- | --- |
| `Upper(' abcD')` | 傳回 'ABCD' |

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

#### 範例：載入指令碼

```
Load 
String,Upper(String)
Inline
[String
rHode iSland
washingTon d.C.
new york]; 
```

結果

| 字串 | Upper(String) |
| --- | --- |
| rHode iSland | RHODE ISLAND |
| washingTon d.C. | WASHINGTON D.C. |
| new york | NEW YORK |

## 範例 - Upper 使用情境