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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TPC
Regular Visitor

how to build this model data

Hi,

I have an inventory report that is extracted on a monthly basis. 

So the column headers remain the same each month except the data. 

There is no date reference available in the files.

My goal is to store the monthly inventory files in a folder (get data from folder containing the files with monthly add on, so the folder will contain Jan 2023, Feb 2023, Mar 2023, etc inventory files, and they are combined into one spreadsheet to track inventory evolution.

Any advice on how the data model can be built? To note that date reference is not available in the data. 

1 ACCEPTED SOLUTION

Hi @TPC 

Glad to hear that it is what you need.

What you can do is create a new column from example and extract the date from the file name. 

In the screenshot below, I generated the Date column form the Name column. 

HughLa_1-1676887368546.png

 

Hope that you come right with this.

Hugh

 

 

 

 

 

View solution in original post

3 REPLIES 3
HughLa
Resolver IV
Resolver IV

TPC
Regular Visitor

hi @HughLa ,

 

Thanks alot! And that is the solution I needed. However, I have one further question. After the date column is extracted, it is not in date format. When I left click on the top left hand of the "date column" that has been created to extract the date from the file name, it gives an error. Could you show me the way to solve this please?

 

 

Hi @TPC 

Glad to hear that it is what you need.

What you can do is create a new column from example and extract the date from the file name. 

In the screenshot below, I generated the Date column form the Name column. 

HughLa_1-1676887368546.png

 

Hope that you come right with this.

Hugh

 

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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