Solved

How to create an aggregation measure that uses a SQL logical operator

Posted on 2014-11-27
1
194 Views
Last Modified: 2014-11-27
Is it possible to create an aggregation measure that uses a SQL logical operator in the Oracle BI Administration Tool (BMM model)?
 
When I create a new logical column, it seems that I can either create an aggregation measure, or use a logical operator, but not both.
If I select a "default aggregation rule", then "derived from existing columns using an expression" is grayed out.
If I select "derived from existing columns using an expression", then "default aggregation rule" is grayed out.
 
I need to count all records where the value = 000000000.  The SQL equivalent would be something like:
sum(case when student_oen IN ('000000000') then 1 else 0 end)
0
Comment
Question by:mariita
1 Comment
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 40469008
this works:

sum(case student_oen when '000000000' then 1 else 0 end)

or

sum(decode(student_oen, '000000000',1,0))
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - CSV to Oracle table 4 70
ORA-01008: not all variables bound. 6 57
Oracle SQL 6 57
Need help with fine tuning the windows batch script to change password 9 30
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
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.

777 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