Solved

OBIEE column formula with multiple criteria

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

706 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

17 Experts available now in Live!

Get 1:1 Help Now