cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Dynamic Column Header change based on Year Slicer

Hi Folks, I've slicer as FISCPER where values are 202001, 202101, 202201, 202301, 202401, 202501, 202601. I also have Budget Transfer detail table where I've column name AnnualM1, AnnualM2, AnnualM3, AnnualM4, AnnualM5, AnnualM6, AnnualM7, AnnualM8, AnnualM9, AnnualM10, AnnualM11, AnnualM12, AnnualYr1, AnnualY2, AnnualY3, AnnualY4, AnnualY5, Annualy6. 

Based upon FISCPER "2021001" Selection  AnuualM Column  will change to Jan-2021, Feb-2021, Mar-2021, Apr-2021.........Dec-2021 and then AnnualYr will turn to be as  2022, 2023, 2024, 2025, 2026, 2027. 
Not quite sure, how am i able to change the column hearder dynamically based on FISCPER in Power BI. 
Thank you.

 

PBI_Dynamic_Column.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Dynamic Column Header change based on Year Slicer

Hi @MIslam2020 ,

 

If your "AnnualM" and "AnnualY" are in the different columns, you could split data as character and number. Then you could combine them as "YYYY-MM" type.

Here is a resolved case for your reference.

https://community.powerbi.com/t5/Desktop/Dynamic-column-header-in-Matrix/m-p/954608

 

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

View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Dynamic Column Header change based on Year Slicer

Refer, if this can help

https://www.youtube.com/watch?v=TYLKDPcvgK8

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-format-visual-titles



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
Community Support

Re: Dynamic Column Header change based on Year Slicer

Hi @MIslam2020 ,

 

If your "AnnualM" and "AnnualY" are in the different columns, you could split data as character and number. Then you could combine them as "YYYY-MM" type.

Here is a resolved case for your reference.

https://community.powerbi.com/t5/Desktop/Dynamic-column-header-in-Matrix/m-p/954608

 

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

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors