Solved

Aggregation measure with equivalent of SQL "not in" operator

Posted on 2014-11-27
2
162 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

895 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

16 Experts available now in Live!

Get 1:1 Help Now