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
cleansquare
Regular Visitor

Replicate latest known value on incoming weeks

Hi PBI community,

 

I have this table that shows, by year & week number:

- _max_stock : the latest inventory volume of the week (I get inventory by dates and so I wan to knwo for everyweek the latest closing inventory)
- _total_units_forecast : simply a measure that forecast the next Sales Volume for 2023

- _open_qty : qty that are being delivered but not in stock right know

- _total stock forecast : 

this measure would do : ( latest inventory status (997 034) + open qty (545 192) ) - _total_units_forecast (510 995)

and so at W6 : result woudl be : 1 031 231 on total stock forecast for W6

at W7, I will have the _max_stock of W6 and so I will do the same Calculation.

 

My big blocking point at the moment is my unability to replicates the latest stock on the incoming Sales Week. Actually the formulas only takes the open_qty (545 192) - Units_Forecast (510 995)
I tried many measures using LASTNONBLANK, LASTDATE, MAXX, SUMX 

cleansquare_0-1675960634682.png

cleansquare_1-1675960669380.png

 

 

Your help would be really appreciated

Thanks

0 REPLIES 0

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.