Creating Your First Dashboard | Superset (2024)

Creating Your First Dashboard

This section is focused on documentation for end-users who will be using Supersetfor the data analysis and exploration workflow(data analysts, business analysts, datascientists, etc). In addition to this site, Preset.io maintains an updated set of end-userdocumentation at docs.preset.io.

This tutorial targets someone who wants to create charts and dashboards in Superset. We’ll show youhow to connect Superset to a new database and configure a table in that database for analysis.You’ll also explore the data you’ve exposed and add a visualization to a dashboard so that you get afeel for the end-to-end user experience.

Connecting to a new database

Superset itself doesn't have a storage layer to store your data but instead pairs withyour existing SQL-speaking database or data store.

First things first, we need to add the connection credentials to your database to be ableto query and visualize data from it. If you're using Superset locally viaDocker compose, you canskip this step because a Postgres database, named examples, is included andpre-configured in Superset for you.

Under the + menu in the top right, select Data, and then the Connect Database option:

Creating Your First Dashboard | Superset (1)

Then select your database type in the resulting modal:

Creating Your First Dashboard | Superset (2)

Once you've selected a database, you can configure a number of advanced options in this window,or for the purposes of this walkthrough, you can click the link below all these fields:

Creating Your First Dashboard | Superset (3)

Once you've clicked that link you only need to specify two things (the database name and SQLAlchemy URI):

Creating Your First Dashboard | Superset (4)

As noted in the text below the form, you should refer to the SQLAlchemy documentation oncreating new connection URIsfor your target database.

Click the Test Connection button to confirm things work end to end. If the connection looks good, save the configurationby clicking the Connect button in the bottom right corner of the modal window:

Congratulations, you've just added a new data source in Superset!

Registering a new table

Now that you’ve configured a data source, you can select specific tables (called Datasets in Superset)that you want exposed in Superset for querying.

Navigate to Data ‣ Datasets and select the + Dataset button in the top right corner.

Creating Your First Dashboard | Superset (5)

A modal window should pop up in front of you. Select your Database,Schema, and Table using the drop downs that appear. In the following example,we register the cleaned_sales_data table from the examples database.

Creating Your First Dashboard | Superset (6)

To finish, click the Add button in the bottom right corner. You should now see your dataset in the list of datasets.

Customizing column properties

Now that you've registered your dataset, you can configure column propertiesfor how the column should be treated in the Explore workflow:

  • Is the column temporal? (should it be used for slicing & dicing in time series charts?)
  • Should the column be filterable?
  • Is the column dimensional?
  • If it's a datetime column, how should Superset parsethe datetime format? (using the ISO-8601 string pattern)

Creating Your First Dashboard | Superset (7)

Superset semantic layer

Superset has a thin semantic layer that adds many quality of life improvements for analysts.The Superset semantic layer can store 2 types of computed data:

  1. Virtual metrics: you can write SQL queries that aggregate valuesfrom multiple column (e.g. SUM(recovered) / SUM(confirmed)) and make themavailable as columns for (e.g. recovery_rate) visualization in Explore.Aggregate functions are allowed and encouraged for metrics.

Creating Your First Dashboard | Superset (8)

You can also certify metrics if you'd like for your team in this view.

  1. Virtual calculated columns: you can write SQL queries thatcustomize the appearance and behaviorof a specific column (e.g. CAST(recovery_rate) as float).Aggregate functions aren't allowed in calculated columns.

Creating Your First Dashboard | Superset (9)

Creating charts in Explore view

Superset has 2 main interfaces for exploring data:

  • Explore: no-code viz builder. Select your dataset, select the chart,customize the appearance, and publish.
  • SQL Lab: SQL IDE for cleaning, joining, and preparing data for Explore workflow

We'll focus on the Explore view for creating charts right now.To start the Explore workflow from the Datasets tab, start by clicking the nameof the dataset that will be powering your chart.

Creating Your First Dashboard | Superset (10)

