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

dynamic column header/data based on Year Quarter and month selected in slicer

I have 3 columns: 

date, Location, Sales. Here is sample data.

Capture.JPG

I want to populate a table visual for Location-wise total sales based on slicer selection, where I would like to add a date hierarchy slicer (Year/Qtr/Month). and Table visual should filter based on that slicer.

Column Header should change based on slicer selection like in the below scenario:

Suppose is Year selected 2020 then the column header will show (2020 Sales).

If further Qtr1 is selected under 2020, then the column header will show (2020-Q1 Sales)

if further Month Name (Apr) is selected, then column header will show (2020-Q1-Apr Sales).

 

Thank you in Advance.

2 REPLIES 2
kulpowerbi
Helper I
Helper I

@amitchandak  I want to add a YTD column as well which should not change based on the slicer. is it possible to have two columns (measures) one is for the selected month and another is for YTD?

amitchandak
Super User
Super User

@kulpowerbi , you can not change the measure header. But you can give dynamic title to visual

 

refer

https://www.youtube.com/watch?v=TYLKDPcvgK8
https://www.blue-granite.com/blog/create-a-dynamic-title-in-power-bi-updated

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