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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
reggierevello
Frequent Visitor

Record Daily Data with DAX

Hi,

 

I'm using a file that each day the data is replaced with the latest information at the cut off time.

 

I need to record the data every day to be able to create historical data and charts.

 

Any help on this?

 

Thanks,

Reggie.

4 REPLIES 4
erik_tarnvik
Solution Specialist
Solution Specialist

Do these file have different names each day, for example with a time/date stamp in the file name? If so, place all files in the same directory and use "Folder" as your data acquisition method, i.e. under Get Data, pick More... - Folder. This will pull all files from a designated folder at once. 

Hi Erik, the file has the same name every day.

OK. There are (at least) two ways to go about this. The easiest by far would be to figure out a way to rename that file so that the file name includes a date stamp and move it into a folder as I suggested. This can for sure be achieved, either by doing it manually, by working the problem at the source (i.e. whatever system produces the file), or by a script that runs every day just after the cut-off. For the last one, if you are not comfortable doing this perhaps you can get help from your IT department.

 

The second method is much more involved but I have used it successfully. See the below post:

https://community.powerbi.com/t5/Desktop/How-to-collect-data-from-a-spreadsheet-everytime-it-is-upda...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.