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
arjun_para
Regular Visitor

Rename multiple column names at once in power query

arjun_para_0-1729142267854.png

 

I want to rename these columns at once as April 2019, may 2019, June 2019........Sept 2024

 

3 REPLIES 3
Anonymous
Not applicable

Hi @arjun_para 

 

First of all, I need to confirm with you, does your data include all months from 2019 to September 2024? Is there a separate table for each year? 

 

Could you please tell me the purpose of doing this? The current table structure may not be suitable for subsequent calculations. It is recommended to use unpivot to modify the table structure.

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

yes all months are there from  April 2019 to  Sept 2024, this is imported from an excel file.There is no separate table for each year  

arjun_para_0-1729766971624.png

 

 

v-csrikanth
Community Support
Community Support

 
Hi @arjun_para  
 
Thanks for using the Microsoft Fabric Community.
 
Step1: In Power BI, go to Home > Transform Data > Transform Data to open Power Query Editor.
Step2: In the formula bar, you can manually rename columns with the below syntax:
____________________________________________________________________________
= Table.RenameColumns(PreviousStepName, {
    {"April", "April 2019"}, 
    {"May", "May 2019"}, 
    {"June", "June 2019"},
    {"July", "July 2019"},
    {"Aug", "August 2019"},
    {"Sept", "September 2024"}
})
____________________________________________________________________________
Replace PreviousStepName with the name of the previous step in your query.
 
If the above information helps you, please give us a Kudos and maked the reply as a solution.
 
Thanks,
Cheri Srikanth

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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