Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Separate Values in Column Compared to SUM from another Column

Hello all,

 
I need a help with PowerBI. Measure or a custom column function would work, I prefer a DAX measure.
 
I need the image without color to look like the one with color. Attached.
 
Logic: Image 1, both are different table merged with the help of a left outer join based on header material number.
 
** A material can have multiple batches.
 
Volume produced should sum up and equal quantity units, extra amount of volume produced should move to the next cell in the same logic and equal quantity units again. Leftovers go to the next cell with same logic. Thanks for help.

 

 

 

Inputoutput

6 Replies