Skip to content

Spec: filter direction on relationships (bidirectional cross-filtering) #580

Open

Description

@djouallah

A Relationship has no way to say which way a filter propagates. Power BI's crossFilteringBehavior: bothDirections (a filter on the many side reaching the one side, and from there the other facts) changes query results. Today it can only be kept in a POWER_BI custom_extensions entry, which a non-Power BI consumer cannot read.

Proposal: an optional property on Relationship, e.g.

filter_direction: single | both   # default: single (one side filters the many side)

Example: units → regions with both, so filtering units by fuel also filters the regional facts to the regions of those units.

Activity

  1. christianeu-db commented on Oct 14, 2026

    @christianeu-db
    Contributor

    Bi-directional filtering is a nice extension to have. We might want to first land on some of the modeling / query preliminaries as pre-reqs. For example, #50 calls out that there is some ambiguity on relationship cardinality today (e.g. there is some ambiguity whether a relationship is M:1 or just implies the right side doesn't fan out rows).

    Currently, there are some in-flight semantics #246 for querying multi-table models with a BI-like interface. But, these haven't landed yet (so, ossie models aren't queryable). It would be good to fold in the semantics of bi-directional filtering since this behavior often is related to path ambiguity resolution (which vendors solve in different ways)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue needs triage by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions