跳到主要内容

GetExcludedCount - 图表函数

GetExcludedCount() 用于查找标识字段中排除相异值的数量。排除的值包括替代项(浅灰)、排除项(深灰)以及所选排除项(带复选标记的深灰)字段。

语法:  

GetExcludedCount (field_name)

返回数据类型: 字符串

参数:  

参数
参数 说明
field_name 包含要度量的数据范围的字段。

示例和结果:  

以下示例使用三个加载到不同筛选器窗格的字段,一个用于 First name,一个用于 Last name,另一个用于 Initials

示例和结果
示例结果

如果未在 First name 中选择任何值。

GetExcludedCount (Initials) = 0

没有选择项。

如果在 First name 中选中 John

GetExcludedCount (Initials) = 5

首字母中有 5 个排除的值,颜色为深灰色。第六个单元格 (JA) 将为白色,因为它与 First name 中的选择 John 相关联。

如果选择了 JohnPeter

GetExcludedCount (Initials) = 3

John 与 1 个值相关联,PeterInitials 中的 2 个值相关联。

如果在 First name 中选择了 JohnPeter,则在 Last name 中选择 Franc

GetExcludedCount ([First name]) = 4

名字中有 4 个排除的值,颜色为深灰色。GetExcludedCount() 计算具有排除值的字段,包括备选字段和选定的排除字段。

如果在 First name 中选择了 JohnPeter,则在 Last name 中选择 FrancAnderson

GetExcludedCount (Initials) = 4

首字母中有 4 个排除的值,颜色为深灰色。其他两个单元格(JAPF)将为白色,因为它们与 First name 中的选择 JohnPeter 相关联。

如果在 First name 中选择了 JohnPeter,则在 Last name 中选择 FrancAnderson

GetExcludedCount ([Last name]) = 4

首字母中有 4 个排除的值。Devonshire 具有浅灰色,而 BrownCarrElliot 具有深灰色。

示例中所使用的数据:

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 '|');

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!