?
Solved

Aggregation measure with equivalent of SQL "not in" operator

Posted on 2014-11-27
2
Medium Priority
?
180 Views
Last Modified: 2014-11-27
I am using the Oracle BI Administration Tool (BMM model) . How would I create an aggregation measure that uses the equivalent of the a SQL "not in" logical operator?
 
I need to count all records where the value does not equal '999999999','999999998','000000000'.  

The SQL equivalent would be something like:
sum(case when student_oen NOT IN ('999999999','999999998','000000000') then 1 else 0 end) as count_oen_other
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
  • 2
2 Comments
 
LVL 57

Accepted Solution

by:
HainKurt earned 2000 total points
ID: 40469129
same:

sum(case when student_oen NOT IN ('999999999','999999998','000000000') then 1 else 0 end) as count_oen_other
0
 
LVL 57

Expert Comment

by:HainKurt
ID: 40469133
or less sexy version

sum(
case
when student_oen != '999999999' and student_oen != '999999998' and student_oen != '000000000'
then 1 else 0 end
) as count_oen_other
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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…
Suggested Courses

801 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