add_pbir_filter
Add filters to Power BI PBIR reports at report, page, or visual scope, supporting categorical value lists or comparison operators (gt, lt, eq, etc.) for specified fields.
Instructions
Add a filter to a PBIR report at scope = report | page | visual, written into the PBIR filterConfig.filters array via the shared filter builders. kind=categorical|in|values -> an is-one-of values list (pass values); else a comparison/blank filter (op=gt|gte|lt|lte|eq|ne|isblank|isnotblank). fieldKind=column|measure. valueType=string|int|double|decimal|bool|datetime|color drives the literal type suffix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | gt|gte|lt|lte|eq|ne|isblank|isnotblank (comparison form) | |
| kind | No | categorical|in|values for a values list; comparison|advanced (or empty) for a comparison/blank filter | comparison |
| page | No | page GUID name or displayName (required for page/visual scope) | |
| field | Yes | ||
| scope | Yes | report | page | visual | |
| table | Yes | ||
| values | No | JSON array of string values (for a categorical list, or a single value for a comparison) | |
| visual | No | visual GUID name (required for visual scope) | |
| fieldKind | No | column|measure (for the comparison form) | column |
| valueType | No | string|int|double|decimal|bool|datetime|color | string |
| pbirSessionId | Yes |