Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Sawtooth decay charts in Power BI

Hello!, 
I am trying to create a cyclic graph in Power BI with a condition added upon it. 
I have the following data structure. 

DayStarting Amount Safety StockUnits per DayLot SizeOn Hand Inventory
080055030200800
180055030200770
280055030200740
380055030200710
480055030200680
580055030200650
680055030200620
780055030200590
880055030200560
980055030200730
1080055030200700

The objective is to generate a decay curve with saw tooth like features. The starting on hand stock (800 units) decays at the rate of 30 units per day. The day on which it goes below the safety stock value, lot size number of units are added back to the system again. This cycle continues. The objective is to create a column like the last column (on hand inventory) which tracks these movements and shows the current on hand inventory at any given time. 
The final graph created would look something like this. (The dotted lines should indicate the safety stock level in my case).

 

 



4 Replies