filter_count
Count rows that meet your filter conditions directly on the server, returning only the count and a small sample. Answer 'how many' questions without moving large data into context.
Instructions
按条件统计行数 —— 只返回计数,不返回数据行。
用途:回答"有多少条满足 X"这类问题。计数在服务端完成, 绝不会把成千上万行搬进上下文。
参数:
filters:条件列表,每项 {"column": "部门", "op": "==", "value": "研发"} 支持运算符:== != > < >= <= in not_in contains startswith endswith is_null not_null
sample:附带返回的样例行数(默认 3,仅用于确认过滤是否符合预期)
返回:matched_rows、matched_pct、少量样例,以及等价的 Excel COUNTIFS 公式 (可粘回表格动态更新)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| sample | No | ||
| filters | No | ||
| file_path | Yes |