Hi Loed,
I have tried to transform from the original source to see the records consilidated as you saw in the first screenshot, if I can skip that "middle" transformation that would be great, so I am posting the screenshots of the original source and the end result I am looking for. Please note that this is BPS data, meaning transactional data, and therefore multiple records that represent a single value.
You will notice the source screenshot shows a single vendor, with two materials against # plant stat keyfigure CS158. The result must be the vendor / material combination result (yellow highlights) and stored against the plant, in this case P120 stat keyfigure CS149 where 0QUANT_B <> 0.
I have tried so many things that I am sure some of you will giggle all the way. :-)
Thanks