Unpivot unpredictable results

More
2 years 4 months ago - 2 years 4 months ago #23347 by prashant
Hellos,
Back with another round of Unpivot question. 

i attached my input file (sales.report.csv) , output file(output.csv) and transformation file. 

I am getting unpivoted grouping on half of data , I have played around but cannot get the output to change.

  

File Attachment:

File Name: dailysalespivot.zip
File Size:2 KB


UNPIVOTING

 
Last edit: 2 years 4 months ago by prashant.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23348 by Peter.Jonson
You want to create 6 rows for every input row, that means that you have to create 6 groups, but you have created only two

The WIKI has an example

www.etl-tools.com/wiki/advanced-etl-proc...orming-data/unpivot/

This one works




 

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #23354 by prashant

You want to create 6 rows for every input row, that means that you have to create 6 groups, but you have created only two
 
I think THIS as a thumb rule helps , Each breakdown of input row into X require X groups.

Or did I mess up the thumb rule? 

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save