Hello forum members,
I'm seeking help with a specific task, and I've already followed (successfully) a guide to extract common invoice data. However, what I need help with now is extracting line items and adding them (column by column) to an Excel sheet in Sharepoint.
The item list appears to be read correctly, containing 5 items with their respective amounts.

The flow of the process is as follows:



The problem
I'm facing a challenge in getting the specific line items to be added to the Excel sheet properly. The current output either exports all together in one column (if using the line item all columns dynamic array) or doesn't produce the desired result.
Goal:
Per new invoice I want the excel sheet to create a new row where the line item amount is imported correctly to the specific column which corresponds with the line item description. If nothing is found then 0 or empty is okey.
It would then look like this (assuming 5 line items)

At the moment, the situation looks like a mess:

PS: I have not found a way to manually create dynamic content per header/line item description and I suspect that is the main issue. Said differently, I cannot add line_item_amount per line item description and that is the problem.

I would greatly appreciate any guidance or suggestions to help me achieve the desired output. Thank you in advance for your assistance!