Forum Discussion
Material Arrive Po qauntity calculation
Hi All,
I have two exceel sheets in which on hand qty is from Sheet A and Arrive PO Qty is from another sheet based on date.
my week is starting from week 9th - on hand qty numbers to be get from the on hand qty in excel sheet A (static value).
Arrive PO qty to be got from the other excel sheet according to week number. Dynamic usage that can be changed weekly.
Balance for week 9 is static on hand qty + arrive qty - usage (for a particular item) and this balance from week 9 is same as on hand qty in week 10.
On hand qty starts becoming dynamic from week 10 and But initally it is static from week 9
On hand qty + arrive PO qty - usage = balance is our standard operation happening every week to get balance
Balance from previous week is same as on hand qty for next week.
sheet A data
| Item | On Hand Qty |
| 001 0598 36 97 | 500 |
| 001 0599 36 97 | 450 |
| 001 0851 36 97 | 321 |
| 002 1715 9J 97 | 356 |
| 009 0331 32 | 368 |
| 009 0357 34 | 578 |
| 012 9114 22 | 876 |
| 012 9116 22 | 435 |
| 045 0964 22 | 265 |
| 050 0035 22 | 579 |
| 066 0196 22 | 356 |
| 066 0197 22 | 267 |
| 080 0168 22 97 | 211 |
| 080 0168 36 97 | 344 |
Sheet B Data
| Name | Available | QTY | WeeklyUsage |
| 543 0106 36 | 12-04-2024 | 1,000 | 200 |
| 001 0598 36 97 | 13-04-2024 | 1,000 | 200 |
| 001 0598 36 97 | 14-04-2024 | 1,500 | 200 |
| 001 0599 36 97 | 27-02-2024 | 240 | 300 |
| 001 0599 36 97 | 27-02-2024 | 1,200 | 300 |
| 001 0599 36 97 | 25-04-2024 | 1,000 | 200 |
| 001 0851 36 97 | 27-02-2024 | 500 | 300 |
| 001 0851 36 97 | 12-04-2024 | 2,000 | 100 |
| 001 0851 36 97 | 25-04-2024 | 2,000 | 100 |
| 001 0851 36 97 | 25-04-2024 | 3,879 | 100 |
| 001 0851 36 97 | 09-05-2024 | 1,000 | 200 |
| 001 0851 36 97 | 09-05-2024 | 1,000 | 200 |
| 001 0851 36 97 | 09-05-2024 | 1,000 | 200 |
| 001 0851 36 97 | 06-09-2024 | 1,689 | 400 |
| 002 1710 9J 97 | 29-04-2024 | 2,240 | 400 |
| 002 1715 9J 97 | 04-03-2024 | 252 | 200 |
| 002 1715 9J 97 | 27-05-2024 | 1,824 | 100 |
| 002 1715 9J 97 | 03-06-2024 | 2,052 | 250 |
| 003 1268 36 | 23-04-2024 | 6,480 | 350 |
| 003 1268 36 | 24-05-2024 | 950 | 400 |
| 003 1268 36 | 05-07-2024 | 22 | 150 |
| 003 1268 36 | 19-07-2024 | 2,160 | 200 |
| 009 0331 32 | 29-04-2024 | 4,000 | 100 |
| 009 0331 32 | 16-05-2024 | 6,000 | 200 |
| 009 0331 32 | 17-06-2024 | 4,000 | 300 |
| 009 0331 32 | 25-10-2024 | 4,000 | 400 |
| 009 0357 34 | 29-04-2024 | 1,925 | 200 |
| 009 0357 34 | 17-06-2024 | 1,495 | 150 |
| 009 0357 34 | 09-08-2024 | 1,300 | 250 |
| 009 0357 34 | 30-08-2024 | 1,240 | 200 |
| 009 0357 34 | 30-09-2024 | 1,420 | 300 |
| 009 0357 34 | 14-10-2024 | 1,337 | 400 |
| 012 9114 22 | 12-04-2024 | 2,000 | 100 |
| 012 9114 22 | 12-04-2024 | 89 | 100 |
| 012 9114 22 | 07-08-2024 | 2,000 | 200 |
| 012 9116 22 | 26-02-2024 | 0 | 250 |
| 012 9116 22 | 27-02-2024 | 349 | 250 |
| 012 9116 22 | 12-04-2024 | 1,800 | 150 |
| 045 0964 22 | 27-02-2024 | 800 | 100 |
| 045 0964 22 | 18-03-2024 | 1,671 | 200 |
| 045 0964 22 | 15-04-2024 | 2,000 | 300 |
| 045 0964 22 | 15-04-2024 | 2,000 | 300 |
| 045 0964 22 | 22-04-2024 | 3,000 | 250 |
| 045 0964 22 | 24-07-2024 | 3,100 | 450 |
| 045 0964 22 | 30-07-2024 | 2,300 | 350 |
| 050 0035 22 | 08-04-2024 | 500 | 100 |
| 050 0035 22 | 23-04-2024 | 500 | 200 |
| 050 0035 22 | 23-04-2024 | 958 | 200 |
| 050 0035 22 | 06-09-2024 | 547 | 300 |
| 050 0035 36 | 27-02-2024 | 500 | 200 |
| 050 0035 36 | 22-03-2024 | 50 | 300 |
| 050 0035 36 | 08-04-2024 | 1,000 | 150 |
| 050 0035 36 | 15-04-2024 | 1,000 | 250 |
| 050 0035 36 | 27-05-2024 | 1,000 | 350 |
| 050 0035 36 | 07-06-2024 | 1,000 | 400 |
| 066 0196 22 | 27-02-2024 | 52 | 200 |
| 066 0196 22 | 27-02-2024 | 500 | 200 |
| 066 0196 22 | 31-05-2024 | 1,000 | 300 |
| 066 0196 22 | 02-08-2024 | 1,000 | 250 |
| 066 0197 22 | 31-05-2024 | 1,000 | 200 |
| 066 0197 22 | 12-07-2024 | 1,000 | 300 |
| 080 0168 22 97 | 26-04-2024 | 300 | 150 |
| 080 0168 22 97 | 10-05-2024 | 500 | 250 |
| 080 0168 22 97 | 20-05-2024 | 200 | 350 |
how to Acheive the same in Power bi??
amitchandak
Thanks in advance!!
- Anonymous2 years ago
Hi, Anonymous
Start by importing your Excel sheets into Power BI.
Make sure there's a common column between Sheet A and Sheet B that you can use to create relationships in Power BI.
Create a calculated column or measure to calculate the balance.
Balance = SUM(TableA[On Hand Qty])+ SUM(TableB[QTY])-SUM(TableB[WeeklyUsage])Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi, Anonymous
Start by importing your Excel sheets into Power BI.
Make sure there's a common column between Sheet A and Sheet B that you can use to create relationships in Power BI.
Create a calculated column or measure to calculate the balance.
Balance = SUM(TableA[On Hand Qty])+ SUM(TableB[QTY])-SUM(TableB[WeeklyUsage])Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.