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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.