GetAlternativeCount - 图表函数
                GetAlternativeCount() 用于查找标识字段中可能(浅灰色)值的数量。
语法:
GetAlternativeCount (field_name)
返回数据类型: 整数
参数:
| 参数 | 说明 | 
|---|---|
| field_name | 包含要度量的数据范围的字段。 | 
示例和结果:
以下示例使用加载到筛选器窗格的 First name 字段。
| 示例 | 结果 | 
|---|---|
| 
                                 假定选择 John(在 First name 中)。 GetAlternativeCount ([First name])  | 
                            4,因为 First name 中有 4 个唯一的排除(灰色)值。 | 
| 
                                 假定已选择 John 和 Peter。 GetAlternativeCount ([First name])  | 
                            3,因为 First name 中有 3 个唯一的排除(灰色)值。 | 
| 
                                 假定未在 First name 中选择任何值。 GetAlternativeCount ([First name])  | 
                            0,因为没有选择项。 | 
示例中所使用的数据:
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 '|');