Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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:
Slicer:
Expected Results
Solved! Go to Solution.
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])-1
Thanks,
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.
Hi @powerbiexpert22,
Thank you for reaching out in Microsoft Community Forum.
Thank you @ajaybabuinturi , @mh2587 for the helpful response.
As suggested by ajayBuinturi, mh2587., I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.
Please continue using Microsoft community forum.
Regards,
Pavan.
Hi @powerbiexpert22 ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.
Thank you.
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])-1
Thanks,
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.
Referring you to the following article might help you
https://inforiver.com/blog/general/dynamic-column-headers-power-bi/
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |