Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a view which has multiple measures calcuated at database level like current year count ,previous year count, current year month count, previous year same period count ,current year week count, previous week count previous year and so on. But,the problem here it is ,it showing only measure names instead of date values in matrix column headers.
I wanted replace measure names with dates. I hope its clear? How to dynamically display the column headers in Matrix report.
Currently the data appearing as below:
| Business Unit | Previous Year | Current Year | Previous Year Month | Current Year Month | Previous Year week | Current Year week |
| 1 | 12 | 15 | 2 | 2 | 1 | 1 |
| 2 | 12 | 15 | 3 | 4 | 2 | 2 |
| 3 | 13 | 14 | 1 | 5 | 1 | 3 |
Excepeted report should be like below
| Business Unit | 2019 (total YTD till system date previous year) | 2020 ( total YTD till system date) | June 2019(total MTD till system date previous year) | June 2020 (total MTD till system date current year) | 06/10/2019(WK) | 06/10/2019(WK) |
| 1 | 12 | 15 | 2 | 2 | 1 | 1 |
| 2 | 12 | 15 | 3 | 4 | 2 | 2 |
| 3 | 13 | 14 | 1 | 5 | 1 | 3 |
Hi @Anonymous ,
It's impossible to achieve the idea in current version(2.81.5831.821 64-bit (May 2020)).
For more you can refer to the case.
Maybe you can submit an idea .
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , refer if these can help
https://www.youtube.com/watch?v=yEemVBiaTuk
https://www.goodly.co.in/dynamic-column-names-power-query/
https://www.thebiccountant.com/2018/07/04/efficiently-rename-column-names-with-a-function-in-power-bi-and-power-query/
https://community.powerbi.com/t5/Desktop/Dynamic-column-name-from-its-value/td-p/189442
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 35 | |
| 33 | |
| 32 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 96 | |
| 77 | |
| 67 | |
| 65 |