Transforming data in the DataEngine BaseTable helps in creating insightful data analysis reports. A user can apply different query operations such as Range Expressions, Aggregation, Filtering etc. on the data. In the section below, you will learn in detail about transformation operations in DataEngine Workbench.
The user can also limit the scope of a query by specifying one or more range expressions. The following example depicts how a user can add a range to a join query. Note that you can also use ranges with single-table queries.
Follow the steps below to create query result with range expressions.
Add a query by clicking the in the Queries table. Fill the cells in the grid under the TABLES tab as given in the image.
Fill the cells in the grid under the COLUMNS tab as given in the image.
Fill the cells in the grid under the RANGES tab as given in the image. Here, as you can observe, we have filtered the Value 'Beverages' in the CategoryName Column using the Equal Operation.
In the REVIEW tab, add the query name as 'BeverageTotals'. Click the CREATE button. The newly added query appears in the Queries panel. Display the results by clicking its grid icon.
Users can also customize the Query result set. This is explained in Customize Base Table and Query Data topic.
Note that the user can copy the JSON string and use it in application code with the CreateQueryFromJsonString method of QueryFactory class.
Let's say the base table data contains date or time columns. In such a case, you can use date-specific functions in query definitions to aggregate by year, month, etc.
Follow the steps below to create query result with date and time aggregates.
Click the on the right of the Queries panel. Select Invoices in the top left grid cell, under the Tables column in the TABLES tab. Click the right arrow button.
Fill the cells of the grid in the COLUMNS tab as given in the image below:
Note that when a row contains a date or time column, the Operation column dropdown contains two groups of values, Aggregate and Date/Time.
Click the REVIEW tab, and enter 'CountryTotalsByYear' as the query name. Click the CREATE button.
The text box at the bottom of the page is not editable, but shows the JSON data that will be used to create the query. Note that the user can copy the JSON string and use it in application code with the CreateQueryFromJsonString method of QueryFactory class.
Expand the newly added node under Queries. Click the grid icon to display the results.
Users can also customize the Query result set. This is explained in Customize Base Table and Query Data topic.