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 / reddy
Answer:
Source --> Source qualifier --> Normalizer --> Expr -->
Agg --> target
Step 1:
Source --> Source qualifier --> Normalizer --> Expr -->
Expression Condition:
DECODE(GCID_DETAIL,1,'JAN',DECODE(GCID_DETAIL,2,'FEB',DECODE
(
GCID_DETAIL,3,'MARCH','APRIL')))
JAN 100
JAN 500
JAN 900
FEB 200
FEB 600
FEB 100
MAR 300
MAR 700
MAR 200
APR 400
APR 800
ApR 300
Step 2:
Source --> Source qualifier --> Normalizer --> Expr -->
Agg --> target
1) Group by month
2) Sum(Amount)
MONTH TOTAL
JAN 1500
FEB 900
MAR 1200
APR 1500
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the types of presistent cache in look up tr.
Enlist some properties of sessions.
How to generate or load values in to the target table based on a column value using informatica etl tool.
what is the difference between informatica6.1 and infomatica7.1
What is dynamic cache?
How might you approve all mappings in the archive all the while?
Can u generate reports in Informatica?
Explain the difference between a data warehouse and a data mart?
How to create a non-reusable instance of reusable transformations?
I am not able to connect to the domain with the client although all services and databases are up and there is no network issue?
What does “tail –f” command do and what is its use as an Informatica admin.
is it possible to index the data in cache of lkp transformation ?
Please let me know how to make Data masking in informatica..
How to join three sources using joiner? Explain though mapping flow.
What are the data movement modes in informatica?