Forum Discussion
Field Parameter Expand/Collapse for Matrix visualization
- 1 year ago
Hi Jihwan_Kim ,
As per your question, this is an expected behaviour with respect to field Parameter introduced with the GA release of field parameters as of July 2025.
Previously, if using a field parameter in an expanded matrix and switching the dimension or measuring the parameter selected, the matrix would collapse. Starting this month, efforts have been made to keep the matrix in the same state as possible.
Refer- https://powerbi.microsoft.com/en-us/blog/power-bi-july-2025-feature-summary/#post-30545-_Toc203388693
Hope this helps!
Hey Jihwan_Kim,
Looking at your Power BI field parameter issue with the matrix visual, this appears to be expected behavior rather than a bug. Here's what's happening and how to address it:
What's Causing This: When you switch from Country to Unit in the field parameter, Power BI drills down to show the unit level. When you switch back to Country, the visual maintains its current drill state but now shows country data at the unit level context.
Solutions:
- Add Drill State Reset Logic:
- Create a measure that detects field parameter changes
- Use SELECTEDVALUE() to check current parameter selection
- Reset drill context programmatically when parameter changes
- Modify Field Parameter Structure:
- Instead of using hierarchical drilling, create separate field parameters for each level
- Use conditional logic in your measures to show appropriate granularity
- Custom Visual Solution:
- Consider using a custom table visual that resets its state when field parameters change
- This gives you more control over the expand/collapse behavior
- User Training Workaround:
- Document this behavior for users
- Add a text box explaining they need to use drill-up when switching back to higher levels
Quick Fix: Add a bookmark that captures the initial state and a button to "Reset View" - this is often the most practical solution for end users.
The root issue is that Power BI treats field parameter changes and drill actions as separate operations, so the visual doesn't automatically reset its drill state when parameters change.
Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Best regards,
Jainesh Poojara / Power BI Developer