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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
zervino
Helper I
Helper I

Dynamic column names from measure

I would like to create a table where the column names are the years.

 

Currently I have two drop down slicers to select the years to compare (ie. Year 1, Year 2). I can correctly create the table below, but the column headers show Year 1 and Year 2. Instead I would like to show the selected year numbers (which are stored in other measures: year_1, year_2)

 

Is this possible?

 

zervino_0-1698870648198.png

 

1 REPLY 1
ChiragGarg2512
Solution Sage
Solution Sage

@zervino , Look into field parameters if that could help in this situation.

 

Material on field parameter:

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f
Field Parameters- Conditional Formatting
: https://amitchandak.medium.com/field-parameters-conditional-formatting-517aacc23fdf

 

Thank You

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors