Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I want to Calculate Date at which Stock Quantity becomes zero | ||||||||||||||||||||||||||||
The requirement is as follows: | ||||||||||||||||||||||||||||
I have a Date table created using the Min and Max Dates (Lets Say Max date in Table is 31-July-2021) | ||||||||||||||||||||||||||||
I have calculated Total Quantity available on the last date (31-July-2021) for a product X (Let this be 100 units) | ||||||||||||||||||||||||||||
I have calculated Daily average sales for last 2 months for X (Say it is 5 units i.e. 5 units of Product X are sold daily for last 2 Months) | ||||||||||||||||||||||||||||
I have incoming stock data table which says when stock is coming (Lets assume incoming stock for Product X is coming on 08-Aug-2021 of 20 Units) | ||||||||||||||||||||||||||||
So total Available Stock quantity for next Day (1-Aug-2021)will be : Total Stock Available on Last date (100)- Average Daily Sales(5) + Incoming stock quantity(0) | ||||||||||||||||||||||||||||
I want to calculate on which date will the stock quantity be zero | ||||||||||||||||||||||||||||
Expected Output should be like:
|
@vrushabjain510 Seems like you want something like Days of Supply: https://community.powerbi.com/t5/Quick-Measures-Gallery/Days-of-Supply/m-p/635656#M318
Basically a while loop.
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
103 | |
93 | |
83 | |
64 |