This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I'm trying to use the AdvancedFilter feature in my visual, but something is not clear to me.
I'm using the following code:
let inValues = [];
let containsValue = '';
let conditions = [];
for (let i = 0; i < inValues.length; i++)
conditions.push({
operator: 'Is',
value: inValues[i]
});
conditions.push({
operator: 'Contains',
value: containsValue
});
let advancedFilter = new window['powerbi-models'].AdvancedFilter({
table: TABLE_NAME,
column: COLUMN_NAME
}, (conditions.length > 1 ? 'Or' : 'And'), conditions);
host.applyJsonFilter(advancedFilter, 'general', 'filter', FilterAction.merge);After the last line, the filter is applied correctly to the report, but my visual does not receive a filtered data in the subsequently update.
Is it normal?
Solved! Go to Solution.
Hi @danieleperilli,
This is expected behavior as a filter is applied to other visuals on the same report page.
A custom visual that applies a filter will not get the filtered data.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi @danieleperilli,
This is expected behavior as a filter is applied to other visuals on the same report page.
A custom visual that applies a filter will not get the filtered data.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks @v-viig.
It would useful to have the filtered data as separated node in the dataviews returned in the update. Is it something you could evaluate to insert in the future?
Could you please describe why your custom slicer should receive a filtered data?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
If the slicer receives the filtered data, it can be used to perform advanced search and display results without loading all the rows from the dataset.
We'll send this idea to PBI CV API team for consideration.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |