After you finish building the structure of your analytical
query, you populate it with data sets.
About this task
Analytical query structures consist of transformation
nodes and data set nodes that must be populated with data from either
queries or tables. Nodes that are not populated yet are displayed
as <none> nodes. Regardless of what type
of transformations you have in your analytical query structure, the
rules for populating them with data are the same.
To populate
an analytical query structure:
Procedure
- In the Analytical query structure,
select a transformation node that you want to populate
with data.
In the Item editor pane, you can view the items of the selected transformation.
- From the Repository Explorer tree, navigate to a query
or table that you want to add and drag it to a <none> node
under the selected transformation node or directly into a corresponding column list in the transformation layout.
The columns of the selected data set are now displayed in the
Item
editor pane. The display of the columns depends on the type of the transformation that
uses these columns.
Note: If you select a <none> node, you can drag a query
or table anywhere in the blank area in the Item editor pane.
Note: You can drag a table or a query to a node that is already populated. This will replace the
current data set with the new one.
Note: If you drag a table or a query to the transformation node, the transformation will be replaced
with this table or query and the structure of the transformation will be lost.
- To add a query that is currently open in a separate editor,
right-click a <none> node in the analytical
query structure, navigate to Add from Opened... and
select one of the available queries.
- To add a query that is saved in a data file:
- Right-click a <none> node.
- Select Add Query.
- Select Open from File and click Next.
- Browse for the query that you want to add and double-click it.
- Click Finish to close the Open
from File wizard.
The query from the data file is added to the analytical
query structure.
- To add a table that is saved in a data file:
- Right-click a <none> node.
- Select Add Table.
- Select Open from File and click Next.
- Browse for the table that you want to add and double-click it.
- Click Finish to close the Open
from File wizard.
The table from the data file is added to the analytical
query structure.
- To replace a query or table in the node with one of the queries
that are opened in separate editors, select the node, click the Change to... icon. Navigate to Change
to Opened... and select one of the available queries.
- To replace a query or table in the node with a query or table from a data file:
- Select the node.
- Click the Change to... icon.
- Navigate to Change
to Query or Change to Table.
- Click Yes in the Change Item window if you agree to continue.
- Select Open from File and click Next.
- Browse for the query or table that you want to add and double-click it.
- Click Finish to close the Open
from File wizard.
- To rename a table or query, select it and click the Rename icon.
Specify the new name for the query or table in the Query
name field and click OK.
- To detach a table or query, select it and click the Detach icon.
A copy of the query or table opens in a separate editor. Any changes
to this object have no effect on the analytical query that it was
taken from.
- To open and edit a query or table in a separate editor,
select it and click the Open in Separate Editor icon.
The query or table opens in a separate editor. Any changes to this object
have a direct effect on the analytical query that it was taken
from.
Note: You cannot view a query or table in the Item editor while it is opened in a separate editor.
-
You can create notes for any of the structure nodes in the Note section
under the Analytical query structure:
-
Select a structure node for which you want to enter a note text.
-
Click anywhere in the Note section.
-
Edit the existing note text or enter a new text.
-
Save the changes to the note for the selected structure node by clicking
Save.
When you highlight the structure node, you can view the new text in the
Note section.
Note: Replacement of an element in the structure resets the note
for the respective node to empty or changes the note text to the text of the newly selected
analytical query.
Results
You have an analytical query structure of selected transformations and data sets. You can now
work with each transformation individually to customize the result columns.