Replies: 3 comments 5 replies
-
|
Hi. Have you considered using Metadata Injection (https://hop.apache.org/manual/next/pipeline/metadata-injection.html)? |
Beta Was this translation helpful? Give feedback.
-
|
The only clean way to solve this is by creating an Excel input that has X columns defined, where X is the maximum number of columns you are expecting. As this seems to be date-based you could create an input with 365 columns then Normalise and then remove all rows that don't have data. Or you could add an extra sheet containing a pivot of the data to make your life simpler I don't know if you have any control on how the file is being delivered. |
Beta Was this translation helpful? Give feedback.
-
|
Take a look at these discussions: #4522 and #5128 I attached a custom-made transform, named "Anti-normalizer", that should do the job: you need to specify the "grouping fields" (that must be known, "Subject" in your case), a "key field name" (i.e. "date") and a "value field name" (i.e. "quantity"). The result should be a table with the fields subject, date and quantity (should, because the columns headers are expected to be strings rather than dates...) For extra sake: do you have the possibility to transpose the Excel file, in order to have "Date", "B2C" and "B2B" as headers? For counting and processing matters, it would be waaaaaay simpler... Hope this helps :) |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
I have an Excel sheet with a structure like this:

I want to convert this to a structure where I have 1 row per subject/date combination with the columns date, subject, quantity
I think that the Row Normaliser can do that in general but how do I achieve it with a dynamic number of columns?
Max
Beta Was this translation helpful? Give feedback.
All reactions