# 系統函數

系統函數提供用來存取系統、裝置和 Qlik Sense 應用程式 屬性的函數。

使用每個函數中的下拉式功能表，以查看每個函數的簡要描述及語法。使用每個函數中的下拉式功能表，以查看每個函數的簡要描述及語法。 對於部分函數，您可以透過按一下語法描述中的函數名稱，來取得特定函數的進一步詳細資料。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### Author()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數傳回包含目前應用程式的作者屬性的字串。它可以用於資料載入指令碼與圖表運算式中。

資訊備註不能在 Qlik Sense 的目前版本中設定作者屬性。如果您遷移一個 QlikView 文件，將會保留作者屬性。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### CalcDim()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

用於維度運算式時，CalcDim() 會強制寫入引擎對於如何在內部處理運算式的自動解譯。具體而言，該功能可防止在資料模型中建立新的內部欄位。而是，在應用程式中選取的選項會被視為來自原始資料模型的適用欄位中的選項。

[**calcdim**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/calcdim.htm)(expr)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### ClientPlatform()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數傳回用戶端瀏覽器的使用者代理程式字串。 它可以用於資料載入指令碼與圖表運算式中。

範例：

`  Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 `

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### ComputerName

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數傳回包含引擎執行個體名稱 (由作業系統所傳回) 的字串。 它可以用於資料載入指令碼與圖表運算式中。

ComputerName( )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### DocumentName

此函數會傳回一個字串，其中包含目前 Qlik Sense 應用程式的名稱，不含路徑，但包含副檔名。 它可以用於資料載入指令碼與圖表運算式中。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)DocumentName( )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### DocumentPath

此函數會傳回一個字串，其中包含目前 Qlik Sense 應用程式的完整路徑。 它可以用於資料載入指令碼與圖表運算式中。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)DocumentPath( )

資訊備註Qlik Cloud 中不支援這個函數。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### DocumentTitle

此函數會傳回一個字串，其中包含目前 Qlik Sense 應用程式的標題。 它可以用於資料載入指令碼與圖表運算式中。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)DocumentTitle( )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### EngineVersion

此函數會以字串形式傳回完整的 Qlik Sense 引擎版本。

[**EngineVersion**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/EngineVersion.htm)()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GetCollationLocale

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此指令碼函數傳回所使用定序地區設定的文化名稱。如果尚未設定變數 CollationLocale，則會傳回實際使用者機器地區設定。

GetCollationLocale( )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GetObjectField

GetObjectField() 傳回維度的 欄位運算式。Index 是選用整數，表示應傳回的維度。

[**GetObjectField**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetObjectField.htm)([index])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GetSysAttr

GetSysAttr() 函數用於傳回應用程式所在租用戶和空間的資訊。使用 GetSysAttr() 函數，您可以評估租用戶 ID 和名稱、空間 ID 和名稱以及有關應用程式所在環境的其他詳細資訊。此函數簡化可能會在不同環境之間移動的 Qlik Sense 應用程式的空間和租用戶識別。該函數可用來輕鬆識別您工作所在的特定環境。在應用程式生命週期的開發、測試、接受和生產 (DTAP) 階段期間，這特別實用。

[**GetSysAttr**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetSysAttr.htm)(name)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GetUserAttr

GetUserAttr() 函數為存取應用程式的使用者傳回資訊。 它可以用於資料載入指令碼與圖表運算式中。

[**GetUserAttr**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetUserAttr.htm)(name)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GroupDimensionIndex

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數會為指定的循環維度傳回作用中欄位的索引。第一個欄位有索引值 1。以單引號輸入循環維度的名稱。這只能用於圖表運算式。

GroupDimensionIndex(dim\_name Expression)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### GroupDimensionLabel

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數會為指定的循環維度傳回目前步驟的欄位標籤。以單引號輸入循環維度的名稱。這只能用於圖表運算式。

GroupDimensionLabel(dim\_name Expression)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### IsPartialReload

如果目前的重新載入為部分，則此函數會傳回 - 1 (True)，否則會傳回 0 (False)。

[**IsPartialReload**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/IsPartialReload.htm)()

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### InObject

InObject() 圖表函數評估另一個具有函數引數中指定 ID 的物件內是否包含目前物件。物件可以是工作表或視覺化。

[**InObject**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/InObject.htm)(id\_str)

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### ObjectId

ObjectId() 圖表函數傳回用以評估運算式的物件 ID。 該函數採用選用引數，指定該函數顧慮哪個物件類型。物件可以是工作表或視覺化。此函數僅可用於圖表運算式。

[**ObjectId**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/ObjectId.htm)([object\_type\_str])

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### OSUser

此函數傳回一個字串，該字串包含目前已連線的使用者名稱。 它可以用於資料載入指令碼與圖表運算式中。

OSUser( )

資訊備註在 Qlik Sense Desktop 與 Qlik Sense Client-Managed 行動版 中，此函數總是傳回 'Personal\Me'。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### ProductVersion

此函數會傳回完整的 Qlik Sense 版本，並以字串形式建置數字。

此函數會由 EngineVersion() 取代及替換。

[**ProductVersion**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/ProductVersion.htm)()

資訊備註Qlik Cloud 中不支援這個函數。

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### ReloadTime

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

此函數傳回完成最後一筆資料載入時的時間戳記。傳回的時間戳記使用 UTC 格式。它可以用於資料載入指令碼與圖表運算式中。

ReloadTime( )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

#### StateName

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/system-functions.htm)

StateName() 會傳回使用此變數之視覺化的替代狀態名稱。例如，可使用 StateName 建立含動態文字與顏色的視覺化，以在視覺化狀態發生變更時進行反映。可在圖表運算式中使用此函數，但無法將其用於決定運算式所指的狀態。

[**StateName**](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/StateName.htm)()

資訊備註Qlik Cloud 中不支援這個函數。