Tag not monitored by Microsoft.
Post/ask in the Power BI community:
https://community.fabric.microsoft.com/
https://community.fabric.microsoft.com/t5/Power-BI-forums/ct-p/powerbi
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
in power bi, how to use a field parameter to switch on/off the visibility of columns in a array/matrix visual ?
Tag not monitored by Microsoft.
Post/ask in the Power BI community:
https://community.fabric.microsoft.com/
https://community.fabric.microsoft.com/t5/Power-BI-forums/ct-p/powerbi
Use a field parameter as the column field in the matrix and drive it with a slicer; switching columns on/off is done by changing which fields are selected in that parameter.
Column Selector).Column Selector) into the Columns or Values bucket of the matrix, depending on whether the parameter represents dimensions or measures:
Parameter = {
("Customer", NAMEOF('Customer'[Customer]), 0),
("Category", NAMEOF('Product'[Category]), 1),
("Color", NAMEOF('Product'[Color]), 2),
("Product", NAMEOF('Product'[Product]), 3)
}
This setup lets the matrix dynamically show or hide columns based on the field parameter selection, without separate show/hide logic for each column.
References: