Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
michaelshparber
Advocate V
Advocate V

Dynamic column header in Matrix

Hello friends,

I need my matrix columns to show months' names according to the slicer value chosen.

I understand that it is not yet supported and I have voted for an idea on this.

But I am still looking for a workaround, I feel there is one if we think out of the box.

Please help

Capture.JPG

 

1 ACCEPTED SOLUTION

Hi,

 

After my test, I think if you do not have column headers, you can not dynamically change measure headings.

And also custom visuals can not reach this.

 

Best Regards,

Giotto Zhi

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

@v-gizhi-msft 

the pbix file link is broken. Can you reshare it again?

 

Please! Many Thanks!

v-gizhi-msft
Community Support
Community Support

Hi,

 

If your data is like my test table as below, i have a workaround:

10.PNG

Please create a column to show Year and Month:

Year&Month = FORMAT('Table'[Date],"YYYY-MMM")

Then create a calculated table, choose its column as a slicer:

Slicer = SELECTCOLUMNS('Table',"Date",[Date],"Name",[Year&Month])

Then create a measure to show the chosen month's data and previous one month's data:

Value in Matrix = 
IF (
    SELECTEDVALUE('Table'[Date]) <= MAX('Slicer'[Date]) && SELECTEDVALUE('Table'[Date])  >= DATE(YEAR(MAX('Slicer'[Date])),MONTH(MAX('Slicer'[Date]))-1,1),
    SUM ( 'Table'[Sales] ),
    BLANK ()
)

The result shows:

11.PNG

12.PNG   13.PNG

Here is my test pbix file:

pbix 

Hope this helps.

 

Best Regards,

Giotto Zhi

 

Anonymous
Not applicable

 Hi,
Can you reshare pbix file link please.
TKS

Thank you, @v-gizhi-msft 

Your approach is very nice, thank you for sharing.

I was thinking more towards dynamic Measure headings.

My matrix has rows, several measures (that I want to be dynamic) and no columns.

Maybe there is a trick for this, too?

Maybe a custom visual?

Hi,

 

After my test, I think if you do not have column headers, you can not dynamically change measure headings.

And also custom visuals can not reach this.

 

Best Regards,

Giotto Zhi

Is this still not possible?  I have the same question, where I need column headers to change dynamically.  I need to use a table rather than a matrix visual because I have several non-matrix columns that need to be included.  

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.