Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
convert rows into column in BIP datamodel

Hello,
I have a datamodel with SQL where I tried to use unpivot function for BIP RTF table.
but below SQL is not working in order to achieve expected output. I mean I cannot even run it…
select line_num,unit_price, attribute_number1 from PO_LINES_DRAFT_ALL
unpivot (
splitl for years in (
line_num as 'column1',
unit_price as 'column2',
attribute_number1 as 'column3'
)
)
order by line_num
fetch first 6 rows only;
I would like to convert UNIT_PRICE, ATTRIBUTE_NUMBER1 rows values into columns as following
LINE_NUM | UNIT_PRICE | ATTRIBUTE_NUMBER1 |
---|---|---|
1 | 1000000 | 0 |
2 | 1084000 | 8.4 |
3 | 1175056 | 8.4 |
Output should be: | |||
---|---|---|---|
column1 | column2 | column3 | |
CPI % | 0 | 8.4 | 8.4 |
TOTAL | 1000000 | 1084000 | 1175056 |
Can you please advise/help on this one?
Thank you!
Answers
-
Are you able to run the same sql from sql developer and able to see the correct output?
Regards,
Arjun
1