Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
I am creating a custom visual where I need to know on which field I am getting filtered data.
for eg: let say I have my visual containing 3 fields now there is another slicer (powerbi slicer) visual which contain one of the three fields. Now if the filter has been applied from powerbi-slicer, how can I identify on which field filter has been applied?
Currently What I am doing is saving initial load whole data and on each rendering I am checking if there is filter happening or not (by dataViews metadata properties "isDataFilterApplied") if there is filteration then I am comparing for any differences but this is also not working in some cases.
Please Help, Thanks
Hi @Anujshaan ,
You might consider using the SelectionManager to keep track of which data points are selected.
https://learn.microsoft.com/en-us/power-bi/developer/visuals/selection-api
This is the related document, you can view this content:
Personalize visuals in a report - Power BI | Microsoft Learn
Main sources for acquiring Power BI custom visuals - Power BI | Microsoft Learn
Power KPI Matrix (microsoft.com)
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |