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 moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I am working on a report where I want auto adjust columns width in a matrix based on no. columns present in the matrix which is in turn coming from a date range slicer. This is similar feature which is there in clustered column chart, not sure the same can be replicated in matrix.
Below measure helps me create columns with identical width, but as soon as I add new date in the range it doesn't refresh which is obvious as auto-size width is turned off.
I uderstand the purpose of above measure is different, however want to know if this can be somehow achieved. Any suggestion will be highly appreciated.
Thanks
Hi @Saibal_78 - Unfortunately, the matrix visualization in Power BI doesn't currently support dynamic column width adjustments similar to the clustered column chart.
similar workaround we can do it by combination of calculated columns and conditional formatting to simulate dynamic column widths.
create a new calculated column :
Col_Width =
VAR Selected_Months = ALLSELECTED('Date'[Date])
VAR Selected_Months_Count = CALCULATE(DISTINCTCOUNT('Date'[Period]), 'Date'[Date] IN Selected_Months)
RETURN
Selected_Months_Count * 10 // Adjust the multiplier to control the width
use this calculated colum based conditional formatting and select the font size to influence the width of the column directly.
Try the above approach and let know.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi
Thanke for the reply, not sure if I understood your last sentence, do you mean conditional formatting of the value field as shown in below screen shot? what exact steps should I follow?
Thanks
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 25 | |
| 25 |