microsoft / microsoft/powerbi-visuals-api

How to determine which filters are applied on a custom visual?

Open
#96 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
108
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am writing a custom visual and would like to know which filters are applied to it.

If the isDataFilterApplied property of the dataview's metadata tells me weither the visual is affected by external filters or not, I can't find a list of filters anywhere, neither in jsonFilters property (this one contains only the list of filters set by the visual itself apparently).

I can't figure out any useful use case of the isDataFilterApplied property.
Meanwhile, I would really like to know if there is a way to get these external filters somewhere.
Any undocumented API maybe?

Could it be part of a feature request?

Thanks for your help. 🙏

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the custom visual API's dataview metadata, especially isDataFilterApplied and jsonFilters, and reproduce the behavior described in the issue. Determine whether externally applied filters are exposed anywhere in the documented API; done means either identifying the supported filter list or clearly defining the missing API capability for a feature decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.