Excel Templater¶
Overview¶
Export Dataiku datasets into a pre-built Excel template
Note
This capability is provided by the “excel-templater” plugin, which you need to install. Please see Installing plugins.
This plugin is Not supported
How to¶
Create an Excel template:
In an Excel spreadsheet, choose a cell where you want a dataset to start writing its values (it will be the top left cell of the dataset).
In this cell, add a reference to the wanted dataset, using the following naming convention:
DATASET.<my dataset in a flow>
, whereDATASET
is the keyword defined in the plugin to locate the cell in which to import the dataset, and<my dataset in a flow>
is the name of a dataset in your flow.If the dataset is shared from another project, you can reference it with:
DATASET.<my other project>.<my shared dataset>
where<my other project>
is the project id from which the<my shared dataset>
is defined.The reference
DATASET.<my dataset in a flow>
can be written on the first row of an Excel table to automatically format the written dataset columns that are located inside the Excel table. The Excel table will be extended vertically to fit all the datasets rows.
![../../_images/excel-templater_input-template-excel.png](../../_images/excel-templater_input-template-excel.png)
Note
Building pivot tables from exported Dataiku datasets? In your Excel template, set them to refresh on open
for up-to-date data.
Upload the Excel template in a managed folder.
Create the recipe:
Select the folder, on the right hand panel click on
Actions
>Plugin recipes
>Excel Templater
. Or click on+RECIPE
>Excel
>Excel Templater
.Click on the component
Populate Excel Template from Dataiku Datasets
.Add the input datasets whose names correspond to the references contained in the template excel (for ex
my_dataset_report
), and set your output folder.
![../../_images/excel-templater_plugin-component-init.png](../../_images/excel-templater_plugin-component-init.png)
Recipe settings:
Template file
: Select the Excel template in the folder.
Output Excel file
: Provide a name for the final file that will be generated. Don’t include the file extension.xlsx
.
Output columns headers
: Enable this option to output the column headers.
Finally, run the recipe to generate the output excel file.
![../../_images/excel-templater_output-template-excel.png](../../_images/excel-templater_output-template-excel.png)