GetSelectedCount - 차트 함수
구문:
GetSelectedCount (field_name [, include_excluded])
반환 데이터 유형: 정수
인수:
인수 | 설명 |
---|---|
field_name | 측정할 데이터 범위가 포함된 필드입니다. |
include_excluded |
|
state_name | The name of an alternate state. If specified, the counted value for the field in the alternate state is returned. If no alternate state is provided, the default state is used. |
예 및 결과:
다음 예에서는 서로 다른 목록 상자에 로드된 세 필드를 사용하며, 하나는 First name 이름, 하나는 Initials, 하나는
예 | 결과 |
---|---|
First name에서 John을 선택한 것으로 가정합니다. GetSelectedCount ([First name]) |
1이며, First name에서 선택된 값이 하나이기 때문입니다. |
First name에서 John을 선택한 것으로 가정합니다. GetSelectedCount ([Initials]) |
0이며, |
First name에서 아무 것도 선택하지 말고, Initials에서 모든 값을 선택한 다음 GetSelectedCount ([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 '|');