All pages
Powered by GitBook
1 of 4

Loading...

Loading...

Loading...

Loading...

Data

You must load data before you can design your report. Data can be in a flat file (CSV, XLS, or XLSX) or in a database table (or view). You load your data by either uploading the file or, if your data is in a database, selecting the schema and table (or view) to connect to.

The data drawer is where you set up your data. To open the data drawer, click the bar at the bottom of the editing panel. Click the bar again to close the data drawer.

Click the bar at the bottom to open the data drawer

After you load data, you can view your columns in the data preview and configure charts using dimensions and measures.

Managing data

Replace uploaded data

To update uploaded data, click the Replace file button. If there is more than one data table in your report, select the data table that you want to update. (Alternatively, select the data table you want to update, click the gear icon, and select Replace file from the menu.) Then, select the new data file (CSV, XLS, or XLSX).

Select the Replace file button to update an uploaded data table

Once the upload process finishes, refresh the page. The report will then display the updated data.

It is good practice to share before replacing data. That way, if you select the wrong CSV (or something else goes wrong), you can Discard changes and revert back to where things were before doing the replace.

Clear the data cache

To improve performance, charts display cached data. The cache is cleared periodically (by default, every 2 hours), but the cache can be cleared manually by clicking the Clear Data Cache button and selecting Yes, clear it. The cache will be cleared for all data tables used in the report.

The caching period is set at the database connection level and the current options are: no caching, cleared after 2 hours, cleared after 1 day, or cleared after 1 year. If you would like the caching period adjusted for a particular database connection, .

If changes to the structure of a database-connected table are not reflected after clearing the data cache, .

Delete a data table

If you have a data table that you don't plan to use in your report, you may want to delete the data table to declutter the data drawer. To do this, open the data drawer, select the data table you want to delete, click the gear icon, and select Delete.

You will receive a warning message if the data table columns are used in your report.

If you are sure you want to delete the data table, click Yes, delete it.

Download data

For uploaded data tables, you can download the data by opening the data drawer, selecting the data table you want to download, clicking the gear icon, and selecting Download. The data will download as a CSV.

The data preview

From the data preview you can see the data table columns, each column's data type, and the first 100 rows in the data table. You can also open the by clicking on the pill at the top of each column.

To open the data preview, first open the data drawer and then select the data table you want to view. To exit the data preview, close the data drawer.

Data types

From the data preview, you can see each column in your data and the data types for each column.

reach out to us
reach out to us
Select the Clear Data Cache button to clear all query caches for the report
Select the Clear Data Cache button to clear all query caches for the report
Deleting a data table
Deleting a data table
A warning message appears if you attempt to delete a data table that is used in the report
A warning message appears if you attempt to delete a data table that is used in the report
Downloading data
Downloading data
Select the Replace file button to update an uploaded data table
Here are data types that are recognized in Juicebox:

Data type

Description

Example

Text

Variable-length character data

882d8f4dccdb3d143df3cc06901f3399 or Joe or True

Number

Numeric values, either with or without decimals

46 or 53.5

Date

A value for a date that includes the year, month, and day

2020-10-30

Time

Certain things in Juicebox require particular data types. For example, creating a sum or average measure only works with number columns, and the trend chart requires a date or time column. Bottom line: Don't mix-and-match data types within the same column in your data file. Number columns should contain only numbers, date columns should contain only dates, and so on. If a column has more than one type of data, it will get the text data type.

If the data type for a column is not what you expect, that may indicate there is an issue with the data. For example, if you expect a column to have the number data type, but it instead has a text data type, there may be values in the column that are not numbers. Here is guidance on preparing your data for use in Juicebox.

dimension ingredient editor
The data preview
The data preview
Data types for each column can be viewed from the data preview
Data types for each column can be viewed from the data preview

Loading data

You must load data before you can configure charts. There are three ways to load data:

  1. Upload a data file

  2. Connect to a database table

  3. Connect to sample data

The data drawer is where you set up your data. To open the data drawer, click the bar at the bottom of the editing panel. Click the bar again to close the data drawer.

Upload a data file

To upload the report's first data file, open the data drawer and drag a flat file (CSV, XLS, or XLSX) containing your data onto the data upload box or click Upload CSV or Excel and select the file to be uploaded. The file will be loaded to a BigQuery table and connected to the report.

To load additional data files, first click the + and then drag-and-drop or select your CSV or Excel file.

When loading data files, it is important that your data be nice and clean. Here are some tips for .

Connect to a database table or view

This feature is not available on all plans.

If your report is connected to a database, you can select the schema and table (or view) to use as the data source. To set up a database connection, . The following databases are supported:

For databases that are not maintained on a cloud platform, we support the latest two release versions. Earlier versions may work with Juicebox, but are not supported.

Connect to sample data

Juicebox also provides a selection of sample data tables if you want to start exploring before you have your own data. To load sample data, open the data drawer, select the Sample Data button, and choose one of the available datasets.

Choose a sample data table and select Add Table.

The sample data includes the following tables.

A value for a date and time that includes the year, month, day, hour, minute, second, and (optionally) subsecond

2020-10-30 19:35:25.125456

Snowflake

  • SQL Server

  • Sample Data

    Description

    lego_sets

    🎛 LEGO sets (CSV download or see the data in a Google Sheet). Source: Kaggle

    movie_trends

    🎬 Movie Trends (CSV download or see the data in a Google Sheet). Source: Kaggle

    olympic_medals

    🥇Olympic Medals 1896-2012 (CSV download or see the data in a Google Sheet). Source: International Olympic Committee, The Guardian Datablog, and Kaggle

    video_game_sales

    🎮 Video Game Sales (CSV download or see the data in a Google Sheet). Source: Kaggle. A helpful getting started article and video to create a dynamic bar chart.

    world_happiness_report_2020

    😀 World Happiness Report 2020 (CSV download or see the data in a Google Sheet). Source: World Happiness Report and Data.World

    preparing your data
    reach out to us
    BigQuery
    Databricks
    Postgres
    Redshift
    Click the bar at the bottom to open the data drawer
    Add data by uploading a CSV or Excel file
    Click the "+" in the data drawer to add additional data files
    Load sample data