Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 282 Oracle Analytics and AI News
- 59 Oracle Analytics and AI Videos
- 16.3K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 108 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
OTBI conditional count
Hello,
My problem is the following: I would like to have a customized metric with that counts the number of learners that have "General Information"."Enrollment Record Substatus Code" <> 'ORA_ASSN_REC_NOTSTARTED' AND "General Information"."Enrollment Record Status Code" = 'ORA_ASSN_REC_ACTIVE' (counting everything less a subset).
The code that I used is basically this:
SUM(CASE WHEN ("General Information"."Enrollment Record Substatus Code"<>'ORA_ASSN_REC_NOTSTARTED' AND "General Information"."Enrollment Record Status Code"='ORA_ASSN_REC_ACTIVE') THEN 1 ELSE NULL END).
This is what I obtained (Result image):
The problem is that what is expected is different:
I attach the XML code in the attached .txt files for the "result" and "expectation" reports.
Any help or hint to correct this is welcome.
Kind regards.