You're now presented with a powerful workflow for exploring data and iterating on charts.

  • The Dataset view on the left-hand side has a list of columns and metrics,scoped to the current dataset you selected.
  • The Data preview below the chart area also gives you helpful data context.
  • Using the Data tab and Customize tabs, you can change the visualization type,select the temporal column, select the metric to group by, and customizethe aesthetics of the chart.

As you customize your chart using drop-down menus, make sure to click the Run buttonto get visual feedback.

Creating Your First Dashboard | Superset (11)

In the following screenshot, we craft a grouped Time-series Bar Chart to visualizeour quarterly sales data by product line just by clicking options in drop-down menus.

Creating Your First Dashboard | Superset (12)

Creating a slice and dashboard

To save your chart, first click the Save button. You can either:

  • Save your chart and add it to an existing dashboard
  • Save your chart and add it to a new dashboard

In the following screenshot, we save the chart to a new "Superset Duper Sales Dashboard":

Creating Your First Dashboard | Superset (13)

To publish, click Save and goto Dashboard.

Behind the scenes, Superset will create a slice and store all the information neededto create your chart in its thin data layer(the query, chart type, options selected, name, etc).

Creating Your First Dashboard | Superset (14)

To resize the chart, start by clicking the Edit Dashboard button in the top right corner.

Creating Your First Dashboard | Superset (15)

Then, click and drag the bottom right corner of the chart until the chart layout snapsinto a position you like onto the underlying grid.

Creating Your First Dashboard | Superset (16)

Click Save to persist the changes.

Congrats! You’ve successfully linked, analyzed, and visualized data in Superset. There are a wealthof other table configuration and visualization options, so please start exploring and creatingslices and dashboards of your own

ֿ

Manage access to Dashboards

Access to dashboards is managed via owners (users that have edit permissions to the dashboard)

Non-owner users access can be managed two different ways:

  1. Dataset permissions - if you add to the relevant role permissions to datasets it automatically grants implicit access to all dashboards that uses those permitted datasets
  2. Dashboard roles - if you enable DASHBOARD_RBAC feature flag then you be able to manage which roles can access the dashboard
    • Granting a role access to a dashboard will bypass dataset level checks. Having dashboard access implicitly grants read access to all the featured charts in the dashboard, and thereby also all the associated datasets.
    • If no roles are specified for a dashboard, regular Dataset permissions will apply.

Creating Your First Dashboard | Superset (17)

Customizing dashboard

The following URL parameters can be used to modify how the dashboard is rendered:

  • standalone:
    • 0 (default): dashboard is displayed normally
    • 1: Top Navigation is hidden
    • 2: Top Navigation + title is hidden
    • 3: Top Navigation + title + top level tabs are hidden
  • show_filters:
    • 0: render dashboard without Filter Bar
    • 1 (default): render dashboard with Filter Bar if native filters are enabled
  • expand_filters:
    • (default): render dashboard with Filter Bar expanded if there are native filters
    • 0: render dashboard with Filter Bar collapsed
    • 1: render dashboard with Filter Bar expanded

For example, when running the local development build, the following will disable theTop Nav and remove the Filter Bar:http://localhost:8088/superset/dashboard/my-dashboard/?standalone=1&show_filters=0

Creating Your First Dashboard | Superset (2024)

FAQs

How to create a dashboard database? ›

To create a dashboard, you'll need a free, open-source business intelligence tool such as Metabase. First, integrate your database or RDBMS with your BI tool, which will provide the ability to make queries and create a real-time SQL dashboard.

Is the Apache Superset good? ›

A: Yes, Apache Superset is a powerful open-source alternative to Tableau that provides similar data visualization and exploration capabilities. It supports a wide range of data sources and offers a variety of visualization options, making it suitable for diverse use cases.

How to create a dashboard in Superset? ›

Navigate to Data ‣ Datasets and select the + Dataset button in the top right corner. A modal window should pop up in front of you. Select your Database, Schema, and Table using the drop downs that appear. In the following example, we register the cleaned_sales_data table from the examples database.

