Set filter configuration for report
See original GitHub issueHi, my question is about configuring filters for the embedded reports.
Current behavior
The type of property filter in IEmbedConfiguration
is
filters?: models.IFilter[];
, and IFilter
itself is
export interface IFilter {
$schema: string;
target: IFilterGeneralTarget;
filterType: FilterType;
displaySettings?: IFilterDisplaySettings;
}
For configuring any report’s filter this set of property is not enough.
Expected behavior
For example for the basic type of filter, the set of properties is
export interface IBasicFilter extends IFilter {
operator: BasicFilterOperators;
values: (string | number | boolean)[];
requireSingleSelection?: boolean;
}
So I would expect to have IReportLoadConfiguration
where filters?: ReportLevelFilters[];
and
ReportLevelFilters = IBasicFilter | IBasicFilterWithKeys | IAdvancedFilter | IRelativeDateFilter | ITupleFilter | IRelativeTimeFilter
.
Can you advise me on how to set filters properly for reports?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Configuring filters in reports - HighBond
Add a filter to a report · Open the Reports app. The Browse page opens. · Open a report and navigate to the...
Read more >Format filters in Power BI reports - Microsoft Learn
Go to File > Options and settings > Options > Query reduction. Select Add a single Apply button to the filter pane to...
Read more >Add Advanced Filter Configuration for a Report Entry in ...
You can enable advanced filters (pv values) in reports using Solution Manager. To enable advanced filter configuration in a report: Click Advanced Filter...
Read more >Set Report Filters - Firewall Analyzer - ManageEngine
Set Report Filters - Firewall Analyzer. Include filters specify those criteria which the log data must meet in order to be included in...
Read more >Create, edit, and manage filters - Looker Studio Help
To create a copy of the filter, click Duplicate in the Actions column. You can then modify the filter conditions and apply it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are just a god, bro. Thank you so much.
@harishv6665 There are 3 levels of applying filters: Report, Page, Visual. Most time you would work with the visuals.
To get visual:
Then you can set filter and slicerState for visual. Filters are for filtering data in your visual, e.g. you have a year picker and it has 3 available yers to choose 2020, 2019, and 2018. If a filter with value 2020 is set for year picker visual, “2020” would be the only option that remains in it. If you want just to choose a value in it use setSlicerState(filterConfig) instead of setFilter(filterConfig).
After receiving the expected visual, request it slicer state with
await visual?.getSlicerState()
and check atarget
property to get the propper table name. In my case, it differs from what I see in UI. Then you can properly configure a filter for your slicer.One more tip, you can also manually configure any visual then request its slicerState and check what filter configuration is using in this visual.
Use this wiki for more info.