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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AvPowerBI
Post Patron
Post Patron

Dynamically change column header

Hi,

 

Is it possible to have the column header on a Table or Matrix Visualization to change its name if a filter is applied?

 

So if the Field Invoiced is set to "N" then I want the Column header label to show Days Old, if it is set "Y" then I want the Column header label to show Days to Deliver

 

Thanks

2 REPLIES 2
Pragati11
Super User
Super User

HI @AvPowerBI ,

 

Yes it is possible by creating a measure using the values from a slicer and using this measure as a dynamic title of the visual.

You haven't given me anything on your data like what your data looks like.

If you see the small video below, my visual title is changing based on the selection from my slicer on the right.

dynamicTitle.gif

I created a simple measure as follows:

Conditional Title = 
VAR prodName = VALUES('Supermarket Sales'[Product line])
VAR occur = COUNTROWS(ALL('Supermarket Sales'[Product line])) = COUNTROWS(prodName)
RETURN
IF(
    occur, "Summary of Products",
    CONCATENATE("Summary of Product Line: ",
        CONCATENATEX(
            prodName,
            'Supermarket Sales'[Product line], 
            ", "
        )
    )
)

The used this measure in the title area of the visual by clicking on the "fx" sign:

Pragati11_0-1638271673201.png

This opens a new window to select the meausre that is created above to dynamically change the title of the visual:

Pragati11_1-1638271743582.png

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

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!!

amitchandak
Super User
Super User

@AvPowerBI , I doubt you can change column name/header.

But can change visual title based on measure. So you can disply information in title, using a measure 

 

Measure  = "Days Old " & selectedvalue(Table[Column])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors