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
Mani_ms
Helper I
Helper I

Matrix column names based on slicer selection

Hi ,

I want to display column name to be based on slicer selection period, i have created two measure using min and max.

 

Want to change the column header name to be changed as "202101" in place of "Previous period" and "202105" in place of "Current period". 

Mani_ms_0-1626176330165.png

 

1 ACCEPTED SOLUTION

Hi @Mani_ms 

 

It is not supported to change measure names dynamically because Power BI uses a definite name to refer to a measure. 

 

A workaround would be: insert a blank button, set its Button Text with a measure, turn off button's outline, drag this button to cover column header of matrix, group matrix and button.

 

Text measure is like below. It should be of Text type, otherwise it cannot be selected for the conditional Button Text setting.

Max Value = CONVERT(MAX('Table'[YearMonth]),STRING)

071503.jpg

 

Reference: Use grouping in Power BI Desktop

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Mani_ms , I doubt you can have a dynamic measure name. If needed you can have column year on column of matrix

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

how to add dynamic measure name?

Hi @Mani_ms 

 

It is not supported to change measure names dynamically because Power BI uses a definite name to refer to a measure. 

 

A workaround would be: insert a blank button, set its Button Text with a measure, turn off button's outline, drag this button to cover column header of matrix, group matrix and button.

 

Text measure is like below. It should be of Text type, otherwise it cannot be selected for the conditional Button Text setting.

Max Value = CONVERT(MAX('Table'[YearMonth]),STRING)

071503.jpg

 

Reference: Use grouping in Power BI Desktop

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

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
Top Kudoed Authors