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 There,
Trust you are doing well.
I'm currently facing an issue while integrating the powerbi-client-vue-js SDK into our Vue.js 3 application. Specifically, I'm rendering a dashboard report that includes various visuals such as bar graphs, line graphs, and pie charts.
The problem arises when interacting with the bar graph. Upon clicking anywhere within the bar graph window, the following error is thrown:
{
message: 'Invoked filter serialization function with no filter.'
}
Interestingly, this issue does not occur with the line graph, which functions as expected when clicked.
I have explored multiple approaches and combinations to resolve this issue, including downgrading the SDK version via npm, but unfortunately, none have been successful so far.
For your reference, I have attached relevant code snippets that demonstrate how I'm embedding and interacting with the Power BI visuals.
Please let me know if any additional details or diagnostics are required from my side to help investigate this issue further.
Looking forward to your guidance and support.
Thanks in advance.
Console Line Graph With No Error:
Console BarGraph With Error:
Code Snippet:
Solved! Go to Solution.
Hi @Anonymous ,
Thank you for reaching out to the Microsoft Community Forum.
This appears to be triggered only when clicking the bar graph, meaning the bar chart's click interaction is not sending a valid filter payload.
Root cause:
In Power BI visual interactions (like clicking a bar): Power BI tries to serialize the filter(s) applied due to that interaction. If the filter object is empty, malformed, or undefined, this message is logged.
Your handler expects that getSlicerState() always returns slicers with valid filters, but clicking a visual like a bar chart is not a slicer action, and may trigger interaction events without any filter (especially if cross-filtering is disabled or no filter context is applied).
Please Check below things.
1. Check for empty filters before processing
In your 'rendered' event, ensure you check for existence of filters before processing:
2. Visual Interactions vs. Slicer State
You're triggering slicer state serialization inside a rendered event. But this event doesn't correlate to bar chart clicks.
To handle clicks on any visual, especially a bar chart, you'll need to attach a different event handler such as dataSelected or visualClicked.
3. Safe Fallback for Missing Filters
Ensure your getSlicerState() logic won’t break if the visual isn’t a slicer, or returns no filters.
Please refer below Microsoft article.
How to embed Power BI content in a Vue app | Microsoft Learn
If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.
Thank you
Hi @Anonymous ,
Thank you for reaching out to the Microsoft Community Forum.
This appears to be triggered only when clicking the bar graph, meaning the bar chart's click interaction is not sending a valid filter payload.
Root cause:
In Power BI visual interactions (like clicking a bar): Power BI tries to serialize the filter(s) applied due to that interaction. If the filter object is empty, malformed, or undefined, this message is logged.
Your handler expects that getSlicerState() always returns slicers with valid filters, but clicking a visual like a bar chart is not a slicer action, and may trigger interaction events without any filter (especially if cross-filtering is disabled or no filter context is applied).
Please Check below things.
1. Check for empty filters before processing
In your 'rendered' event, ensure you check for existence of filters before processing:
2. Visual Interactions vs. Slicer State
You're triggering slicer state serialization inside a rendered event. But this event doesn't correlate to bar chart clicks.
To handle clicks on any visual, especially a bar chart, you'll need to attach a different event handler such as dataSelected or visualClicked.
3. Safe Fallback for Missing Filters
Ensure your getSlicerState() logic won’t break if the visual isn’t a slicer, or returns no filters.
Please refer below Microsoft article.
How to embed Power BI content in a Vue app | Microsoft Learn
If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.
Thank you
Hi @v-dineshya - Thanks for your support and prompt response. It did help me to identify the problem.
Hi @Anonymous ,
If my response has resolved your query, please mark it as the "Accepted Solution" to assist others. Additionally, a "Kudos" would be appreciated if you found my response helpful.
Thank you
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |