I've been trying to wrap my head around this, but I cannot seem to find an easy solution:
I have a table with known and unknown entries. Each entry has a column with a numeric value representing it. How do I remove the unknown entries, and equally distribute its numeric value across other known entries?
Here is an example:
Original table:
|Item | Size | Count |
|-----|------|-------|
|A | null | 20 |
|A | M | 5 |
|A | XL | 10 |
|B | null | 12 |
|B | M | 8 |
Desired output:
|Item | Size | Count |
|-----|------|-------|
|A | M | 15 |
|A | XL | 20 |
|B | M | 20 |
Basically, I want to remove the items with null sizes, and evenly distribute its count across other sizes for that same item.
Would be great if I could get some help! Thanks in advance
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…