Solved

OBIEE column formula with multiple criteria

Posted on 2014-12-03
1
2,035 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 77

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

751 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