Configuring Data Source for Studio Reports Charts
On data source tab, you can perform the following three activities:
Getting Data
Selecting fields to plot on chart
Data format
Figure 2: Unbound Chart Data Source
Setting Connection Details
Data source is defined here for an unbound chart. Also, preferences of connection to be used at run time, is also setup here.
Connection Name: Select the connection name to use for to get data for chart.
Select Query: Pre-designed queries are available in repository folders. In this dropdown, navigate to the folder where the desired query is available and select it. Click Verify SQL button. The SQL will be displayed in SQL Query text box.
SQL Query: If query object is not selected in Select Query, specify a query here. Click Verify SQL button to check query for validity.
SQL Editor: Click this button to open SQL Editor dialog box. This dialog box is used to design SQL query. If you design a query using SQL Editor, that query will appear in SQL Query box.
Note: The SQL Editor opened from here will have Sort and Filter tab disabled.
Verify SQL: Click this button to check the SQL for errors. This button can also be used as refresh button for the fields that are defined for retrieval using the SQL provided above. For example, once you have selected the fields from the Fields to add in the chart, and have switched over to some other tab, when you return to this tab the fields that are not selected will not be displayed.
Runtime Connection: Select the data connection to be used at run time. At runtime data will be fetched from that connection.
Use Parent’s: Select this option to select the database connection that the parent report has used.
Use Engine Default: Select this option to use the connection that was marked as default from the Intellicus Report Engine Connection Manager dialog.
Use Named: Using which, you can provide the named (configured connection) to fetch data for the cross-tab report. This will override the default connection.
NOTE: Chart can be created using OLAP type connections also.
Data mapping
On this tab, fields to be placed on Group Fields (X-axis) and Value Fields (Y-axis) are set. The fields received from query are listed in the Available Fields.
Figure 3: Data mapping field of chart dialog box
Placing a field on Value Fields
Click the field and click forward arrow button near Value Fields title. Selected field will be listed under Value Fields. If other than the default, select function to be applied on field. Multiple fields can be placed on this axis.
To remove a field, click the field listed in Value Fields and click backward arrow button.
Placing a field on Group Fields
Click the field and click forward arrow button near the Group Fields title. Selected field will be listed under the Value Fields. Multiple fields can be placed on this axis. In that case, you can select the grouping by clicking Merge Values check box.
To remove a field, click the field listed in the Group Fields and click backward arrow button.
Setting Data formats
On this tab, we set data format for fields placed on Group Fields.
Figure 4: Setting data format
X-Axis Field: Select the field for which data format is being setup.
Date Group By: For a date type field, select group option here.
Num Group By: If the field is of number type, specify a number indicating group. For example, to form group of 1-5, 6-10, specify 5.
Format (Date): For a date type field, specify format here.
Format (Num): For a number type field, specify format here.
Display Field: Select a field here if a different field should be displayed on axis.
Label Interval: Specified as a number, label will appear on every ‘n’th value. For example, if you specify 2 and axis has Date set by month, Labels for Jan, March, May, etc. will appear.
First (N): To include only few top values in the chart. For example, in a chart having sales summary field, specify 20 to include records having top 20 figures of sales summaries.
Related content
Copyright Kyvos, Inc. All rights reserved.