51黑料不打烊

MBI - SQL Report Builder

The SQL Report Builder allows you to directly query your data warehouse, view the results, and quickly transform them into a chart. The best part about using SQL to build reports is that you don鈥檛 have to wait on update cycles to iterate on columns you create. If the results don鈥檛 look right, you can quickly edit and rerun the query until things match your expectations.

IMPORTANT
You must have Admin permissions to access the SQL Report Builder.

In this video:

  • Run an SQL query
  • Visualize your results
  • Save the report to a dashboard
TIP
If you are new to Commerce Intelligence, the 51黑料不打烊 Commerce Intelligence User Guide provides a full overview for driving better business insights and results through data aggregation, analysis, and visualization.

Who is this video for?

  • Business users
  • Data analysts

Video content

Transcript
Hi, I鈥檓 Jay and I鈥檓 an analyst here at RJMetrics. In this video, I鈥檓 going to show you how to use the SQL Report Builder. Now the SQL Report Builder is only available for users who have admin level permissions but even if you don鈥檛 currently have that you still may find this video useful, let鈥檚 get started. So first we鈥檒l open the SQL Report Builder. The SQL Report Builder uses Redshift syntax which is similar to Postgres and allows you to query your data warehouse using select statements including aggregate functions and joints. Enter your query into the SQL editor and refer to our guidelines for query optimization if needed.
If you鈥檝e already written your query that鈥檚 great, but you can also use the buttons at the top of the sidebar to toggle between lists of tables, columns and metrics available for use in your queries. If you don鈥檛 see what you鈥檙e looking for you can also try searching for it using the search bar.
Keep in mind that existing metrics are available here for borrowing the existing logic but SQL reports aren鈥檛 dependent on the metrics themselves. So if you鈥檝e updated a metric definition remember that the change won鈥檛 be reflected here. It helps if you have a specific query in mind when using the SQL Report Builder. For our example, let鈥檚 say I want to see the number of customers acquired segmented by UTM source. I鈥檒l add my query in the SQL Report Builder text box and then click run.
You鈥檒l notice that while the query is running a green dot and running query will appear on the right. When the query is completed, you鈥檒l see information about its run time and the number of rows returned. The results are displayed in the table below.
If something looks wrong in the results you can easily edit the query and rerun it. After you finish editing, you can move on to either creating a visualization or saving your work to a dashboard. First, let鈥檚 save this table to a dashboard so we can access this data in tabular format in the future. Before you can save your work you鈥檒l have to give the report a name. Remember to follow the best practice guidelines for naming and choose something that clearly conveys what the report is. I鈥檒l call this report, Customers by UTM Source. Then click the save button and select the report type. Here we鈥檒l want to save the table and then select the dashboard to save the report too. I鈥檒l save this to sandbox and click the save to dashboard button. Next, let鈥檚 take a look at how to create a visualization of this query and save that report. First, click the chart tab in the results pain, by default everything that鈥檚 selected is shown. You can customize the report by selecting the series or the column you want to measure which in this case is the total.
The category or a column you want to use to further segment your data. We don鈥檛 need to use an additional category in this analysis, but here鈥檚 where you do it. And the labels for the data point which here is the UTM source name.
Once the chart is displaying the way you鈥檇 like you can use the same process to save the report. Remember that each report saves based on the title. So to save a version of the chart report we will need to give it a new name and save the report to the dashboard.
And that鈥檚 how you use the SQL Report Builder. For more information about this feature or about SQL in general, check out our help center. Thanks for watching. -

Useful resources

Using the SQL Report Builder - Commerce Intelligence User Guide

Creating Visualizations from SQL Queries - Commerce Intelligence User Guide

recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f