Skip to main content

Creating Reports with Group by Function in BI Publisher

Creating a new Report

Ø Create a new report ‘Employee_Details_Groupby’ inside the created folder ‘BI_Publisher_LabGuide’



Ø Click on Edit link mentioned below to create the report

 

  • Creating a new Data Model

Ø Select Data model à New



 
Ø Enter the data model name àselect the type as SQL Query

Ø Choose the data sources and click the Query Builder button.


 

  • Creating Query using Query Builder

Ø Select the table ‘EMP’ and ‘DEPT’ and check the required fields.

Ø Define a join between these two tables as follows:
Click the box beside the DEPTNO column in the DEPT table. (See the following screens.)
Similarly click the box beside the DEPTNO column in the EMP table.
These boxes when marked for joins turn to light gray.
Also note that a fine line joining the tables appears in the Model canvas.



Ø Click Conditions, and move the DEPTNO, to appear first in the list (as shown in the screen below).



Ø You can use these icons beside each column to move the columns up or down.



Ø View the generated SQL Query and the Results.

Ø This is the result for the generated SQL.



Ø Save the report



 
  • Creating Report Layout using BI Publisher Desktop in MS Word

Ø Create a new template using Microsoft word. (Refer section 4.3 for detailed steps for creating the template)

Ø Navigate and select the Based on Oracle DB report that you have created from My Folders> BI_Publisher_LabGuide. Click Open Report.

Ø Using the table wizard create a template as shown below:



Ø To change the format for the HireDate data field, double click on the field and select the formatting type as Date and format. For example, d-MMM-yy and click OK.



Ø Similarly, to change the format for the Salary, double click on the field and select the Type as Number and Number format to any of the format as needed. For example, $#,##0.00 to display the salary in dollar format and click OK.



Ø Similarly, change the format for commission field and click OK.

Ø Left align the Salary and Commission fields.



Ø Insert header and footer for the created template by selecting the Insert->Header and by selecting Insert->Footer.

Ø The template designed should look like as shown below.

Ø After making the necessary changes, upload the template by selecting Add-Ins->Oracle BI Publisher->Upload Template As



Ø A dialog box opens prompting to save the template in RTF. Click OK.



Ø Save the template in Rich Text Format.



Ø A dialog box pops, asking for the Template name. Enter the Template name. The same name will be displayed in the BI Publisher.



Ø After successfully upload a dialog box pops stating that the template has been added to the report. Click OK.



Ø Check for the uploaded template in the BI Publisher Report.



Ø Save the report and view the output. You can see the template name as the name uploaded from MS Word. View the output in different format.



Ø This is the report that is generated in HTML Format.

Comments

Popular posts from this blog

Contact Me

Do You have any queries ?                   If you are having any query or wishing to get any type of help related Datawarehouse, OBIEE, OBIA, OAC then please e-email on below. I will reply to your email within 24 hrs. If I didn’t reply to you within 24 Hrs., Please be patience, I must be busy in some work. kashif7222@gmail.com

Top 130 SQL Interview Questions And Answers

1. Display the dept information from department table.   Select   *   from   dept; 2. Display the details of all employees   Select * from emp; 3. Display the name and job for all employees    Select ename ,job from emp; 4. Display name and salary for all employees.   Select ename   , sal   from emp;   5. Display employee number and total salary   for each employee. Select empno, sal+comm from emp; 6. Display employee name and annual salary for all employees.   Select empno,empname,12*sal+nvl(comm,0) annualsal from emp; 7. Display the names of all employees who are working in department number 10   Select ename from emp where deptno=10; 8. Display the names of all employees working as   clerks and drawing a salary more than 3000   Select ename from emp where job=’clerk’and sal>3000; 9. Display employee number and names for employees who earn commission   Select empno,ename from emp where comm is not null and comm>0. 10

Informatica sample project

Informatica sample project - 1 CareFirst – Blue Cross Blue Shield, Maryland (April 2009 – Current) Senior ETL Developer/Lead Model Office DWH Implementation (April 2009 – Current) CareFirst Blue Cross Blue Shield is one of the leading health care insurance provided in Atlantic region of United States covering Maryland, Delaware and Washington DC. Model Office project was built to create data warehouse for multiple subject areas including Members, Claims, and Revenue etc. The project was to provide data into EDM and to third party vendor (Verisk) to develop cubes based on data provided into EDM. I was responsible for analyzing source systems data, designing and developing ETL mappings. I was also responsible for coordinating testing with analysts and users. Responsibilities: ·          Interacted with Data Modelers and Business Analysts to understand the requirements and the impact of the ETL on the business. ·          Understood the requirement and develope