My report of PowerBI have three types of filters
- hidden filters
- visible filters
- filters coming from drill-through
From embedded I have the option to hide the filter panel if all the filters present are not visible and show the panel if at least one filter is visible i look at the following property for this
filter.displaySettings.isHiddenInViewMode
https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters
But i can’t manage if the filter is coming from a drillthrough or not Is there any way to do it?
Thanks in advance
Advertisement
Answer
Currently it is not possible to know if the filter is applied from a hidden or visible filter or from drill through
Though you can use getFilter method (in Report, Page or Visual) to fetch details like filter type, table, column etc.
The output look something like:
Reference:
Use filters when embedding a report in Power BI embedded analytics | Microsoft Docs