Converting Rows to columns
I have Relational source like his.
JAN FEB MAR APR
100 200 300 400
500 600 700 800
900 100 200 300

I need to convert these rows into columns to the targe.

MONTH TOTAL
JAN 1500
FEB 900
MAR 1200
APR 1500

Please experts help me

Answer Posted / prabhu

Source qualifier --> Normalizer --> Expr --> Agg --> target

In Normalizer give the four numeric values as input and then take numeric value and it's GK_value to expression.

In Expression i have made flag for month and hardcoding values of month

Flag_Jan --> IN(GK_Salary,1,5,9,0)
Flag_Feb --> in(GK_Salary,2,6,10,0)
Flag_Mar --> in(GK_Salary,3,7,11,0)
Month --> iif(Flag_Jan = 1,'Jan',iif(Flag_Feb = 1,'Feb',iif(Flag_Mar = 1,'Mar','Aprl')))

In agg group by on month and get sun(numeric value)

Pass month and sum(numeric) value to target

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by DTM and Load manager and what is difference between load manager and load balancer?

640


What is an expression transformation?

594


What is a dimensional model?

584


Why update strategy and union transformations are active? Explain with examples.

716


Informatica Server and Client are in different machines. You run a session from the server manager by specifying the source and target databases. It displays an error. You are confident that everything is correct. Then why it is displaying the error?

1513






What is workflow? What are the components of workflow manager?

713


How do you remove duplicate records in informatica? And how many ways are there to do it?

717


what is $$$$?

1742


How can we send the flat file data to different targets(which are also flat files) based on the name of flat file with out adding extra columns?

1624


What is the maplet?

622


What are the differences between oltp and olap?

553


Informatica settings are available in which file?

593


How can we handle two sessions in informatica?

616


What is dimensional table? Explain the different dimensions.

666


What is meant by lookup transformation? Explain the types of lookup transformation?

571