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
jmvidal
Helper II
Helper II

How to buil info with historical values

HI,

I want to keep track of the evolution of stocks.

Today I capture a table from our ERP with:

currentdate, product, stock, value

 

Is there any way I could store this info so I could get the evolution of stock? something like:

 

2020-04-15, product, stock, value
2020-04-16, product, stock, value

etc

 

Thanks!

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

Do you have any date column when capture these data from your ERP like this?

2.PNG

If not, can you capture the data import Date by other way?

When you successfully capture this date everyday, try to create a calendar table first.

Then you can easily make a comparsion between calendar table date and this import date that if equals, return three columns data.

 

Best Regards,

Giotto

 

amitchandak
Super User
Super User

@jmvidal , Refer if this can help

https://www.thebiccountant.com/2017/01/11/incremental-load-in-powerbi-using-dax-union/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for your answer.

I am afraid this is not what I need: as far as I understood, having two tables and make a union with them might work when having historical data and recent data, in order to avoid loading large quantities of rows.

I my case, I need to keep yesterday's rows, then add today's rows, then add tomorrow's rows and so on, because I need to know (in my example) the stock I am having every single day and see the evolution.

Thanks!

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.