Quantcast
Viewing all articles
Browse latest Browse all 2504

Oracle APEX Report with Column Count Breakdown and Filtering

Topic by Tejaswini U

Content

Looking for some assistance with the following Oracle APEX v4.2.2 report and how to possibly go about doing it as it basically requires:

  1. overall employee count within all departments.
  2. always the same 3 departments (A,B and C) may exist at various locations
  3. every location may have the same A,B and C departments but some may just have A or A and B or all three departments.
  4. employee department breakdown counts will also be required (example shown below)
  5. an overall checkbox system below the report showing the user a distinct department list over all locations in the report, that will be used as a filter (example shown below)

An example report might look like this:

Location          Dept A.     Dept. B     Dept. C      Total Employees
----------------- ----------- ----------- ------------ ---------------
Paris             510318
Rome              1020535
London            40-3070


Filter Departments:[X]Dept. A  [X]Dept. B  []Dept. C     [Apply Filter button]

So using the above report example and assuming there is a database structure/connection via ids of three tables:

location
department
employees

a) I can get the overall total employee counts but what would be the best approach to also achieve employee department breakdown counts for each location department above, as shown in the report, i.e. Dept. A = 5, Dept. B = 10 and Dept. C = 3 ?

b) With the filtering feature mentioned above, if I check Dept. A and Dept. B and then press the "Apply Filter button", I need the above report to re-generate with new values based on departments checked, so new report will now look like this:

Location          Dept A.     Dept. B     Total Employees
----------------- ----------- ----------- ---------------
Paris             51015
Rome              102030
London            40-40

Any assistance with the above would be much appreciated.

Thanks.

Version

sql, Oracle 11g,

Viewing all articles
Browse latest Browse all 2504

Trending Articles