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
Γ 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
Γ Enter the data model name Γ select the type as SQL Query
Γ Choose the data sources and click the Query Builder button.
Γ 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
Post a Comment