How to: |
You can Join data sources from the data tab in WebFOCUS Designer, and then use your joined data to create new content from within the Visualization tab.
The joined data structure is not applied permanently to the metadata. This allows you to virtually join multiple data sources as if they were a single data source, from which you can report in a single request. This can increase the number of relevant fields available for use in your content, giving you an expanded selection of data specific to your charting purposes.
The Join is created when fields that match in your original data source and second data source are identified. For example, you can Join two data sources on a Join field of ID Product, using just one data source in your chart. You can then create content using your Joined data source.
The following image shows an example of joined data in WebFOCUS Designer.
You can Join data sources based on shared fields to enhance the data available to you, and then create charts based on the joined data source.
Your data source displays as a synonym on the Data tab canvas, and sample data displays in a tabular format similar to a spreadsheet, as shown in the following image.
Note: You can also drag a synonym to the Union bubble. While a join adds columns to existing rows based on a relationship between columns in the two data sources, a union adds new rows by combining the results of two queries that have a common domain and number of columns. For more information about unions, see Creating a Data Flow in the TIBCO WebFOCUS Reporting Server Administration manual.
A Join object is added between the two synonyms on the canvas as shown in the following image.
Note: Before removing a recursive Join (when a table is joined to itself) you must remove any fields with active content from the first instance of the table.
Click the pencil icon to display a Join configurator and data profiler, as shown in the following image.
Click Suggestions to display Join Suggestions, including a confidence score based on any database relationships and the number of matching names in the fields, as shown in the following image.
Click the plus sign to add the suggestion to the join pair list.
In the Join Profiler tab, a join analyzer chart displays the number of matching values from each part of the join and the total number of values included in the data source as a result of the join, and a key fields grid showing LHS and RHS match states, as shown in the following image.
You can click the table bars or numbers to display the matching fields in the report, and then click the Clear selections icon to clear the matches and return the report to show all values.
In the Sample Data tab, the values for the field being joined in each synonym are displayed, as shown in the following image.
To create content from your Join, click the Visualization tab and then click Save to save your content.