LuisPacheco
New member
- Joined
- May 30, 2013
- Messages
- 12
- Reaction score
- 0
- Points
- 0
- Excel Version(s)
- 2016
Hello, I'm looking for some guideline in power query, I'm breaking my head without any good results and I know that these case are simple for some of you... What I'm looking are the below results using power query in excel:
Table 1:
Product Inventory Level
A 50
B 12
C 2
D 200
Table 2:
Index Product Used
1 A 5
2 A 10
3 A 2
4 A 1
5 A 20
1 B 5
2 B 5
3 B 20
4 B 50
1 C 1
2 C 1
1 D 100
Results:
I hope that some one can shed a light on this!!
Table 1:
Product Inventory Level
A 50
B 12
C 2
D 200
Table 2:
Index Product Used
1 A 5
2 A 10
3 A 2
4 A 1
5 A 20
1 B 5
2 B 5
3 B 20
4 B 50
1 C 1
2 C 1
1 D 100
Results:
Index | Product | Used | Inv. Level | Inv. Level Amount | Used Current Amount |
1 | A | 5 | 50 | 45 | 0 |
2 | A | 10 | 50 | 35 | 0 |
3 | A | 2 | 50 | 33 | 0 |
4 | A | 1 | 50 | 32 | 0 |
5 | A | 20 | 50 | 12 | 0 |
1 | B | 5 | 12 | 7 | 0 |
2 | B | 5 | 12 | 2 | 0 |
3 | B | 20 | 12 | 0 | 18 |
4 | B | 50 | 12 | 0 | 50 |
1 | C | 1 | 2 | 1 | 0 |
2 | C | 1 | 2 | 0 | 0 |
1 | D | 100 | 200 | 100 | 0 |
I hope that some one can shed a light on this!!
Attachments
Last edited: