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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Luukvv93
Helper II
Helper II

Need help with a measure stock cycle

Hello community, I need your help with a measure

 

I have a dataset including stock replenishment and quantity sold per date.

The distribution looks as follows:

 

tempsnip.png

 

The measures I'm using have the following DAX

 

Quantity sold = SUM(quantity sold)
Stock replenishment = SUM(stock replenishment)

Now I want a measure that looks like the line below. Each time stock has been replenished the line goes up, and for each day quantity is sold it deducts from the stock until stock is replenished again. 

 

Order cycle.png

Here I have some sample data:

 

Date Stock replenishment Quantity sold
15-3-2019 11088 5123
16-3-2019 4200
17-3-2019 1000
18-3-2019 2016 500
19-3-2019 11088
20-3-2019 3109
21-3-2019 11088 9000
22-3-2019 2800 3600
23-3-2019 4800
24-3-2019 2000
25-3-2019 11088

 

 

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

@Luukvv93 ,

 

I would suggest you to use Gantt Chart or Waterfall chart.

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381364?tab=Overview

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-waterfall-charts

 

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

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Luukvv93 ,

 

I would suggest you to use Gantt Chart or Waterfall chart.

https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381364?tab=Overview

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-waterfall-charts

 

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors