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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MIslam2020
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
v-eachen-msft
Community Support
Community Support

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
v-eachen-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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