---
source: https://qlik.dev/toolkits/qlik-cli/data-governance/data-governance-data-quality-global-result-data-quality-rule-filter/
last_updated: 2026-11-16T13:31:48+01:00
---

# data-governance data-quality global-result data-quality-rule filter

## qlik data-governance data-quality global-result data-quality-rule filter

Get rule-quality aggregation for a rule across datasets

### Synopsis

Retrieves the dataset-level rule-quality outcomes for a rule, plus the aggregate outcome across the included
datasets. When `datasetIds` is provided (max 100), the result and aggregate are limited to those datasets
that are accessible to the caller. When `datasetIds` is absent or empty, the service determines all
accessible datasets where the rule is instantiated and returns the result and aggregate for that scope.

For each dataset in the resolved scope, the service selects the most recent data quality computation
across all connections. Only datasets whose latest computation contains a result for the requested rule
are included in `ruleQualities` and contribute to `ruleQualityAggregate`. Datasets without a computed
quality result, or whose latest computation has no result for the requested rule, are excluded; the
service does not fall back to an older computation. This behavior also applies when `datasetIds` is
absent or empty.

The `ruleQualities` list is sorted by `datasetId` and paginated using the `page` and `limit` query
parameters. Set `sortDescending` to `true` to sort in descending order (default is ascending).
`ruleQualityAggregate` always covers the full resolved scope, independently of sorting and pagination.

```
qlik data-governance data-quality global-result data-quality-rule filter [flags]
```

### Options

```
      --datasetIds strings   Optional selection of datasets. When non-empty, only these datasets are considered (filtered to those
                             accessible to the caller); the maximum number of dataset IDs is 100. When absent or empty, the service
                             determines all accessible datasets where the rule is instantiated.
  -f, --file file            Read request body from the specified file
  -h, --help                 help for filter
      --interval int         Duration in seconds to wait between retries, at least 1 (default 1)
      --limit int            Maximum number of datasets to return in the ˋruleQualitiesˋ page.
      --page int             Page number to retrieve (1-indexed). Defaults to 1.
  -q, --quiet                Return only IDs from the command
      --raw                  Return original response from server without any processing
      --retry int            Number of retries to do before failing, max 10
      --ruleId string        (Required) The unique identifier of the rule to analyze, represented as a 24-character hexadecimal MongoDB ObjectId.
      --sortDescending       When true, sorts the ˋruleQualitiesˋ list by ˋdatasetIdˋ in descending order. Defaults to false (ascending).
```

### Options inherited from parent commands

```
  -c, --config string            path/to/config.yml where parameters can be set instead of on the command line
      --context string           Name of the context used when connecting to Qlik Associative Engine
      --headers stringToString   HTTP headers to use when connecting to Qlik Associative Engine (default [])
      --insecure                 Allow connecting to hosts with self-signed certificates
      --json                     Returns output in JSON format, if possible. Disables verbose and traffic output
  -s, --server string            URL to Qlik Cloud or directly to a Qlik Associative Engine
      --server-type string       The type of server you are using: cloud, Windows (Enterprise on Windows) or engine
  -v, --verbose                  Log extra information
```
