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
Explain the aggregator transformation?
What are multi-group transformations?
what is mean by complex business rule ?
What do you mean by filter transformation?
How do you use reject loader.
What is a sequence generator transformation?
What is different between the data warehouse and data mart?
How do you promote a non-reusable transformation to reusable transformation?
How would you join a node to the already existing domain?
can anybody send me some real time screenshots of mapping in informatica powercenter. i will be vary thankful to him. my e-mail id :- prakashkumar.kumhar@gmail.com
What is the difference between a connected look up and unconnected lookup?
4 yrs etl devloper roles and responsibilities?any body give solutions
How to load the name of the current processing flat file along with the data into the target using informatica mapping?
Explain sessions?
What are the mapping parameters and mapping variables?