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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
BorislavK
Frequent Visitor

Change the matrix column names dynamically based on date

Hello,

I have a matrix whose rows are teams and teams members and whose columns are their time utilisation for the current week and the upcoming 11 weeks:

BorislavK_0-1655732853784.png

What I want is for the column names to be dynamic, based on the current week. For example, it is the 26th week of the year today, so I'd want the columns' names to be CW26, CW27, ... CW35. 

 

Does anybody know if this is possible in Power BI?

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @BorislavK ,

 

Please create a calculated column and drag it into the matrix column field and apply the date filter as shown in the figure.

Week = FORMAT('Table'[Date],"\C\W"&"WW")

vcgaomsft_0-1655949272331.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @BorislavK ,

 

Please create a calculated column and drag it into the matrix column field and apply the date filter as shown in the figure.

Week = FORMAT('Table'[Date],"\C\W"&"WW")

vcgaomsft_0-1655949272331.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.