Building Queries for SAP Analytics Cloud Stories
Build queries and models that can be added to your stories to retrieve the right data for your business reports.
Procedure
- Browse the domains in the Available Data section and expand the data set.
The primary objects of that data set appear, which you can further expand to view the field level details.
You can find objects and columns within the available data sets using the Search functionality. The data set that has objects or columns matching the name you enter in Search appears in the search results.
- To select an object for your query, double-click or drag and drop the object on the query canvas.
The object appears on the canvas.
- To add related objects, columns, and filters to your query, select the object on the canvas.
A context menu appears.
You can perform the following actions:-
Select Show related objects to add related objects to your query. Select Commit Object to add it to your query.
-
Select Select columns to add columns to your query.
-
Select Add filters to add filters to your query.
Contextual Menu Option
Description
Show related object
Shows the objects joined to the selected object. You can select objects from the related objects to build your query.
Select columns
Enables you to select columns for the query.
Add filters
Enables you to add filters to your column selection. Applying a filter is a good option to limit the data in a view without altering the design of the underlying object. It displays only the data you want to see. There are two types of filters you can apply to an object, Simple Filter and Advanced Filter.
Remove object
Removes the selected object from the canvas of the Query Designer.
-
- (Optional) Select Create Calculated Column in the Data tab of the toolbar to add calculated columns to your query.
- (Optional) Add filters on the selected columns or the objects as per your preference.
- Select Preview Query from the toolbar to take a quick glance at your data query for the columns you've selected and the data they retrieve.
Set Variable dialog appears. If you've selected As of Date type objects in your report, set the Date value. By default, the present-day date is populated.
You can select Hide Preview to hide the preview of the query.
- If you're happy with the query, select Save.
The Save Model dialog appears.
Enter a Name and select the location to save your query.
This creates a Model that can be used in the stories.
Results
By creating a query you have successfully created a Model. You can use this model in multiple stories.