Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone,
I have a measure that uses SVG code, and I'm applying it within a matrix visual. However, when I add this measure to the visual, it causes the slicer selections to be bypassed. Please note that the bypassing isn't caused by the Red, Amber, and Green count measures, as I’ve tested by returning these individually, and they don’t cause any issues. I believe the problem lies within the SVG code. Could anyone help me with this?
I am using this code to create an image based on the counts for red, amber, and green. If anyone has an alternative approach that would avoid the slicer bypassing issue, please let me know.
Hi @tarunbisht20001 -If the SVG code is overly complex or if the calculations are too intensive, consider simplifying the SVG code. Fewer conditions and more straightforward calculations can reduce potential performance issues:Use a basic representation first, then build complexity gradually.Ensure all calculations are efficient.
SVG code in Power BI does not always respect slicer filters, especially when using calculated variables and conditions that can bypass standard filter context.
Instead of using the SVG measure directly, consider creating separate measures for each part of the SVG that outputs numeric values. For example, create measures for the widths and counts separately, and visualize these numerically to ensure they return expected values before reintroducing SVG.
https://m.youtube.com/watch?v=QOcP5OvSwlI
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 96 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |