GetPossibleCount - 圖表函數
                GetPossibleCount() 用來尋找已識別欄位中的可能值的數目。如果已識別的欄位包括選項,則會計算已選取的 (綠色) 欄位。否則,會計算相關聯的 (白色) 值。
針對選項欄位,GetPossibleCount() 會傳回所選 (綠色) 欄位的數目。
傳回的資料類型: 整數
語法:
GetPossibleCount (field_name)
引數:
| 引數 | 描述 | 
|---|---|
| field_name | 包含待測量之資料範圍的欄位。 | 
範例與結果:
以下範例使用載入至不同篩選窗格的兩個欄位,一個用於 First name 名字,另一個用於 Initials。
| 範例 | 結果 | 
|---|---|
假定已在 First name 中選取 John。 GetPossibleCount ([Initials])  | 1,因為在 First name 中,與選項 John 相關的 Initials 中有 1 個值。 | 
假定已在 First name 中選取 John。 GetPossibleCount ([First name])  | 1,由於 First name 中有 1 個選項John。 | 
假定已在 First name 中選取 Peter。 GetPossibleCount ([Initials])  | 2,因為 Peter 與 Initials 中的 2 個值相關。 | 
假定未在 First name 中選取任何值。 GetPossibleCount ([First name])  | 5,因為沒有任何選項,而 First name 中有 5 個唯一值。 | 
假定未在 First name 中選取任何值。 GetPossibleCount ([Initials])  | 6,因為沒有任何選項,而 Initials 中有 6 個唯一值。 | 
範例中使用的資料:
Names:
LOAD * inline [
First name|Last name|Initials|Has cellphone
John|Anderson|JA|Yes
Sue|Brown|SB|Yes
Mark|Carr|MC|No
Peter|Devonshire|PD|No
Jane|Elliot|JE|Yes
Peter|Franc|PF|Yes ] (delimiter is '|');