Retain report data with Writeback
Retain report data with Writeback
Write back tabular reports to a data platform of choice, including file destinations, data warehouses, and data lake storage. For example, your actuals reporting may be tied to SQL Server, but you can use Writeback to export your plans and forecasts to data platforms like SnowFlake, Fabric, or Databricks.
Once the report data is written back, it can be queried and joined with other enterprise data. With writeback, static reports can be transformed into analytical data.
Create and manage writeback destinations
Configure the database and table where the report data will be saved during writeback.
Click Writeback > Add Destination.
Select an existing connection or create a new connection to the database. For more information, see Create a database connection.
Select the database where the writeback destination table will be created.
Select the schema and table name. The table will be created during the first writeback instance.
Specify the decimal precision for numeric data. All numeric values, including percentages, will be rounded off to the specified number of decimal points.
Specify the text length - you can restrict text fields to 512 characters or allow writeback up to the maximum limit supported by the backend.

After the destination is created, click the information icon in Writeback Settings > Destinations. to view the connection details, schema, and table name. You can also edit or delete a destination.

Review the decimal precision and maximum text length configurations in Writeback Settings > General.

Set the writeback type
Choose the writeback table structure. Click on the information icon to see a preview of how the data in your report will be written back.

Long: The measures and associated values are stored as key-vaue pairs in the destination. The ValueColumn field contains the measure name and the Value field contains the associated value.

Wide: Measure sare stored as columns. As more measures are added, a proportional number of columns will be added to the writeback table.

Long with changes: Only the changed records are written back. When new data comes into the database, the old data is moved to a PreviousValue column, and the new data takes its place under the Value column. The IsLatest column is set to 1 to indicate the latest row.
The highlighted rows show how changed data is saved to the destination table.

Wide with changes: This writeback type also performs a delta writeback - only changed records are written back. In this format, each measure is stored as a separate column in the database. Change history is maintained, and the active record can be identified using the IsLatest column.

Monitor writeback history and logs
Click View Logs to view details such as writeback status, duration, type, and initiator.

2. Click Status to filter writeback logs based on the run status.

Select Created at to filter writeback logs based on when they were triggered.

Click the writeback ID to view details about a specific run instance.

Create a date key field in the destination table
Reports are often used for high-level aggregations, such as revenue by year-month or quarter. In these cases, the Add date key feature adds a Date Key column to the destination table. Date values are populated by appending the first day of the corresponding period to the aggregated date.
For example, if the report is at the year–month level, the product writes 01-01-2023 for Jan 2023 or if the report is at quarter level, the date key field will contain the first date of each quarter.
Navigate to Writeback Settings > General tab > Date Key Configuration and click Add Date Key.
Select Current year or enter the year to be used in the date key.
Enter the column name for the date key field that will be added to the destination table.

As the report is at quarter level, the date key is added for each quarter.

Configure columns in the destination
The column names in the writeback table can be different from the measure or dimension name in the data source. To rename a field:
Click Column Rename.
Click the edit icon and enter the new name.
Click the green tick symbol to apply the change.
You can also change column names from Writeback Settings > Advanced > Writeback column rename.

You can select the measures in your report that should be saved to the writeback table.
Open Writeback Settings > Data tab.
Select the measures to writeback.

Last updated
Was this helpful?