Forum Discussion
powerbiexpert22
Impactful Individual
1 year agoDynamic Column Header
I am using below data, if i select year 2023 in slicer then column header should display as "Revenue for 2023' which is 260 and "Previous Year Revenue " which is 150 as shown below Raw Data: ...
- 1 year ago
Hi powerbiexpert22,
Power BI currently doesn't support the column headder change dynamically. But there is a workaround keep the text boxes on column headder and group them all together. You can achive your requirement.Measure 1(For selected year) = "Revenue for " & SELECTEDVALUE('DateTable'[Year]) Measure 2(For previous year) = "Revenue for " & SELECTEDVALUE('DateTable'[Year])-1Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.
mh2587
Super User
1 year agoReferring you to the following article might help you
https://inforiver.com/blog/general/dynamic-column-headers-power-bi/