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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RayMundo00
Regular Visitor

Rolling Stock based on Demand (Inventory Evolution)

Hi Everyone

I wish to know how we can calculate Running stock column Desire table (see image), In this example I know the current 'Qty On Hand for item 'A' and the Demand per date, I'd like to calculate a measure called Rolling Stock (see image). I've seen other similar posts here but I can't replicate the measures.

 

The key column between 'Demand' and 'Warehouse' tables is item column. The Demand table is linked to a Calendar table.

 

I hope you can help.

Thanks in advance

 

 

RayMundo00_0-1690334326012.png

 

1 REPLY 1
amitchandak
Super User
Super User

@RayMundo00 , refer my measures using date table

 

Inventory / OnHand

CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <min,date[date]))) -
CALCULATE(SUM(Table[Sold]),filter(date,date[date] <min,date[date])))

 

Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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