Tutorial | Use dashboards to build reports#
Get started#
In this tutorial, let’s build a dashboard to communicate key insights from your project.
Objectives#
In this tutorial, you will:
Publish insights to a dashboard.
Design a dashboard page.
Export a dashboard to a PDF.
Prerequisites#
To complete this tutorial, you’ll need the following:
Dataiku 12.0 or later.
Create the project#
To create the project:
From the Dataiku Design homepage, click + New Project > DSS tutorials > Core Designer > Build Reports with Dashboards.
From the project homepage, click Go to Flow (or
g
+f
).
Note
You can also download the starter project from this website and import it as a zip file.
You’ll next want to build the Flow.
Click Flow Actions at the bottom right of the Flow.
Click Build all.
Keep the default settings and click Build.
Use case summary#
Let’s say we’re a financial company that uses some credit card data to detect fraudulent transactions.
The project comes with several datasets, the main one being tx_prepared, which is a clean join of the three source datasets (tx, cards and merchants).
In short, tx_prepared contains comprehensive information about credit card transactions (from tx), including the associated merchant details (from merchants) and credit card specifics (from cards), such as transaction status and amount, merchant location and category, and cardholder creditworthiness.
Add some charts to the project#
Let’s first create two charts quickly from the tx_prepared dataset.
Create a bar chart#
From the Flow, open the tx_prepared dataset.
Click on the Charts tab (or use the keyboard shortcut
g
+v
).From the panel on the left, drag and drop:
Count of records in the Show (Y) field.
purchase_date in the By (X) field.
In the dropdown menu of the purchase_date variable, set the Date ranges to Month.
Create a pivot table#
Now, let’s add a pivot table.
At the bottom of the screen, click + Chart.
In the chart type dropdown, select Pivot table.
From the panel on the left, drag and drop:
cardholder_fico_score in the Rows field.
item_category and authorized_flag in the Columns field.
purchase_amount in the Value field.
purchase_amount in the Color field.
In the dropdown menu of the cardholder_fico_score variable, set the Number of bins to
10
.In the dropdown menu of the authorized_flag variable, set the Binning mode to None, use raw values.
On top of the table, delete the default title (Avg of purchase_amount by item_category and cardholder_fico_score) and replace it with
Purchase amount average
.
Publish to a dashboard#
Let’s now publish the charts to a dashboard.
Click the Publish button on the top right.
Select all of the charts that you’ve created.
In the Dashboards dropdown, select Create new dashboard … and name it
Transaction Report
.Click Create to turn the charts into insights, and publish them to Page 1 of the new dashboard in one step.
The dashboard opens in edit mode.
Explore dashboard options#
Edit the dashboard tiles#
Now, let’s modify the layout and behavior of the dashboard.
Click on the Count by purchase_date on tx_prepared vertical bars chart insight.
In the Tile settings panel on the left, in the Title field, enter the new name
Number of transactions by month
.On the top-right corner, click Save (or use the keyboard shortcut
Cmd/Ctrl
+s
).
Adjust the dashboard layout#
In a dashboard, you can:
Drag and drop each tile to change the layout.
Adjust the size of each tile for a clearer view of its insight.
To do so:
Click on the Purchase amount average on tx_prepared pivot table.
Drag it down and increase its width and height to obtain a wider view of the table.
Adjust the other insight to improve its display.
Click Save.
Note
Note how the insights include a Sample warning label to indicate that they do not represent the complete dataset.
Add an insight to a dashboard#
Let’s add another insight to a new page on the dashboard.
Click the + icon in the left bar to add a new page.
Click the + New Tile button to add a new tile and select Dataset.
In the dialog that opens:
Select tx_prepared as the source dataset.
Enter
Transaction table
as the insight name.Click Add.
Feel free to experiment adding different kinds of tiles, such as another chart or dataset.
Important
Depending on the object you want to add, you may get a warning stating that the object is not yet shared with dashboard-only users and offering to add it to authorized objects. Note that object permissions are set in the Project security page. To access it:
From the top navigation bar, select the More Options (…) > Security menu.
In the left panel, click on Authorized objects.
Export a dashboard#
Warning
For this last step, users on a self-managed instance will need to have an administrator first enable the graphics export feature.
When you are satisfied with your dashboard, you can export it.
In the Actions tab of your dashboard, click the Export button.
Adjust the file type, size, and orientation of your export as needed.
Click Export Dashboard.
What’s next?#
You’ve just created your first dashboard. Follow the Tutorial | Dashboard management to master all the features of this visualization and reporting tool.