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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
SBC
Helper III
Helper III

Dynamic Column Name in Table Visual Based on Date Slicer Selection

Hi,

I am using a table visual in Power BI, and I want to implement a feature where the column header and data dynamically change based on the user’s selection from a date slicer.

For example:

  1. If the user selects "March" from the slicer, the table should display the month name (e.g., "March") as the column header along with associated data (e.g., "Sales Week1", "Sales Week2", etc.).
  2. The other columns, like "Revenue Generated," should remain static, showing their corresponding values for the selected period.

Sample Table Design:

MarchRevenue Generated
Sales Week110,000
Sales Week215,000
Sales Week312,000
Sales Week411,000

How can I achieve this using DAX or other Power BI functionalities? Any suggestions or guidance would be highly appreciated!

 

Thanks,

SBC

1 ACCEPTED SOLUTION
sanalytics
Super User
Super User

@SBC 
The easiest way to achive this kind of scenario is to create a separate measure and use selection of it..
Below are steps :
1) Rename the Sales week with space.
2) Create a basic measure with selected value function.
3) Drag the measure in card visual and format this...
4) Group the card visual and Table visual
Nothing fancy..
Below screenshots

sanalytics_0-1737452331660.pngsanalytics_1-1737452371511.png

 

There could be a way to achive this by adding a disconected table and write a measure top of it.. But it will add an unnecessary a table into your model.
Let me know which way you want to like.
Below is the attached pbix file.

 

Hope it helps

 

Regards

sanalytics



 

View solution in original post

1 REPLY 1
sanalytics
Super User
Super User

@SBC 
The easiest way to achive this kind of scenario is to create a separate measure and use selection of it..
Below are steps :
1) Rename the Sales week with space.
2) Create a basic measure with selected value function.
3) Drag the measure in card visual and format this...
4) Group the card visual and Table visual
Nothing fancy..
Below screenshots

sanalytics_0-1737452331660.pngsanalytics_1-1737452371511.png

 

There could be a way to achive this by adding a disconected table and write a measure top of it.. But it will add an unnecessary a table into your model.
Let me know which way you want to like.
Below is the attached pbix file.

 

Hope it helps

 

Regards

sanalytics



 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.