Oracle Transactional Business Intelligence

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OTBI conditional count

Question
2
Views
0
Comments

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.