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
What is rank index in rank transformation?
Briefly define a session task?
Explain sessions and how many types of sessions are there?
Where are the source flat files kept before running the session?
State the differences between sql override and lookup override?
Performance tuning in UNIX for informatica mappings?
I am new to informatica and learning it,can anybody please tell me how we receive source as flat file in informatica,from where we get this flat file?
What is the difference between stop and abort in informatica
Why do you use Mapping Parameter and mapping variable?
what is the end to end process meaning in my project(my project is development)and functionality plz tell me
What is a stored procedure transformation?
How do you manage the Parameter files while migrating your data from one environment to another environment?
What are the data movement modes in informatica?
Tell me can we override a native sql query within informatica? Where do we do it? How do we do it?
What is the advantage of informatica?