Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 279 Oracle Analytics and AI News
- 56 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 105 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Selecting values at timeperiod when sum of all values is highest
I am having trouble selecting the maximum occupancy values in a specific time chunk, when I have multiple units. My data is stored in 15 minute intervals, and I want OBIEE to return the values for each hour when the sum of the patients in all three units is highest. When looking at the table below, the highest total is 102 @ 1:15. so I want OBIEE to return the vales of each unit at 1:15. (A=100, B=2, C=0)
When using the code below, and it returns the highest patient occupancy each unit had individually during the hour.(A=100, B=50, C=30)
MAX("Snapshot"."Patients" by "Snapshot Date"."Date", "Snapshot Date"."Hours", "Area"."Unit Names")
How do I get OBIEE to return all the values at 1:15? (A=100, B=2, C=0)
| Patients/Time | 1:00 | 1:15 | 1:30 | 1:45 |
|---|---|---|---|---|
| Unit A | 0 | 100 | 35 | 20 |
| Unit B | 50 | 2 | 50 | 15 |
| Unit C | 10 | 0 | 0 | 30 |
| TOTAL | 60 | 102 | 85 | 65 |
Answers
-
you need a level based measure (total across all details/units) by time slot ... then select max.
0