Solved

OBIEE column formula with multiple criteria

Posted on 2014-12-03
1
1,606 Views
Last Modified: 2014-12-03
I am using the Oracle BI Administration Tool  to create a business (BMM) model.  I want to create a logical column that calculates the number of enrolment records that meet a set of criteria. I tried the formula below, but I'm getting a syntax error.

sum(case "Enrolment - College"."F College Enrolment"."Enrolment ID"   when
( "Enrolment - College"."F College Enrolment"."Area Flag"  in ('O')
and
 "Enrolment - College"."D Registration Status"."Registration Status Code"   in ('10','41')
and
"Enrolment - College"."F College Enrolment"."Semester" in ('NOV')
)
then 1 else 0 end)
0
Comment
Question by:mariita
1 Comment
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40478770
Never used OBIEE but that case statement isn't correct syntax for regular Oracle.

The two syntaxes are:
1:  case some_object
         when some_value then some_value
         when some_other_value then some_other_value
      end

2: case when some_object=some_value then some_value
              when some_other_object=some_other_value then some_other_value
    end


It appears you are trying to mix them.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Hi, I am very much excited today since I'm going to share something very exciting Tool used for Analytical Reporting and that's nothing but MICROSTRATEGY. Actually there are lot of other tools available in the market for Reporting Such as Co…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now