Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
MAX EMAIL ADDRESS in one row

How to display in one row the Work email (if exists) or home email if the work email is null?
this function does not work
MAX(CASE
WHEN "Person Email Addresses"."Email Type Code"='W1'
THEN "Person Email Addresses"."Email Address"
WHEN "Person Email Addresses"."Email Type Code"='H1'
THEN "Person Email Addresses"."Email Address"
END by "Worker"."Person Number")
Answers
-
Hi @rrr You need to use a pivot view. Person Number will be in rows. Email Type will be in column. Email must be in Value column, On the Email, apply aggregation rule as Min or Max. You will get all Emails of a worker in a single row
Raghu
1 -
Hi @Raghavendra Raghunath-Oracle thank you for your answer.
But my final report should display 1 column for email:
If the employee have work email, Its displays work email
else, it displays home email.
and it should be use the max for 1 row for each emp.
0 -
Hi @rrr unzip and unarchive the attached analysis to your instance. Run it and check. I have the logic modified in the Email column.
Raghu
1 -
@Raghavendra Raghunath-Oracle Thanks! its retrieves the right max Email.
But how can I display (marge) it into one Column ?
0 -
Hi @rrr fyi
Raghu
0