Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
H_insight
Helper V
Helper V

Is there a way of merging columns and replacing values by using the latest column name?

Hello,

 

Is there a way of merging columns and replacing values by using the latest column name? Currently, the data does not hold any date information. (I guess I can extract the date from the column name).

 

The goal is when a new file is uploaded (i.e. Mar), the new data will replace all old data (i.e. Feb). I have tried to merge columns, but I can see values for all previous data.

 

Columns Example:

Column Header
FY22 Actual (Jan)
FY22 Actual (Feb)
FY22 Actual (Mar)
FY22 Notes (Jan)
FY22 Notes (Feb)
FY22 Notes (Mar)

 

Sample File

Many thanks

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

I think best way out would be to filter on File Name column which is a date column where #"Changed Type" should be replaced with previous step name

= Table.SelectRows(#"Changed Type", each ([File Name] = List.Max(Table.Column(#"Changed Type","File Name"))))

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

I think best way out would be to filter on File Name column which is a date column where #"Changed Type" should be replaced with previous step name

= Table.SelectRows(#"Changed Type", each ([File Name] = List.Max(Table.Column(#"Changed Type","File Name"))))

Thanks @Vijay_A_Verma . I have used your input with a tweak to deliver the desired output.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors
Users online (4,733)