cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
pratafran
Helper III
Helper III

Store and "freeze" column data prior refresh

Hello!

 

I have a tracking report with a list of shipments and their ETA-D (Estimated Time of Arrival to Destination).

 

My PBI refreshes every 30 min to reflect tracking information in a report and show the most recent ETA (pulled from online data source)

 

I want to create a measure to compare current ETA versus previous ETA and monitor if there are big changes (for example, a +1 week of delay vs previous ETA).

 

The problem is that when it automatically refreshes, I lost the previous data to make the comparisson.

 

Is there a way of storing data (like copy and pasting column values to another) upon refresh?, that way I would be able to keep two columns, the ETA that automatically refreshes and overwrite with the most recent date, and a secondary column "previous ETA" that is overwritted with the column ETA data prior each update.

 

Thanks

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@pratafran ,

 

I'm afraid this could not be achieved beacause power bi will not save the data which is not existing in the data source. When you refresh the dataset, if you have deleted the old data in your data source, these part of data will also not appear in power bi dataset.

 

Community Support Team _ Jimmy Tao

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

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

@pratafran ,

 

I'm afraid this could not be achieved beacause power bi will not save the data which is not existing in the data source. When you refresh the dataset, if you have deleted the old data in your data source, these part of data will also not appear in power bi dataset.

 

Community Support Team _ Jimmy Tao

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

Thanks everybody for the answers. Unfortunately it seems there is not solution yet for this.

 

I made a workaround by putting an intermediate process outside BI (macro downloading a daily copy of the tracking database to excel file in a folder) and then importing the folder to PBI (one file per day) and compiling them all in an histoical database. I eliminate duplicates and only keep the records where there is ETA changes, that way I'm able to have the log.

 

Regards

Hello,

Could you give me more info on the macro you made, please ? How did you do that ?

Greg_Deckler
Super User
Super User

This one has been asked quite a few times over the years. There are ways to do this but they are manual. May be some third party tool out there that can help. Probably some hacks and work-a-rounds but every 30 minutes, that's tough. For example, duplicate your query, load data, turn off refresh. But that will not work in your case I do not believe. Seems to me that you need to implement some sort of staging table where you can implement this logic and then point Power BI to that. Others may have better options.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors