SQL Report Builder Integrations
Google Analytics is the only integration unavailable for use with the SQL Report Builder. This functionality is in development.
To get started creating a SQL report, click Report Builder or Add Report at the top of any dashboard. In the Report Picker screen, click SQL Report Builder to open the SQL editor.
Get Started
To edit a report, click the gear (
Writing a query
Following the guidelines for query optimization, write a query in the SQL editor.
current definition
of the metric is used.If the metric is updated in the future, the SQL report does not reflect the changes. You must manually edit the report to have the changes take effect.
Using the buttons at the top of the sidebar, you can toggle between lists of tables and metrics available for use in the SQL Report Builder. If you do not see what you are looking for in the list, try searching for it using the search bar at the top of the sidebar.
You can also use the sidebar in the SQL editor to insert metrics, tables, and columns directly into your queries by hovering over them and clicking Insert:
Also, any JOIN
type is supported, but Adobe recommends only using INNER JOIN as it is the least expensive of the JOIN
types.
Running the query and viewing results
When you are done writing your query, click Run Query. The results display in a table below the SQL editor:
If something looks amiss in the results, you can edit the query and rerun it until you are satisfied.
You might sometimes see messages below the editor with EXPLAIN in them. If you see one of these, that means that your query has not run and needs a bit of fine-tuning.
After you are done editing your query, you can move onto either creating a visualization or saving your work to a dashboard.
Creating a visualization
To create a visualization with your query results, click the Chart tab in the Results
pane. In this tab, you select:
- The
Series
, or the column you want to measure, such as Items sold. - The
Category
, or the column you want to use to segment your data, such as acquisition source. - The
Labels
, or X-axis values.
Here is a quick look at what the visualization process looks like:
For a detailed walk-through of how to create a visualization, refer to the Creating visualizations from SQL queries tutorial.
Saving the report
Before you can save your work, you must give the report a name. Remember to follow the best practice guidelines for naming and choose something that clearly conveys what the report is!
Click Save at the upper-right corner of the SQL editor and select the report Type
(Chart
or Table
). To wrap things up, select the dashboard to save the report to and click Save to Dashboard.