You are on page 1of 6

Introduction

Most of us must have read SET Theory and its concepts during our high-school days, while some of us
have a good time with the topic some of us must have struggled. For those who understood the concept
well might wonder how the same is applied and used while creating an OTBI Analysis, for those who were
not able to understand the same then I hope they would understand the same this time.
We must have seen the use of SET operators like UNION, MINUS in SQL query but it is interesting to
know that they can be used in an OTBI Analysis too.
Like in UNION, MINUS clause which is used in SQL here too there is the basic perquisite that the number
of columns and their data types should be the same.
Let us now try to create a simple OTBI analysis and understand how the same is used in Oracle Fusion
Application.
Worked Example
As a first step we would have to login to the application with an User who has major roles related with
HCM Application ( For this example we will use ROBERT.JACKMAN)

Next click on the Navigator icon ( on top left hand side of page) and select the ‘Reports and Analytics’ link
under ‘Tools’

Once you click on the page this would take you to ‘Reports and Analytics’ page. Click on the ‘Book’ icon
which resembles the BI Catalog
This would take us to the following screen:

Next select the ‘New’ option

And then choose the ‘Analysis’ option from the drop down list

As a part of this example we would use the ‘Workforce Management – Worker Assignment Real Time’
subject area
Once we click the subject area the following screen will appear

In this example we will fetch the following columns:


Columns in OTBI Analysis
Folder Name Attribute Name
Location Country
Worker COUNT (DISTINCT “Worker”.”Person Number”

The Analysis would look as:

We could notice that the analysis displays that Total Number of Employees who have a work Location
Country as Algeria is 9.
Now lets say we want to use a MINUS SET Operator such that it should not display any data for Algeria.
For this we need to go back to the ‘Criteria’ tab and use the SET (icon) on the right hand side

Once we click on the icon this would open up a list of Subject Areas which we may choose
For this example we would use ‘Workforce Management – Worker Assignment Real Time’ and once done
the criteria screen would appear as below:

Now we need to put a filter criteria on the second instance of the Subject Area such that it would only
include records for ‘Algeria’
Filter Criteria
Attribute Name Attribute Value
Column Country
Operator Is equal to / is in
Value Algeria

Once we click Ok , we could see that the filter criteria is added to the second subject area. Also we would
notice that we need to select the fields from the second subject area
Next we would add the ‘Location’ and the ‘Person Number’ attribute columns and then using the Edit
Formula option change the ‘Person Number’ field to COUNT (DISTINCT ‘Worker’. ‘Person Number’)

Next we need to select the MINUS Set Operators but before makes sense to find out all the available set
operators
List of Available SET Operators in OTBI Analysis
Operation Name Symbolic Representation

UNION

UNION ALL

INTERSECT

MINUS
For selecting the MINUS Operator please click on the select icon ( as shown) and choose Minus from the
available options:

Once done we should click on the results and hopefully we would not see the any record for Algeria

We can see that there is no data returned for ‘Algeria’ as a MINUS set Operation has been performed on
the first analysis.
You may even try other operations like UNION, UNION ALL and INTERSECT and check the behavior of
the same too.
We would now conclude this article with the hope that it was useful and gave you all an idea about how to
use SET Operators while creating OTBI Analysis.
Thanks for your time and have a good day!!

You might also like