Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
Here is a sample table of the specific item, calculating its stock (Yellos column) level per operation day:
Here is the data table:
Operation Day | Stock | Daily Demnand | Shipment |
0 | 152 | - | |
1 | 129 | 23 | |
2 | 106 | 23 | |
3 | 83 | 23 | |
4 | 60 | 23 | |
5 | 37 | 23 | |
6 | 14 | 23 | |
7 | - | 23 | |
8 | - | 23 | |
9 | - | 23 | |
10 | 77 | 23 | 100 |
11 | 54 | 23 | |
12 | 31 | 23 | |
13 | 8 | 23 | |
14 | - | 23 | |
15 | - | 23 | |
16 | 977 | 23 | 1000 |
17 | 954 | 23 | |
18 | 931 | 23 | |
19 | 908 | 23 | |
20 | 885 | 23 |
With the excel formula, calculating the stock level: =IF(B2-C3+D3>0,B2-C3+D3,0)
Note: It starts from day 1 only. Day 0 is the initial, starting stock.
I would like to have the calculated column in POwer BI, with the same results.
Thanks in advance,
One clarification:
Idealy I would like to have this result table as a "Virtual Table" within the DAX code
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |