Solved

Aggregation measure with equivalent of SQL "not in" operator

Posted on 2014-11-27
2
159 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
  • 2
2 Comments
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 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 51

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to recover a database from a user managed backup
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.

707 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

13 Experts available now in Live!

Get 1:1 Help Now