Solved

Aggregation measure with equivalent of SQL "not in" operator

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

Accepted Solution

by:
Huseyin KAHRAMAN 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 53

Expert Comment

by:Huseyin KAHRAMAN
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

737 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