- Posts: 50
- Thank you received: 7
Header Value --> UnPivot
3 months 3 weeks ago - 3 months 3 weeks ago #22590
by downing
Header Value --> UnPivot was created by downing
Last edit: 3 months 3 weeks ago by downing.
The following user(s) said Thank You: admin
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #22591
by admin
Mike
ETL Architect
Replied by admin on topic Header Value --> UnPivot
Please have a look t the following Wiki article
wiki.etl-tools.com/docs/advanced-etl-pro...orming-data/unpivot/
wiki.etl-tools.com/docs/advanced-etl-pro...orming-data/unpivot/
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #22592
by downing
Replied by downing on topic Header Value --> UnPivot
Hello Mike,
thanks for the quick reply.
I expressed myself in a funny way.
The UnPivot works fine.
But I am wondering how to get the alternating month headers in the row.
I then form a delivery date from this.
Greets
Thomas
thanks for the quick reply.
I expressed myself in a funny way.
The UnPivot works fine.
But I am wondering how to get the alternating month headers in the row.
I then form a delivery date from this.
Greets
Thomas
The following user(s) said Thank You: admin
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #22593
by admin
Mike
ETL Architect
Replied by admin on topic Header Value --> UnPivot
I see what you mean now.
Multiple ways of doing it as usual.
Add another writer.
Make sure that it only reads the first line
Make sure that fields are called MONTH01..MONTH12.
Then add fields values transformation
wiki.etl-tools.com/docs/advanced-etl-pro...-data/fields-values/
It will convert your data to
MONTH01,VALUE
...
MONTH12,VALUE
And the last step is to join the data on the month field using the joiner
Please keep us posted on your progress
Multiple ways of doing it as usual.
Add another writer.
Make sure that it only reads the first line
Make sure that fields are called MONTH01..MONTH12.
Then add fields values transformation
wiki.etl-tools.com/docs/advanced-etl-pro...-data/fields-values/
It will convert your data to
MONTH01,VALUE
...
MONTH12,VALUE
And the last step is to join the data on the month field using the joiner
Please keep us posted on your progress
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #22595
by downing
Replied by downing on topic Header Value --> UnPivot
Hello Mike,
runs great thank you very much!
Now a question about the date.
The output string is "Sum of 2023-05".
With the "Right" Length 7 transformation I make "2023-05" out of it.
Now I should make a date out of it.
In this case it is always the 15th in each month "15.05.2023".
What is the best way to manipulate this?
Thx and Greetings
Thomas
runs great thank you very much!
Now a question about the date.
The output string is "Sum of 2023-05".
With the "Right" Length 7 transformation I make "2023-05" out of it.
Now I should make a date out of it.
In this case it is always the 15th in each month "15.05.2023".
What is the best way to manipulate this?
Thx and Greetings
Thomas
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #22596
by admin
Mike
ETL Architect
Replied by admin on topic Header Value --> UnPivot
Looks great, I am glad you are making good progress.
One suggestion though: always place the transformer before the writer
Regarding your question, it would use ensure suffix transformation function with -15 as the value
wiki.etl-tools.com/docs/advanced-etl-pro...rings/ensure-suffix/
You may also use Reformat date to change the date format
One suggestion though: always place the transformer before the writer
Regarding your question, it would use ensure suffix transformation function with -15 as the value
wiki.etl-tools.com/docs/advanced-etl-pro...rings/ensure-suffix/
You may also use Reformat date to change the date format
Mike
ETL Architect
Please Log in or Create an account to join the conversation.