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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kleighton
Helper II
Helper II

Table Column headers based on measure

Hi

 

I have the following table showing current stock balance and the forceasts and balances over the next 3 months.

kleighton_0-1659442583095.png

I would like to change the column headers to use the dynamic Month name instead of +1, +2,+3 etc. For example, i could use a measure to return the desired name.

TMN+2 = (Format(EOMONTH(TODAY(),+2),"MMM"))&" " & "Bal."
 
kleighton_0-1659518079950.png

 

Is there any way to use dynamic values or measures as column header values??

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @kleighton 

Thanks for reaching out to us.

You can refer to this solution, Solved: Re: Dynamic column header in Matrix - Microsoft Power BI Community

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@kleighton , You can have measures like

 

next 3 and last 3  =
var _max = eomonth( today() ,3)
var _min = date(year(_max), month(_max)-6,1)
return
CALCULATE(SUM(Sales[Sales Amount]),filter(date, date[date] <=_max && date[date] >=_min))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

HI, thanks for your reply!

 

My main question is regarding the table column names, how can i change them to show the dynamic month name? or is it even possible?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.