Solved

OBIEE column formula with multiple criteria

Posted on 2014-12-03
1
2,342 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

627 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