Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

How to extract changes from the change store (Write table) and store them in a QVD - Vendor Reviews example

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Emile_Koslowski
Employee
Employee

How to extract changes from the change store (Write table) and store them in a QVD - Vendor Reviews example

Last Update:

Dec 12, 2025 6:56:49 AM

Updated By:

Emile_Koslowski

Created date:

Dec 12, 2025 3:56:53 AM

Attachments

This article explains how to extract changes from a Change Store and store them in a QVD by using a load script in Qlik Analytics

The article also includes

  • An app example with an incremental load script that will store new changes in a QVD
  • Configuration instructions for the examples

 

Scenario

This example will create an analytics app for Vendor Reviews. The idea is that you, as a company, are working with multiple vendors. Once a quarter, you want to review these vendors.

The example is simplified, but it can be extended with additional data for real-world examples or for other “review” use cases like employee reviews, budget reviews, and so on.

The data model

The app’s data model is a single table “Vendors” that contains a Vendor ID, Vendor Name, and City:

Vendors:
Load * inline [
"Vendor ID","Vendor Name","City"
1,Dunder Mifflin,Ghent
2,Nuka Cola,Leuven
3,Octan, Brussels
4,Kitchen Table International,Antwerp
];

The Write Table

The Write Table contains two data model fields: Vendor ID and Vendor Name. They are both configured as primary keys to demonstrate how this can work for composite keys.

The Write Table is then extended with three editable columns:

  • Quarter (Single select)
  • Action required? (Single select)
  • Comment (Manual user input)

Prerequisites

Steps

  1. Upload the attached .QVF file to a shared space
  2. Open the private sheet Vendor Reviews
  3. Click the Reload App (A) button and make sure data appears (B) in the top table


    reload app.png

  4. Go to Edit sheet (A) mode
  5. Drag a Write Table Chart (B) on the top table, and choose the option Convert to: Write Table (C).

    This transforms the table into a Write Table with two data model columns Vendor ID and Vendor Name.

    convert table to write table.png

     

  6. Go to the Data section in the Write Table’s Properties menu and add an editable column

    editable column.png

     

  7. This prompts you to define a primary key inside the table. Click Define (A) in the table and use both Vendor ID and Vendor Name as primary keys (B).

    You can also just use Vendor ID, but we want to show that this also supports composite primary keys.

    define primary key.png

    define a primary key.png

  8. Configure the editable column:

    • Title: Quarter
    • Show content: Single selection
    • Add options for Q1Y26 through Q4Y26.

      Tip! Also add an empty option by clicking the Add button without specifying a value.

      editable column add content.png

       

  9. Add another Editable column with the below configuration

    • Title: Action required
    • Type: Single select
    • Options:  Yes and No

      add another column.png

  10. Add another Editable column with the below configuration

    • Title: Review
    • Type: Single select
    • Options:  Yes and No

      add the third editable column.png

  11. The Write Table is now set up.

    Go to the Write Table’s properties and locate the Change store (A) section. Copy the Change store ID (B).

    copy store id.png

     

  12. Leave the Edit sheet mode. Then use two Write Table inputs to at least add changes for two records. Save those changes.

    modify the write table content.png

     

  13. Go to the app’s load script editor and uncomment the second script section by first selecting all lines in the script section (CTRL+A or CMD+A) (A) and then clicking the comment button (B) in the toolbar.

    uncomment script.png

     

  14. Configure the settings in the CONFIGURATION part at the end of the load script

    configuration set your parameters.png

     

  15. Update the load script with the IDs of the editable columns.

    The easiest solution to get these IDs is to test your connection. Make sure the connection URL is configured to use the /changes/tabular-views endpoint and uses the correct change store ID.

    IDs.png

     

  16. Copy and paste the example load script (for the editable columns only) and paste it in the app’s load script SQL Select statement that starts on line 159:

    SQL statement.png

     

  17. Replace the corresponding * symbols in the LOAD statement that starts on line 176:

    replace wildcard.png

     

  18. Choose which records you want to track in your table by configuring the Exists Key on line 216.

    This key will be used to filter the “granularity” on which we want to store changes in the QVD and data model, as the load script will only load unique existing keys (line 235).

    • $(vExistsKeyFormula) is a pipe-separated list of the primary keys.
    • In this example, Quarter is added as an additional part of the exists key to keep track of changes by Quarter.
    • Optionally, this can be extended with createdBy and updatedAt to extend the granularity to every change made:

      existskey.png

       

  19. Reload the app and verify that the correct change store table is created in your data model. The second table in the sheet should also successfully show vendors and their reviews.

 

Environment

  • Qlik Cloud Analytics
Version history
Last update:
yesterday
Updated by: