GetExcludedCount - 圖表函數
GetExcludedCount() 用來尋找已識別欄位中的已排除相異值的數目。已排除的值包括替代選項 (淺灰色)、已排除 (深灰色) 和已選取的已排除 (含有核取記號的深灰色) 欄位。
語法:
GetExcludedCount (field_name)
傳回的資料類型: 字串
引數:
引數 | 描述 |
---|---|
field_name | 包含待測量之資料範圍的欄位。 |
範例與結果:
以下範例使用載入至不同篩選窗格的三個欄位,一個用於 First name,另一個用於 Last name,其餘一個則用於 Initials。
範例 | 結果 |
---|---|
若未在 First name 中選取任何值。 | GetExcludedCount (Initials) = 0 沒有任何選項。 |
若在 First name 中選取 John。 | GetExcludedCount (Initials) = 5 Initials 中有 5 個深灰色的排除值。第六個儲存格 (JA) 將是白色,因為它與 First name 中的選項 John 相關。 |
若選取 John 和 Peter。 | GetExcludedCount (Initials) = 3 在 Initials 中,John 與 1 個值相關,而 Peter 與 2 個值相關。 |
若在 First name 中選取 John 和 Peter,然後在 Last name 中選取 Franc。 | GetExcludedCount ([First name]) = 4 First name 中有 4 個深灰色的排除值。GetExcludedCount() 對具有排除值的欄位進行評估,包括替代和所選的排除欄位。 |
若在 First name 中選取 John 和 Peter,然後在 Last name 中選取 Franc 和 Anderson。 | GetExcludedCount (Initials) = 4 Initials 中有 4 個深灰色的排除值。其他兩個儲存格 (JA 和 PF) 將會是白色,因為這與 First name 中的選項 John 和 Peter 相關聯。 |
若在 First name 中選取 John 和 Peter,然後在 Last name 中選取 Franc 和 Anderson。 | GetExcludedCount ([Last name]) = 4 Initials 中有 4 個排除值。Devonshire有淺灰色,而 Brown、Carr 和 Elliot 則有深灰色。 |
範例中使用的資料:
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 '|');