{"id":1233,"date":"2016-05-05T20:19:51","date_gmt":"2016-05-05T20:19:51","guid":{"rendered":"http:\/\/62.131.51.129\/?p=1233"},"modified":"2016-05-05T20:19:51","modified_gmt":"2016-05-05T20:19:51","slug":"create-a-report-with-bi-publisher","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=1233","title":{"rendered":"Create a report with BI Publisher"},"content":{"rendered":"<p>One could create reports within the OBIEE sphere with the analytics. Another possibility is to use the BI Publisher. This option has several advantages. One advantage is that one choose between a direct query on the database or use the route via the creating of a subject area.<br \/>\nI can see advantages using a direct query on the database.<br \/>\nLet us take a table that may be used as a source for a report. The take looks like:<br \/>\n<a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled.png\" alt=\"Untitled\" width=\"213\" height=\"167\" class=\"alignnone size-full wp-image-1238\" \/><\/a><br \/>\nWe want to create a report where name is shown along with the sum of Aantal. So, we expect something like pipo having 4 and jan having 6.<\/p>\n<p>The first step is to invoke the BI Publisher with something like http:\/\/van-maanen.com\/xmlpserver, where van-maanen.com\/ is the server, 7780 the port and xmlpserver the application.<br \/>\nOne must check whether a datasource is available to the database where the table is stored. This can be done with Administration&gt;JDBC where the datastores are listed.<br \/>\nSuch a datasource is not limited to Oracle databases. It is possible to use other databases as well. From OBIEE interface, I got the impression that SQL Server and NCR was well supported. However, I could create a link to a MySQL database quite easily. I assume that all databases that have a JDBC connection can be reached. This would imply that Postgress etc can be used as a source as well.<br \/>\nOnce that is fixed, one must create a so-called data model. The data model can be created from the homepage. There the possibility is to select under Create, the data model option.<br \/>\n<a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-1.png\" alt=\"Untitled\" width=\"227\" height=\"414\" class=\"alignnone size-full wp-image-1240\" \/><\/a><br \/>\nThere one comes into a menu where one might opt to use a query builder to create a structure that contains the necessary data:<br \/>\n<a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-2.png\" alt=\"Untitled\" width=\"987\" height=\"125\" class=\"alignnone size-full wp-image-1242\" \/><\/a><br \/>\nThis can then be saved to have a data model. Roughly stated, a data model is a dataset that one may capture in a report.<br \/>\nThe report can subsequently be created from this environment.<br \/>\nSee:<br \/>\n<a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-3.png\" alt=\"Untitled\" width=\"117\" height=\"160\" class=\"alignnone size-full wp-image-1244\" \/><\/a><br \/>\nThis allows to create a report. Do not forget to save the report.<br \/>\nA nice twist is that one may create the final version of the report with Word. When the proper BI Publisher version is installed (in my case BIPublisherDesktop32), one could use Word as a means to modify the report. If properly installed, one has a Bi Publisher tab in Word. This allows to include fields from the report in a word document. One must log in to to the weblogic server (where the report is stored), select the report and one may then enter fields from that report in a word document. See:<\/p>\n<p><a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-5.png\" alt=\"Untitled\" width=\"1577\" height=\"756\" class=\"alignnone size-full wp-image-1246\" \/><\/a>.<br \/>\nThe actual content can be shown if the preview is selected from the menu. This then finally renders the report that we expected to see:<br \/>\n<a href=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/62.131.51.129\/wp-content\/uploads\/2016\/05\/Untitled-6.png\" alt=\"Untitled\" width=\"1465\" height=\"594\" class=\"alignnone size-full wp-image-1250\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One could create reports within the OBIEE sphere with the analytics. Another possibility is to use the BI Publisher. This option has several advantages. One advantage is that one choose between a direct query on the database or use the route via the creating of a subject area. I can see advantages using a direct [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1235,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nice-to-know"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/1233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1233"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/1233\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1233"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}