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
Hi Guys,
I have data like below
CountryCityPeriod
| A | aa | P8 |
| A | bb | P8 |
| A | cc | P8 |
| A | dd | P8 |
| B | ee | P8 |
| B | ff | P8 |
| B | gg | P8 |
| B | hh | P8 |
| B | ii | P8 |
| C | jj | P8 |
| C | kk | P8 |
I want P8 value to be concatenated for "City" Column name so the column name will be "City (P8)". How to achieve this?
Attaching pbix for referrence
https://drive.google.com/file/d/1Fue2wfzz9GtOg6qTl9K-Nd1veLAuAif9/view?usp=sharing
Please help me on this!
Thanks in advance!
Solved! Go to Solution.
NewStep= Table.RenameColumns(PreviousStepName,{"City","City ("&PreviousStepName[Period]{0}&")"})
NewStep= Table.RenameColumns(PreviousStepName,{"City","City ("&PreviousStepName[Period]{0}&")"})
Now whenever the value changes column name changes, this is working fine but when i click on close and apply visual is getting error because column name got changed right. Is there any way to handle this situation?
sorry, have no idea to resolve this.
Okay, Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |