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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jpt1228
Responsive Resident
Responsive Resident

Extract Date Cell from Each File to Create Date Column

Hello, I am trying to figure out how to extract the date which resides in a column with a sales quantity. Each month I receive a file that is in the same format with the exception that the date column changes to the most recent year and month. There is an example to the lower left. I need to transform the date into a date column. When I combine the files the first date carries down through the next dates so it looks like I only have 1 month of data. I could do a work around to add the date in the file name and then extract the date into a date column, but that involves me renaming the file each time I import.

 

I receive the data like the bottom Left and want it to look like bottom right any suggestions?

 

         
 ItemQty2018 - 4 ItemQtyDate 
 A22 A22018 - 4 
 B11 B12018 - 4 
 C44 C42018 - 4 
 ItemQty2018 - 5 A32018 - 5 
 A33 B22018 - 5 
 B22 C12018 - 5 
 C11     
         
1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @jpt1228,

 

Please check out the demo in the attachment. 

Extract_Date_Cell_from_Each_File_to_Create_Date_Column

 

 

Best Regards,

Dale

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

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @jpt1228,

 

Please check out the demo in the attachment. 

Extract_Date_Cell_from_Each_File_to_Create_Date_Column

 

 

Best Regards,

Dale

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.