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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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