How does the Apache Superset work? ›

Superset can work with even gigantic databases! Superset acts as a thin layer above your underlying databases or data engines, which do all the processing. Superset simply visualizes the results of the query.

How do I create a simple dashboard? ›

Quick links
  1. Video: 12 Dashboard design tips.
  2. Be clear about what you're trying to achieve.
  3. Include only the most important content.
  4. Consider data ink ratio.
  5. Round your numbers.
  6. Use the most efficient visualization.
  7. Group your related metrics.
  8. Be consistent.

Which of the following should be done first when creating a dashboard? ›

Explanation: Before creating a dashboard, there are several tasks that should be performed: Format the data as a table first: This step helps organize the data and makes it easier to work with. Remove blank data rows: Eliminating blank rows ensures that the dashboard is accurate and provides meaningful insights.

Is the Apache Superset better than Tableau? ›

In conclusion, while Tableau is a well-established player with robust features and support, Apache Superset is a strong open-source alternative that offers flexibility and scalability. The choice between Superset and Tableau will depend on specific organizational needs, technical expertise, and budget considerations.

What is better than Superset? ›

Other important factors to consider when researching alternatives to Apache Superset include user interface and data visualization. The best overall Apache Superset alternative is Tableau. Other similar apps like Apache Superset are Looker, Mediafly, Microsoft Power BI, and Sisense.

How much does Apache Superset cost? ›

Pricing. Superset is free to deploy to your Kubernetes cluster. Note: There is no usage fee for this product.

How to create a dashboard in SQL? ›

All they need to do is connect their databases and generate their dashboards. Once you have connected your database to your preferred online SQL query builder, it's time to start with the analysis.

Is Apache Superset free? ›

Yes. Apache Superset is free for all users, but it has some associated costs to its installation. Setting up and accessing complex queries in this platform need assistance from developers with SQL knowledge.

How do I create a dashboard sheet? ›

Create a new dashboard
  1. On the Home screen, select Create solution.
  2. Select Dashboard.
  3. Type a name for your dashboard, and then select OK.
  4. Select Edit Dashboard. to edit and add information to your new dashboard.
  5. Add the appropriate dashboard widgets.
  6. In the upper-right area of the dashboard, select Save.

What are the disadvantages of Apache superset? ›

While Apache Superset is a powerful tool, it has limitations that users should be aware of, such as:
  • Certain advanced visualizations may require additional plugins or configurations.
  • Performance can vary based on the underlying database and the complexity of the queries.

Why not use Apache superset? ›

Apache Superset does not connect natively to all the data sources that it integrates with. Because of this, users have to rely on third-party connectors. It can be tedious and time-consuming to set these connections up, which is why many users prefer a solution with more connectors and drivers built-in.

How popular is Apache superset? ›

At the end of 2020, Superset was rank 176 among the top 200 most popular projects on Github (by stars). In 2021, the popularity of Superset catapulted the project to rank 132. The Superset Slack community more than doubled, from ~2600 members to ~5500 members!

How do I create a system dashboard? ›

Create a new dashboard
  1. Open solution explorer, and then select Components > Dashboards.
  2. Select New, choose a layout, and then select Create.
  3. In the Dashboard: New dialog box enter a name for the dashboard.
  4. Select one of the component areas and then select the icon for a chart or a list.
Feb 15, 2022

How do I turn data into a dashboard? ›

Here's a simple step-by-step guide on how to create a dashboard in Excel.
  1. Step 1: Import the necessary data into Excel. No data. ...
  2. Step 2: Set up your workbook. ...
  3. Step 3: Add raw data to a table. ...
  4. Step 4: Data analysis. ...
  5. Step 5: Determine the visuals. ...
  6. Step 6: Create your Excel dashboard. ...
  7. Step 7: Customize your dashboard.
Mar 16, 2023

References

Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6541

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.